Skip to content

Commit

Permalink
Add missing verbosity flag (#875)
Browse files Browse the repository at this point in the history
* Add missing verbosity flag

* Check pip version

* Check func signature

* Refactor unpack_url

* Fix unpack_url

* Create 875.bugfix.md

Co-authored-by: Frost Ming <mianghong@gmail.com>
  • Loading branch information
q0w and frostming authored Feb 5, 2022
1 parent 4ab6cb8 commit 42edab5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/875.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the compatibility issue with `pip>=22.0`.
5 changes: 5 additions & 0 deletions pdm/models/pip_shims.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import atexit
import inspect
from functools import partial
from typing import TYPE_CHECKING, Any, Optional, Tuple

from pip._internal.cache import WheelCache
Expand Down Expand Up @@ -41,6 +42,10 @@
from optparse import Values


if "verbosity" in inspect.getfullargspec(unpack_url).args:
unpack_url = partial(unpack_url, verbosity=0)


class InstallCommand(_InstallCommand):
def __init__(self) -> None:
super().__init__(name="InstallCommand", summary="Install packages.")
Expand Down

0 comments on commit 42edab5

Please sign in to comment.