-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
py 1.5 release breaks pytest with pip dependency resolver #2926
Comments
Hi @uSpike, Thanks for bringing this to attention. Hmm, the only reason why the Alternatively, we might remove the restriction in |
I went ahead and opened #2927 removing the restriction; as soon as we decide this is the way to go we just push the package to PyPI. |
Oh oh, seems it is too late now; publishing a new |
we can pull the release from pypi if necessary |
after all it breaks the world |
|
Thanks for the quick response @nicoddemus and @RonnyPfannschmidt ! Hopefully pip can get a good dependency resolver in place soon :) |
FIW pip-compile from the https://github.com/jazzband/pip-tools project can handle this kind of situtations. |
Hi,
Since pip doesn't have a great dependency resolver (see pypa/pip#988) it will download the latest version of the dependencies of the first package passed to it. For example,
pip install tox pytest
This will install
py>=1.4.17
as depended on bytox
, which will happily get the most recentpy
package at version 1.5. However, we cannot run pytest now since pytest depends onpy<1.5
I think you can make the argument that the blame doesn't fall within pytest itself, but I think there's going to be a lot of requirements.txt out there which don't list pytest first, and may run into this issue.
The text was updated successfully, but these errors were encountered: