Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: version should be set by pyproject.toml
`aries_cloudagent.version.__version__` was out of sync with the version listed in the pyproject.toml file. The pyproject.toml file should be the source of truth as it will be used when publishing using poetry. However, `__version__` is used in code for some operations. To ensure that the pyproject file and the `__version__` can't get out of sync, `aries_cloudagent.version` will now read the version from the pyproject file. This read will only take place once on first import. To acheive this, I added `tomli` as a dependency, but only if the python version is < 3.11. If 3.11 is in use, the `tomlib` library will be used, which was added as a python standard library module in 3.11. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
- Loading branch information