mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
💄 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:
1
changelog.d/172.feature.md
Normal file
1
changelog.d/172.feature.md
Normal file
@@ -0,0 +1 @@
|
||||
Use `importlib.metadata` to include project version string as `fastapi_cache.__version__`.
|
||||
Reference in New Issue
Block a user