From e31a5ab426445a226c183a3d784db8ff8f1ada02 Mon Sep 17 00:00:00 2001 From: acul71 Date: Mon, 7 Sep 2026 21:32:21 +0200 Subject: [PATCH] Add version.json for multiformats ecosystem consistency. Closes #73. Co-authored-by: Cursor --- newsfragments/73.internal.rst | 1 + pyproject.toml | 5 +++++ version.json | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 newsfragments/73.internal.rst create mode 100644 version.json diff --git a/newsfragments/73.internal.rst b/newsfragments/73.internal.rst new file mode 100644 index 0000000..8f71206 --- /dev/null +++ b/newsfragments/73.internal.rst @@ -0,0 +1 @@ +Add ``version.json`` for consistency with go-cid and the multiformats ecosystem; bump-my-version keeps it in sync on release. diff --git a/pyproject.toml b/pyproject.toml index c503b93..7c7573a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -272,3 +272,8 @@ replace = 'version = "{new_version}"' filename = "cid/__init__.py" search = '__version__ = "{current_version}"' replace = '__version__ = "{new_version}"' + +[[tool.bumpversion.files]] +filename = "version.json" +search = "\"version\": \"v{current_version}\"" +replace = "\"version\": \"v{new_version}\"" diff --git a/version.json b/version.json new file mode 100644 index 0000000..fc15ae0 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v0.5.0" +}