From 492091ec250e1ec5e66c792f67aebfa2ef177756 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Wed, 6 Sep 2023 09:45:31 -0400 Subject: [PATCH 1/2] 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" From 992c0a9b609db0c485715f41bd5ddedbebcbbe01 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Thu, 7 Sep 2023 10:43:13 -0400 Subject: [PATCH 2/2] docs: update PUBLISHING.md Signed-off-by: Daniel Bluhm --- PUBLISHING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PUBLISHING.md b/PUBLISHING.md index 3d52afc0a8..08b675f605 100644 --- a/PUBLISHING.md +++ b/PUBLISHING.md @@ -100,7 +100,7 @@ Once you have the list of PRs: errors should be fixed in the code. 5. Update the version number listed in - [aries_cloudagent/version.py](aries_cloudagent/version.py) and, prefixed with + [pyproject.toml](pyproject.toml) and, prefixed with a "v" in [open-api/openapi.json](open-api/openapi.json) and [open-api/swagger.json](open-api/swagger.json) (e.g. "0.7.2" in the version.py file and "v0.7.2" in the openapi.json file). The incremented @@ -126,7 +126,7 @@ Once you have the list of PRs: 9. Immediately after it is merged, create a new GitHub tag representing the version. The tag name and title of the release should be the same as the - version in [aries_cloudagent/version.py](aries_cloudagent/version.py). Use + version in [pyproject.toml](pyproject.toml). Use the "Generate Release Notes" capability to get a sequential listing of the PRs in the release, to complement the manually curated Changelog. Verify on PyPi that the version is published.