-
-
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
new pip resolver "breaks" pip-compile with multiple inputs #1365
Comments
A quick test of pip-tools/piptools/scripts/compile.py Lines 338 to 377 in 019516a
pytest-httpx versions.
|
However, looks like |
It's likely because httpx is beta at this point and they don't want to support maintaining older versions. I was able to work around this by manually pushing pytest-httpx backwards, but I expected since pytest-httpx was not pinned pip/pip-compile would try other versions in order to find out what works. It's not that big of an issue for me right now, but I wanted to make sure this potential issue was documented in the issue tracker and also clarify if multiple requirements files are resolved in parallel or if there was some sort of priority when resolving all of the dependencies. From your answer it seems like this question may still not be answered because installing the latest version instead of resolving a version would likely not matter if requirements files are resolved in parallel or serially. |
@atugushev quick question (hopefully), I am actually running into this again and I've made some changes to my requirements files to try to see if we can use renovate, and it looks like we're running into something very similar to what I original submitted, but I'm wondering if there is anything I can do to fix this (or if it's really the same problem looking a little different). The renovate bot runs a very specific command and I'm not sure if that needs to be updated, something here can be updated or something in pip needs to be updated.
With those files I'm running
Everything looks good until:
In case you're interested here's the renovate feature request for supporting pip-tools renovatebot/renovate#2334 and I'm looking for how I might proceed with this. I'm trying to avoid writing my own package updater, and I was hoping for our Python code I could at least use renovate (It's looking somewhat tricky for our Angular project), but it's possible I'll not be able to and supplying |
The upcoming backtracking resolver #1539 fixes the issue. Details
|
This has been fixed in #1539 with the backtracking resolver, try |
This was likely a pre-existing issue, and I'm opening this issue to figure out if my expectation is valid and if I should look at making a code change.
Environment Versions
pip 21.0.1 (python 3.8)
Steps to replicate
httpx[http2]==0.16.1
pytest-httpx
pip-compile -Uo requirements.txt requirements.in requirements-test.in
Expected result
The requirements in
requirements-test.in
respectrequirements.in
.Actual result
The new pip resolver breaks with:
This is because pytest-httpx is unpinned and httpx is then pinned to an incompatible version.
The text was updated successfully, but these errors were encountered: