go-multicodec has a version.json file that tracks the library version. py-multicodec should have one for consistency across the multiformats ecosystem.
Problem
go-multicodec includes:
This file is used by ecosystem tooling to track version compatibility across implementations. py-multicodec does not have this file — version info exists only in pyproject.toml and __init__.py.
Proposed Solution
-
Create version.json at the repository root:
-
Add it to the bump-my-version configuration in pyproject.toml so it's updated automatically on release:
[[tool.bumpversion.files]]
filename = "version.json"
search = '"version": "v{current_version}"'
replace = '"version": "v{new_version}"'
Related
go-multicodec has a
version.jsonfile that tracks the library version. py-multicodec should have one for consistency across the multiformats ecosystem.Problem
go-multicodec includes:
{ "version": "v0.10.0" }This file is used by ecosystem tooling to track version compatibility across implementations. py-multicodec does not have this file — version info exists only in
pyproject.tomland__init__.py.Proposed Solution
Create
version.jsonat the repository root:{ "version": "v1.0.0" }Add it to the
bump-my-versionconfiguration inpyproject.tomlso it's updated automatically on release:Related