-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Upgrade specific package to a specific version fails to pick up the version constraint #649
Comments
Hi @slykar, that's true, If you'd like to see |
@vphilippon if that's true, then I might have misunderstood the README file?
Note the |
Uh! That example is not going to work indeed, that slipped through, sorry about that. I'm pretty sure pip-compile never had this behavior either. So we should either fix the README, or make this work, because that actually seem like a neat feature. |
For now I can only update the README file. If I find the time I would be happy to implement this. Edit:
I think I had the same issue with this approach, but can't recall it right now. |
If you don't specifically want the pin, you can temporarily pin the requirements.in, generate the requirements.txt, and then remove the pin. |
@vphilippon Closable from #694 ? |
Fixed in #694. |
It seems like the version constraint for a package when using the
-P
option is ignored.I ran the
pip-compile -v -P pytest==3.0.5
and on the first run it says:found candidate pytest==3.5.0 (constraint was <any>)
Environment Versions
Python 3.6.4
pip 9.0.1
pip-compile, version 1.11.0
Steps to replicate
requirements.in
file withpytest
requirements.txt
file withpytest==3.0.4
pip-compile -P pytest==3.0.5
Expected result
Actual result
The text was updated successfully, but these errors were encountered: