💄 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

2
poetry.lock generated
View File

@@ -2574,4 +2574,4 @@ redis = ["redis"]
[metadata]
lock-version = "2.0"
python-versions = "^3.7"
content-hash = "c16f63dc3f2e9a5c4c01faed05d4b50c48edf0221e6e371665b0b83598bc7aa9"
content-hash = "d96f466d1d43a0c98a946d3a89da93233e8f3c83faa2df3c35c937388dedef39"