Bump versions in multiple files?
See original GitHub issueIt would be nice to bump versions in multiple files. For example, in a package that uses pyproject.toml
(and thus has the version stored there) and that also has the version stored in package/__init__.py
. Maybe this could work by setting multiple filenames in version_variable
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Bump versions in multiple files? · Issue #175 · relekang/python ...
It would be nice to bump versions in multiple files. For example, in a package that uses pyproject.toml (and thus has the version...
Read more >NPM version bumping and extra files - Don McCurdy
NPM has a handy little feature for bumping the versions on your packages, ... Or if other files need to include the current...
Read more >Bumping the version of an existing project - cookietemple
To facilitate this process, cookietemple provides a bump-version command, which conveniently increases the version across several files and commits them.
Read more >Can the Hatch build tool update multiple files when I bump the ...
The Hatch build tool has a versioning feature that can automatically bump the version of a Python project like this: Simply define the...
Read more >file-version-bump - npm
file -version-bump is an NPM module that works with the built in npm version command to update semver version numbers in files other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is an implementation suggestion.
I have an unusual case that might be worth thinking about in terms of how to support multiple files. The situation is that I have a single repository that contains both a python package and an R wrapper for that package. Since the two languages have different packaging requirements, the version number has to be specified in two places, i.e.
pyproject.toml
andDESCRIPTION
.I’m trying to switch to
python-semantic-release
now, but previously I was able to use the followingbump2version
configuration to keep these two versions in sync:The “search” setting is useful because
DESCRIPTION
also specifies dependency versions, and those should not be updated. It’d be great ifpython-semantic-release
could support something similar (or if there’s already a way to do this that I overlooked).