From 87f5cf6f115cc28296ef03f503206943ddc03720 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Mar 2026 10:58:27 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20sync=20=5F=5Fversion=5F=5F=20with=20?= =?UTF-8?q?pyproject.toml=20(0.1.1=20=E2=86=92=200.1.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://claude.ai/code/session_01X1R6gEXaRbp1HT8rMCxHV2 --- runcycles/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runcycles/__init__.py b/runcycles/__init__.py index 4aea19f..be4dde3 100644 --- a/runcycles/__init__.py +++ b/runcycles/__init__.py @@ -112,4 +112,4 @@ "BalanceResponse", ] -__version__ = "0.1.1" +__version__ = "0.1.2" From 3697ef77d731df367d1320796b5c6a6357873762 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Mar 2026 11:55:27 +0000 Subject: [PATCH 2/2] refactor: derive __version__ from package metadata instead of hardcoding Use importlib.metadata.version() to read the version from pyproject.toml at runtime, eliminating the need to update two files when bumping versions. https://claude.ai/code/session_01X1R6gEXaRbp1HT8rMCxHV2 --- runcycles/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runcycles/__init__.py b/runcycles/__init__.py index be4dde3..8c258ce 100644 --- a/runcycles/__init__.py +++ b/runcycles/__init__.py @@ -112,4 +112,6 @@ "BalanceResponse", ] -__version__ = "0.1.2" +from importlib.metadata import version as _metadata_version + +__version__ = _metadata_version("runcycles")