-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Python version being switched from exact to tilde version #6462
Comments
Quick note that this is for a GitLab project, so I'm using dependabot-gitlab v0.33.0, which is using v0.215.0
|
Can you provide complete manifest files to be able to reproduce the issue? Also, feel free to try latest main in case it's fixed there. |
Absolutely. Here are both the I'll give trying with main a whirl too. |
Thank you, will have a look! |
@deivid-rodriguez - Just a note that I checked the latest development build, and the same behavior is happening. I setup a sample project at https://github.com/Dresdn/awesome-project-6462 that is demonstrating the behavior. Diff generated from development build
|
The given |
In our project Dependabot changes both |
Yeah, we are all having the same experience. |
python-poetry/poetry#7503 recently clarified that the |
This should get fixed by #6702. The problem is that our environment does not have all Python versions available, so if the project is locked to an exact version that we don't have available we need to change the requirement to allow the closest version we have available. But we are not changing it back after resolving versions. |
Sorry for the delay, this fix is live now! |
Is there an existing issue for this?
Package ecosystem
pip
Package manager version
Poetry 1.2.1
Language version
Python 3.9.15
Manifest location and content before the Dependabot update
poetry.lock
pyproject.toml
used to trigger an update:dependabot.yml content
Updated dependency
Flask 2.1.0 -> 2.2.2
What you expected to see, versus what you actually saw
I expect the Flask dependency to be updated to 2.2.2, but not have the
python-versions
change.The Dependabot changed
poetry.lock
file contains:Native package manager behavior
Changing Flask to be
2.2.2
in thepyproject.toml
and runningpoetry lock
produces the following:Note the
python-versions
is correct.Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: