Metadata-Version: 2.4
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
Author: Roman Inflianskas
Author-email: infroma@gmail.com
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
License-File: LICENSE
Requires-Dist: tomlkit<0.6.0,>=0.4.6
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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/
