-
-
Notifications
You must be signed in to change notification settings - Fork 413
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 22.0.1 broke pip_shims.unpack_url
#874
Comments
In the meantime, a workaround is to specify the pip dependency in your install-pdm step: That or the other ways to specify that dependency override (the PDM_DEPS env var for instance). |
Maybe we should consider pinning the pdm dependencies. That would prevent these breakages, at least when installed with PS to fix a broken $ pipx runpip pdm install --upgrade 'pip<22.0' |
The choice was made not to pin them. See https://iscinumpy.dev/post/bound-version-constraints/. After reading and thinking about the article mentioned above, I see the act of pinning dependencies as "securing the past", while unpinning (and removing upper bounds) as "easing the future". And I prefer the latter. Just my opinion! |
@pawamoy I agree with the article, that you shouldn't always pin upper bound versions. For the exceptions frequent I don't like how pipenv vendors half of pypi. But it does recognize that it's a tool, an application, a command that people count one to be working. I think wisdom lies somewhere in between on this spectrum. PS in the time we spent bickering over this, either of us could have written a PR that solves it. :) |
@CharString I don't think it was bickering: you suggested considering pins on pip, I gave my opinion (and the reason why it's currently not upper-bounded) 😄 I believe these sort of exchanges are valuable 🙂 |
Just for reference: pypa/pip#9639 |
I think pinning |
To fix <pdm-project/pdm#874> resulting in: ``` [TypeError]: unpack_url() missing 1 required positional argument: 'verbosity' ```
…ct/pdm#874 Approved-by: Krystian Hanek
…ct/pdm#874 Approved-by: Krystian Hanek
Steps to reproduce
Hard to give a way to reproduce since I make lots of experimentation in Docker at the same time.
I've tried do recreate a small example but I couldn't.
In all case, the code speak for itself.
Current situation
Error raised since pip expect
verbosity
as fourth positional argument.pdm/pdm/models/candidates.py
Lines 257 to 262 in afb3244
Change in pip code
They change the behavior of
unpack_url
from 21.3.1 to 22.0.1:def unpack_url( link: Link, location: str, download: Downloader, + verbosity: int, download_dir: Optional[str] = None, hashes: Optional[Hashes] = None, ) -> Optional[File]:
https://github.com/pypa/pip/blob/c73ac8d6bcf4f64041cafeccd2125cca052abed9/src/pip/_internal/operations/prepare.py#L174-L181
Environment Information
The text was updated successfully, but these errors were encountered: