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" +}