question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

py 1.5 release breaks pytest with pip dependency resolver

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nicoddemuscommented, Nov 15, 2017

3.2.5 has been published with the restriction removed, thanks @uSpike again for the quick report.

0reactions
merwokcommented, Jan 26, 2018

FIW pip-compile from the https://github.com/jazzband/pip-tools project can handle this kind of situtations.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found