Skip to content

Commit

Permalink
fix: version should be set by pyproject.toml
Browse files Browse the repository at this point in the history
`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 <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Sep 7, 2023
1 parent 85d68b1 commit 492091e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion aries_cloudagent/version.py
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <aries@lists.hyperledger.org>"]
license = "Apache-2.0"
readme = "README.md"
Expand Down

0 comments on commit 492091e

Please sign in to comment.