question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bump versions in multiple files?

See original GitHub issue

It 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
relekangcommented, Feb 19, 2020

It is an implementation suggestion.

0reactions
kalekundertcommented, Jun 10, 2020

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 and DESCRIPTION.

I’m trying to switch to python-semantic-release now, but previously I was able to use the following bump2version configuration to keep these two versions in sync:

[bumpversion:file:wellmap/__init__.py]

[bumpversion:file:wellmapr/DESCRIPTION]
search = "Version: {current_version}"

The “search” setting is useful because DESCRIPTION also specifies dependency versions, and those should not be updated. It’d be great if python-semantic-release could support something similar (or if there’s already a way to do this that I overlooked).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found