Skip to content
New issue

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

Dependencies versions in pyproject.toml altered casually #220

Open
Tammura opened this issue Apr 15, 2024 · 0 comments
Open

Dependencies versions in pyproject.toml altered casually #220

Tammura opened this issue Apr 15, 2024 · 0 comments

Comments

@Tammura
Copy link

Tammura commented Apr 15, 2024

Hi all,

I've encountered an issue twice while using the CLI to release a new patch with the bumpversion patch pyproject.toml command. It seems that this command not only updates the project version but also inadvertently changes the versions of project dependencies.

Before running cli command:

# pyproject.toml
[build-system]
requires = ["setuptools>=61.0.1", "wheel"]

dependencies = [
    "python-dotenv>=1.0.1",
    ...
]

[tool.bumpver]
current_version = "1.0.1"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
tag_scope = "default"
commit = true
tag = true
push = false
...
#.bumpversion.cfg
[bumpversion]
current_version = 1.0.1
commit = True
tag = True
tag_name = {new_version}

After command execution: bumpversion patch pyproject.toml

# pyproject.toml
[build-system]
requires = ["setuptools>=61.0.2", "wheel"] # setuptools version updated to 61.0.2

dependencies = [
    "python-dotenv>=1.0.2", # python-dotenv version updated to 1.0.2
    ...
]

[tool.bumpver]
current_version = "1.0.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
tag_scope = "default"
commit = true
tag = true
push = false
...
#.bumpversion.cfg
[bumpversion]
current_version = 1.0.2
commit = True
tag = True
tag_name = {new_version}

Anyone facing the same problem? Any idea on how to fix it?
Thanks!

@Tammura Tammura changed the title Sometimes tools change project dependencies versions pyproject.toml Dependencies versions in pyproject.toml altered occasionally Apr 15, 2024
@Tammura Tammura changed the title Dependencies versions in pyproject.toml altered occasionally Dependencies versions in pyproject.toml altered casually Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant