Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reduce diff | Tzu-ping Chung | 2021-03-15 | 1 | -5/+2 |
| | |||||
* | Typing fixes | Tzu-ping Chung | 2021-03-10 | 2 | -5/+8 |
| | |||||
* | Add a warning when run as root (e.g., sudo pip) (#9394) | Winson Luk | 2021-03-06 | 2 | -2/+8 |
| | |||||
* | Merge branch 'master' into sysconfig | Tzu-ping Chung | 2021-02-28 | 1 | -4/+4 |
|\ | |||||
| * | Merge pull request #9595 from hexagonrecursion/transformed-hint | Pradyun Gedam | 2021-02-24 | 1 | -4/+4 |
| |\ | | | | | | | Use the new typehint syntax | ||||
| | * | Use the new typehint syntax | Andrey Bienkowski | 2021-02-20 | 1 | -4/+4 |
| | | | |||||
* | | | Move distuitls location logic into subpackage | Tzu-ping Chung | 2021-02-23 | 1 | -8/+14 |
|/ / | |||||
* | | Merge pull request #9378 from jdufresne/xmlrpc | Pradyun Gedam | 2021-02-21 | 1 | -6/+4 |
|\ \ | | | | | | | Replace six.moves.xmlrpc_client with stdlib | ||||
| * | | Replace six.moves.xmlrpc_client with stdlib | Jon Dufresne | 2021-02-20 | 1 | -6/+4 |
| |/ | | | | | | | Updated type signatures for compatibility with the stdlib class. | ||||
* | | Merge pull request #9606 from hexagonrecursion/fstr | Pradyun Gedam | 2021-02-21 | 2 | -5/+4 |
|\ \ | |/ |/| | |||||
| * | Lint | Andrey Bienkowski | 2021-02-18 | 1 | -1/+1 |
| | | |||||
| * | Apply review suggestions | Andrey Bienkowski | 2021-02-18 | 1 | -1/+2 |
| | | |||||
| * | Convert more str.format() calls to f-strings | Andrey Bienkowski | 2021-02-13 | 2 | -5/+3 |
| | | |||||
* | | Remove typing.TYPE_CHECKING guards | Jon Dufresne | 2021-02-19 | 16 | -102/+53 |
| | | | | | | | | | | | | | | | | | | | | | | The typing module has been available since Python 3.5. Guarding the import has been unnecessary since dropping Python 2. Some guards remain to either: - Avoid circular imports - Importing objects that are also guarded by typing.TYPE_CHECKING - Avoid mypy_extensions dependency | ||||
* | | Incorporate get_installed_version() logic | Tzu-ping Chung | 2021-02-19 | 1 | -8/+5 |
| | | | | | | | | | | | | | | All usages of it now use Environment.get_distribution() instead. InstallRequirement.installed_version is also removed since it is no longer used anywhere in the code base. | ||||
* | | Replace pip._internal.utils.typing with stdlib typing | Jon Dufresne | 2021-02-18 | 16 | -33/+34 |
|/ | | | | | | | | The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim. | ||||
* | Remove pkg_resources usage in search | Tzu-ping Chung | 2021-02-04 | 1 | -6/+5 |
| | |||||
* | Replace pkg_resources usage in 'pip debug' | Tzu-ping Chung | 2021-02-04 | 1 | -5/+6 |
| | |||||
* | commands: debug: Use packaging.version.parse to compare | Noah Gorny | 2021-01-16 | 1 | -1/+2 |
| | |||||
* | Merge pull request #9418 from sbidoul/freeze-does-not-need-wheel-cache | Stéphane Bidoul | 2021-01-09 | 1 | -9/+2 |
|\ | | | | | Remove unused wheel_cache argument in freeze operation | ||||
| * | Pass freeze() kwargs directly | Stéphane Bidoul | 2021-01-02 | 1 | -4/+2 |
| | | |||||
| * | The freeze operation does not need a wheel_cache | Stéphane Bidoul | 2021-01-02 | 1 | -5/+0 |
| | | |||||
* | | Merge pull request #9320 from uranusjr/wheel-check-valid | Pradyun Gedam | 2021-01-05 | 2 | -0/+10 |
|\ \ | | | | | | | Verify built wheel contains valid metadata | ||||
| * | | Verify built wheel contains valid metadata | Tzu-ping Chung | 2020-12-27 | 2 | -0/+10 |
| | | | |||||
* | | | Make get_similar_command() return None for no value | Jon Dufresne | 2021-01-01 | 1 | -9/+3 |
| |/ |/| | | | | | | | | | Follows the more conventional pattern of using None, instead of False, when no value can be returned. This simplifies typing a bit by using Optional instead of Union[bool, ...]. | ||||
* | | Merge pull request #9406 from sbidoul/simplify-check_binary_allowed-sbi | Stéphane Bidoul | 2021-01-01 | 1 | -2/+0 |
|\ \ | | | | | | | Simplify check_binary_allowed | ||||
| * | | Simplify check_binary_allowed | Stéphane Bidoul | 2020-12-31 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | check_binary_allowed is only used to check if a wheel needs to be built in 'pip install' mode. It mixed format control and pep517 mode check. We change it so it checks allowed formats only, which leads to better readability of _should_build(). | ||||
* | | | Merge pull request #9364 from jdufresne/oserror | Pradyun Gedam | 2020-12-27 | 1 | -6/+6 |
|\ \ \ | | | | | | | | | Use unified OSError and its subclasses | ||||
| * | | | Use unified OSError and its subclasses | Jon Dufresne | 2020-12-26 | 1 | -6/+6 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Python 3.3, the following classes have merged into OSError. They remain as aliases for backward compatibility. - EnvironmentError - IOError - WindowsError https://docs.python.org/3/library/exceptions.html#OSError Python 3 also has subclasses of OSError to help identify more specific errors. For example, FileNotFoundError. This allows simplifying some except blocks. | ||||
* | | | Merge pull request #9315 from pradyunsg/better-search-errors | Pradyun Gedam | 2020-12-27 | 1 | -1/+8 |
|\ \ \ | |/ / |/| | | |||||
| * | | Present a nicer error in pip search | Pradyun Gedam | 2020-12-18 | 1 | -1/+8 |
| | | | |||||
* | | | Use f-strings for simple string formatting | Jon Dufresne | 2020-12-25 | 4 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | Use pyupgrade to convert simple string formatting to use f-string syntax. pyupgrade is intentionally timid and will not create an f-string if it would make the expression longer or if the substitution parameters are anything but simple names or dotted names. | ||||
* | | | Remove encoding cookie from Python source files | Jon Dufresne | 2020-12-25 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | Unnecessary since dropping Python 2. Python now decodes files as utf-8 by default. | ||||
* | | | Remove __future__ imports | Jon Dufresne | 2020-12-24 | 14 | -28/+0 |
| | | | | | | | | | | | | Unnecessary since dropping Python 2. | ||||
* | | | Remove obsolete "# type: ignore" comments | Jon Dufresne | 2020-12-23 | 1 | -13/+2 |
| | | | | | | | | | | | | | | | | | | | | | Obsolete since dropping Python 2 support. Add the mypy setting "warn_unused_ignores = True" to catch these earlier. | ||||
* | | | Replace compat shim with shutil.get_terminal_size() | Hugo van Kemenade | 2020-12-22 | 1 | -2/+2 |
| | | | |||||
* | | | Remove redundant Python 2.7 code | Hugo van Kemenade | 2020-12-22 | 1 | -4/+2 |
| |/ |/| | |||||
* | | Add `--ignore-requires-python` support to pip download | Nikita Chepanov | 2020-12-17 | 1 | -0/+3 |
|/ | |||||
* | Restore --build-dir | Stéphane Bidoul | 2020-12-01 | 3 | -0/+4 |
| | |||||
* | Merge pull request #9123 from sbidoul/pip-wheel-editable-fix-sbi | Pradyun Gedam | 2020-11-22 | 1 | -1/+1 |
|\ | |||||
| * | Do not download editables while preparing requirements | Stéphane Bidoul | 2020-11-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Downloading is done at the end of the download command just like any other requirement. This is necessary to avoid archiving editable requirements to a zip file when running pip wheel. | ||||
* | | Update message displayed on conflicts post-resolution | Pradyun Gedam | 2020-11-12 | 1 | -7/+10 |
|/ | |||||
* | Add --exclude option to pip freeze and pip list commands | Xavier Fernandez | 2020-10-30 | 2 | -0/+11 |
| | |||||
* | Merge pull request #9019 from pradyunsg/flip-the-switch-on-new-resolver | Pradyun Gedam | 2020-10-31 | 1 | -4/+4 |
|\ | |||||
| * | Factor out logic for determining resolver to use | Pradyun Gedam | 2020-10-30 | 1 | -4/+4 |
| | | |||||
* | | freeze: deprecate option --find-links | Xavier Fernandez | 2020-10-30 | 1 | -0/+9 |
|/ | |||||
* | Remove --build-dir option, as per deprecation | Paul Moore | 2020-10-27 | 3 | -13/+3 |
| | |||||
* | New resolver: Avoid polluting dest dir | Nguyễn Gia Phong | 2020-10-07 | 2 | -4/+8 |
| | | | | | | | Previously, during dependency resolution for `pip download -d <dir>` or `pip wheel -w <dir>`, distributions downloaded are always saved to <dir>, even for those are only used in backtracking and are not part of the returned requirement set. | ||||
* | Merge usage of download_dir and wheel_download_dir | Nguyễn Gia Phong | 2020-10-07 | 1 | -1/+1 |
| | | | | | In every cases, at least one of them is None. By doing this, it is also possible to simplify wrapper codes around download_dir. | ||||
* | Remove download_dir exist check | Nguyễn Gia Phong | 2020-10-07 | 1 | -1/+0 |
| | | | | Both pip download and wheel call endure_dir on the directory. |