From 6b0c7a465d145c2b1a258220dd9a59730cc0a63a Mon Sep 17 00:00:00 2001 From: acul71 Date: Fri, 2 Oct 2026 04:26:18 -0400 Subject: [PATCH] Add version.json aligned with go-multihash and bumpversion wiring. Co-authored-by: Cursor --- newsfragments/58.misc.rst | 1 + pyproject.toml | 5 +++++ version.json | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 newsfragments/58.misc.rst create mode 100644 version.json diff --git a/newsfragments/58.misc.rst b/newsfragments/58.misc.rst new file mode 100644 index 0000000..e386614 --- /dev/null +++ b/newsfragments/58.misc.rst @@ -0,0 +1 @@ +Add ``version.json`` so the package version is published in the same format used by go-multihash, and wire it into the bumpversion release process. diff --git a/pyproject.toml b/pyproject.toml index 0271622..0ee9970 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,6 +154,11 @@ filename = "pyproject.toml" search = "Download = \"https://github.com/multiformats/multihash/tarball/{current_version}\"" replace = "Download = \"https://github.com/multiformats/multihash/tarball/{new_version}\"" +[[tool.bumpversion.files]] +filename = "version.json" +search = "\"version\": \"v{current_version}\"" +replace = "\"version\": \"v{new_version}\"" + [tool.mypy] python_version = "3.10" check_untyped_defs = false diff --git a/version.json b/version.json new file mode 100644 index 0000000..f6c42b9 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v3.0.0" +}