From 492091ec250e1ec5e66c792f67aebfa2ef177756 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Wed, 6 Sep 2023 09:45:31 -0400 Subject: [PATCH] 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 from the package metadata to obtain the version. Signed-off-by: Daniel Bluhm --- aries_cloudagent/version.py | 4 +++- pyproject.toml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/aries_cloudagent/version.py b/aries_cloudagent/version.py index 3f6ddad918..c6432013b7 100644 --- a/aries_cloudagent/version.py +++ b/aries_cloudagent/version.py @@ -1,4 +1,6 @@ """Library version information.""" -__version__ = "0.10.1" +from importlib import metadata + +__version__ = metadata.version("aries-cloudagent") RECORD_TYPE_ACAPY_VERSION = "acapy_version" diff --git a/pyproject.toml b/pyproject.toml index 98c48a09dc..363ad05fb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "aries_cloudagent" -version = "0.10.0-rc0" -description = "" +version = "0.10.1" +description = "Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized identity applications and services running in non-mobile environments. " authors = ["Hyperledger Aries "] license = "Apache-2.0" readme = "README.md"