From 975fa399c08648f3e329d361d5a94afcba692fa4 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Nov 2026 14:17:41 +0000 Subject: [PATCH] pyproject.toml at 0.3.14; a test that it matches the package version release.yml refused 0.3.14 ("pyproject.toml is not at 0.3.14"): the release commit had left the pyproject.toml change out. The new test fails in CI when the two versions differ, before anyone runs the release. Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 2 +- tests/test_release_notes.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 34faf5a..7a3b5b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "bitcoinmonetaryview" -version = "0.3.13" +version = "0.3.14" description = "Read-only spam analysis for Bitcoin Core/Knots/Roots nodes, based on the Monetary Node rules" readme = "README.md" license = { text = "AGPL-3.0-or-later" } diff --git a/tests/test_release_notes.py b/tests/test_release_notes.py index e1bf690..a940942 100644 --- a/tests/test_release_notes.py +++ b/tests/test_release_notes.py @@ -39,3 +39,12 @@ def test_joins_wrapped_lines_and_keeps_structure(self): if __name__ == "__main__": unittest.main() + + +class Version(unittest.TestCase): + def test_pyproject_matches_the_package(self): + """release.yml refuses to publish when these differ; CI should say so first.""" + import re + from bitcoinmonetaryview import __version__ + with open(os.path.join(ROOT, "pyproject.toml"), encoding="utf-8") as f: + self.assertEqual(re.search(r'^version = "([^"]+)"$', f.read(), re.M).group(1), __version__)