-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
latest pip (23.3) causes dependency oddity #2003
Comments
Hi @jap!
What may feel weird to you is probably a representation issue in the resulting constraint files. You can explicitly use |
@webknjaz I think the report is not about the inclusion of This can be seen in current main when testing with the latest pip release, where, at least locally, |
Note: this only happens with the backtracking resolver. |
Exactly, that is the only difference between the actual and expected result. |
Oh, should we close this in favor of #2004, then? |
That seems like a different issue to me. That one is about the non-comment requirement format, and this one is about dependency annotations. |
Another phrasing that may or may not help: For #2004, extras need to be canonicalized/combined (and possibly restored, though I hope not), for proper ireq line format. Here in #2003, we should probably ensure an ireq with extras doesn't depend on itself in extra-less form, at least according to annotations. |
Looking into this. |
Set pip and pip-tools to known working versions. pip==23.3 is causing some dependency resolution problems. See: jazzband/pip-tools#2003 Change-Id: I24359d5e477490c350760445eb8b2eebaffcb6a9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/177834 Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com> Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
I found this a little surprising: $ <<<'pytest-cov' pip-compile --annotation-style line - -o - 2>/dev/null | grep coverage
coverage[toml]==7.3.2 # via coverage, pytest-cov
$ <<<'coverage[toml]' pip-compile --annotation-style line - -o - 2>/dev/null | grep coverage
coverage[toml]==7.3.2 # via -r -
$ <<<'pytest-cov'$'\n''coverage[toml]' pip-compile --annotation-style line - -o - 2>/dev/null | grep coverage
coverage[toml]==7.3.2 # via -r -, pytest-cov
|
I did a git bisect with pip and see the change happened in |
Don't miss @sanderr's helpful comment here |
Thanks, I can confirm the patch is working! I'm still crafting a test. |
Set pip and pip-tools to known working versions. pip==23.3 is causing some dependency resolution problems. See: jazzband/pip-tools#2003 Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/177834 https://pigweed.googlesource.com/pigweed/pigweed third_party/pigweed Rolled-Commits: f3190dcd2b5a44c..e6aa95bf08fba2b Roller-URL: https://ci.chromium.org/b/8766227687933402801 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: Ib2dfc9900e67a934493b29834495bf406625ebaa Reviewed-on: https://pigweed-review.googlesource.com/c/example/echo/+/177773 Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
When running
pip-compile
+pip
23.3 with a requirements.in containingpytest-cov
, it shows a weird dependency list withcoverage[toml]
being installed because of a dependency oncoverage
. Note that actual package versions are completely fine, this seems to be purely cosmetic.Things seem better with the previous
pip
23.2.1.Not sure what causes this -- it could pip, pip-tools, pytest-cov or coverage, but
pip-tools
has the best community vibes so I'm trying here first ;)Environment Versions
MacOS 13.6, python 3.11.6 managed through pyenv, fresh virtualenv with latest pip and pip-tools:
Steps to replicate
$ cat requirements.in
pytest-cov
$ pip-compile requirements.in
Expected result
Actual result
The text was updated successfully, but these errors were encountered: