Minimum Python version not detected if .python-version contains comments #6650
Labels
Batch
How We Work: Feature. Outcome achieved within 1 iteration. Can live under an epic, or stand alone.
good first issue
L: python:pip
Python packages via pip
T: bug 🐞
Something isn't working
Is there an existing issue for this?
Package ecosystem
pip
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
https://github.com/canonical/pycloudlib/blob/b02ba24b214ddf922491ee711b4ffe382c450da7/dev-requirements.txt
dependabot.yml content
https://github.com/canonical/pycloudlib/blob/b02ba24b214ddf922491ee711b4ffe382c450da7/.github/dependabot.yml
Updated dependency
No response
What you expected to see, versus what you actually saw
I expected
dependabot
to correctly detect the minimum Python version defined in.python-version
and issue upgrades with correct python dependencies' versions.If
.python-version
contains comments, then the suggested dependecies' versions were always the newest one.Not working configuration: https://github.com/canonical/pycloudlib/blob/b02ba24b214ddf922491ee711b4ffe382c450da7/
Working configuration: canonical/pycloudlib#275
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
This PR tried to bump
flake8
to a version that was not compatible with python 3.6 (defined in.python-version
):canonical/pycloudlib#274
Smallest manifest that reproduces the issue
dependabot.yml
:.python-version
:The text was updated successfully, but these errors were encountered: