-
-
Notifications
You must be signed in to change notification settings - Fork 440
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_requires="<4"
creates issues with dependency solvers
#1020
Comments
This seems like something that should be reported to poetry, no? Why can't they understand "<4"? Would "<4.0" work? |
Bit of both. Poetry has the functionality but it depends on how people configure their dependency limits (e.g., when people come over from another packaging tool).
Yes, people should configure their packaging tool correctly, but since python4 doesn't exist yet (and it's not on the roadmap yet?), why have that additional clause in |
I guess it's fine to remove the <4 constraint, but I'm trying to understand:
Why would ">=3.6.1" and "<4.0.0" conflict? |
Dependency resolution in this context takes things literally. |
If you use |
When I try this with poetry, it says:
Did you get this message? Did you consider adding "<4" to your python property? I'm trying to understand how people get into this state. |
Poetry seems set on continuing to behave this way: python-poetry/poetry#1930 (comment) |
@nnadeau can you help me understand how you ended up with ">=3.6" in your pyproject.yaml? Poetry initializes it with "^3.6", which works. |
@nedbat it was an artifact of transitioning from a pipenv-based project to a poetry project. Pipenv doesn't appear to be as strict with dependency resolution |
python_requires="<4"
is defined incoveragepy/setup.py
Line 122 in aa6cb95
poetry
:The text was updated successfully, but these errors were encountered: