py 1.5 release breaks pytest with pip dependency resolver
See original GitHub issueHi,
Since pip doesn’t have a great dependency resolver (see https://github.com/pypa/pip/issues/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 by tox
, which will happily get the most recent py
package at version 1.5. However, we cannot run pytest now since pytest depends on py<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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
pip install pytest fails - Mo matching found for py>=1.5.0 for ...
I'm using a tox environment and all of its tests pass in Python 2.7,3.4-6 except for in Python 3.3. It just started happening...
Read more >pytest breaks with pip install - python - Stack Overflow
The issue here is that your local test package shadows the test module from the standard library. In general, name shadowing any stdlib ......
Read more >Changelog — pytest documentation
Backward incompatible (breaking) changes will only be introduced in major versions with advance notice in the Deprecations section of releases. pytest 7.1.3 ( ......
Read more >Changelog - pip documentation v22.3.1
When this field is present for a release link, pip will ignore the download when installing to a Python version that doesn't satisfy...
Read more >Packaging in Python: Tools and Formats | by Martin Thoma
The dependency resolver actually needs to download the package to find the dependencies. Breaking transitive change: The packages foo and bar ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
3.2.5
has been published with the restriction removed, thanks @uSpike again for the quick report.FIW pip-compile from the https://github.com/jazzband/pip-tools project can handle this kind of situtations.