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

pip-compile does not pick up pytest dependencies #995

Closed
mlenzen opened this issue Nov 20, 2019 · 2 comments
Closed

pip-compile does not pick up pytest dependencies #995

mlenzen opened this issue Nov 20, 2019 · 2 comments
Labels
bug Something is not working cache Related to dependency cache

Comments

@mlenzen
Copy link

mlenzen commented Nov 20, 2019

Compiling with pytest in the input does not result in pytest's dependencies in the output.

Environment Versions

  1. OS Type: Linux (Ubuntu) & Macs
  2. Python version: Python 3.7.4
  3. pip version: pip 19.3.1
  4. pip-tools version: pip-compile, version 4.2.0

Steps to replicate

  1. echo 'pytest==5.2.4' >requirements.in
  2. pip-compile requirements.in
  3. cat requirements.txt

Expected result

#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile requirements.in
#
pytest==5.2.4
py==...
packaging==...
attrs==...
more-itertools==...
atomicwrites==...
...

Actual result

#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile requirements.in
#
pytest==5.2.4
@atugushev
Copy link
Member

atugushev commented Nov 21, 2019

Hello @mlenzen,

Thanks for the report! Could you try --rebuild flag with pip-compile command? Sounds like your cache was corrupted. See related issues: #928, #835.

@atugushev atugushev added bug Something is not working cache Related to dependency cache labels Nov 21, 2019
@mlenzen
Copy link
Author

mlenzen commented Nov 21, 2019

Yeah, that solved it.

@mlenzen mlenzen closed this as completed Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working cache Related to dependency cache
Projects
None yet
Development

No branches or pull requests

2 participants