Metadata-Version: 2.1
Name: poetry-version
Version: 0.2.0
Summary: Python library for extracting version from poetry pyproject.toml file (deprecated)
Home-page: https://github.com/rominf/poetry-version
License: Apache-2.0
Keywords: poetry,version
Author: Roman Inflianskas
Author-email: infroma@gmail.com
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Classifier: Development Status :: 7 - Inactive
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: tomlkit (>=0.4.6,<0.6.0)
Project-URL: Repository, https://github.com/rominf/poetry-version
Description-Content-Type: text/markdown

# poetry-version (deprecated)

## What to use instead

Now there is a better way to extract the version of the package.

Assuming your package is named `mypackage`:
```python
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/

