Skip to content
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

Pluggy incompatibility with pytest==3.7.0 when using pipenv #216

Closed
benhowes opened this issue Jul 31, 2018 · 5 comments
Closed

Pluggy incompatibility with pytest==3.7.0 when using pipenv #216

benhowes opened this issue Jul 31, 2018 · 5 comments

Comments

@benhowes
Copy link

When updating in pipenv today:

$> pipenv install
Pipfile.lock (bd627c) out of date, updating to (5f00e3)...
Locking [dev-packages] dependencies...

Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
Could not find a version that matches pluggy<0.7,>=0.5,>=0.7
Tried: 0.3.0, 0.3.0, 0.3.1, 0.3.1, 0.4.0, 0.4.0, 0.5.0, 0.5.1, 0.5.1, 0.5.2, 0.5.2, 0.6.0, 0.6.0, 0.6.0, 0.7.1, 0.7.1
There are incompatible versions in the resolved dependencies.

I cannot see a way in which pytest-cov directly depends on pluggy though?

@nicoddemus
Copy link
Member

I'm not sure either, but pytest 3.7.0 has changed pluggy pinning from >=0.5,<0.7 to >=0.7 in case this helps finding the issue. Perhaps is some other dependency pinning pluggy?

@gaffney
Copy link

gaffney commented Jul 31, 2018

Same problem today; pytest itself installs fine but the tools that depend on pytest do not:

  • pytest-cov - causes this issue
  • pytest-mock - causes this issue
  • pytest-xdist - causes this issue
  • pytest-helpers-namespace - causes this issue

I do not understand this issue because pipenv install --dev --skip-lock && pipenv graph does not show conflicts. Maybe this is a pipenv bug... ?

@gzagatti
Copy link

I am having this same issue and I believe it is related with the issue in here. It has to do with pipenv lack of backtracking.

@benhowes
Copy link
Author

benhowes commented Aug 1, 2018

@gzagatti appears to be correct, pypa/pipenv#2596 (comment) solved this problem for me.

@benhowes
Copy link
Author

benhowes commented Aug 1, 2018

I'll close this because that confirms it's a pipenv problem, not pytest/pytest-cov

@benhowes benhowes closed this as completed Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants