We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
bump-my-version seemingly mis-identifies strings other than version in the target file that are contained in the current version string.
bump-my-version
version
Expected: bumping versions in pyproject.toml only changes project.version and tool.bumpversion.current_version (if present).
pyproject.toml
project.version
tool.bumpversion.current_version
While trying to bump minor version of a pyproject.toml containing a dependency whose version substring-matches version, both were updated.
[project] name = "sample-repo" version = "0.0.2" description = "" authors = [ {name = "Amar Paul", email = "[email protected]"}, ] dependencies = [] requires-python = ">=3.11" readme = "README.md" license = {text = "MIT"} [build-system] requires = ["setuptools>=61", "wheel"] build-backend = "setuptools.build_meta" [tool.pdm.dev-dependencies] lint = [ "ruff==0.0.292", ] build = [ "bump-my-version>=0.12.0", ] [tool.bumpversion] commit = false tag = false current_version = "0.0.2"
$ bump-my-version bump minor pyproject.toml
results in:
diff --git a/pyproject.toml b/pyproject.toml index ebdfd3d..a98f3d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sample-repo" -version = "0.0.2" +version = "0.1.0" description = "" authors = [ {name = "Amar Paul", email = "[email protected]"}, @@ -16,7 +16,7 @@ build-backend = "setuptools.build_meta" [tool.pdm.dev-dependencies] lint = [ - "ruff==0.0.292", + "ruff==0.1.092", ] build = [ "bump-my-version>=0.12.0", @@ -25,4 +25,4 @@ build = [ [tool.bumpversion] commit = false tag = false -current_version = "0.0.2" +current_version = "0.1.0"
note that the original dependency string for ruff contains 0.0.2, even though it has a longer version string (0.0.292 in this case).
0.0.2
0.0.292
The text was updated successfully, but these errors were encountered:
See discussion of search regexes to avoid false positive matches, here: #97 (comment)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
bump-my-version
seemingly mis-identifies strings other thanversion
in the target file that are contained in the currentversion
string.Expected: bumping versions in
pyproject.toml
only changesproject.version
andtool.bumpversion.current_version
(if present).What I Did
While trying to bump minor version of a pyproject.toml containing a dependency whose version substring-matches
version
, both were updated.results in:
note that the original dependency string for ruff contains
0.0.2
, even though it has a longer version string (0.0.292
in this case).The text was updated successfully, but these errors were encountered: