From 8980dd216c4034619ad043a3779c877beb87d167 Mon Sep 17 00:00:00 2001 From: sumanjeet0012 Date: Sat, 24 Oct 2026 13:40:18 +0530 Subject: [PATCH 1/2] feat: add version.json to match go-multicodec Expose the current release version in a machine-readable file, as go-multicodec does, and bump it alongside the other version strings in ``bump-my-version``. --- pyproject.toml | 5 +++++ version.json | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 version.json diff --git a/pyproject.toml b/pyproject.toml index 23751b1..85ed3de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,6 +154,11 @@ filename = "pyproject.toml" search = "Download = \"https://github.com/multiformats/py-multicodec/tarball/{current_version}\"" replace = "Download = \"https://github.com/multiformats/py-multicodec/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..77dfc03 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v1.0.0" +} From f1448fca90d41e02f8faa55ed82fa0512769ab5d Mon Sep 17 00:00:00 2001 From: sumanjeet0012 Date: Sat, 24 Oct 2026 13:40:18 +0530 Subject: [PATCH 2/2] Add newsfragment for #44 --- newsfragments/44.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/44.feature.rst diff --git a/newsfragments/44.feature.rst b/newsfragments/44.feature.rst new file mode 100644 index 0000000..6bdace4 --- /dev/null +++ b/newsfragments/44.feature.rst @@ -0,0 +1 @@ +Add ``version.json`` at the repository root to match ``go-multicodec``, and keep it in sync on release through ``bump-my-version``.