Python library for extracting version from poetry pyproject.toml file (deprecated)
What to use instead
Now there is a better way to extract the version of the package.
Assuming your package is named
import importlib.metadata __version__ = importlib.metadata.version("mypackage")
This code should work as is if you are using Python >= 3.8.
For Python 3.6 and 3.7 you need to install a backport: https://pypi.org/project/importlib-metadata/
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for poetry_version-0.2.0-py2.py3-none-any.whl