💄 Pull version from installation metadata (#172)

The version string in the `__init__` module is needed to support
towncrier, but that does mean there are now two locations for the
project version: pyproject.toml and the `__init__.py` file. Use
`importlib.metadata` to pull the version from the installation metadata.
This commit is contained in:
Martijn Pieters
2023-05-17 18:09:52 +01:00
committed by GitHub
parent 70d8fef402
commit fbdaa62e24
4 changed files with 19 additions and 4 deletions

View File

@@ -0,0 +1 @@
Use `importlib.metadata` to include project version string as `fastapi_cache.__version__`.