summaryrefslogtreecommitdiff
path: root/src/pip/_internal/commands
Commit message (Collapse)AuthorAgeFilesLines
* Reduce diffTzu-ping Chung2021-03-151-5/+2
|
* Typing fixesTzu-ping Chung2021-03-102-5/+8
|
* Add a warning when run as root (e.g., sudo pip) (#9394)Winson Luk2021-03-062-2/+8
|
* Merge branch 'master' into sysconfigTzu-ping Chung2021-02-281-4/+4
|\
| * Merge pull request #9595 from hexagonrecursion/transformed-hintPradyun Gedam2021-02-241-4/+4
| |\ | | | | | | Use the new typehint syntax
| | * Use the new typehint syntaxAndrey Bienkowski2021-02-201-4/+4
| | |
* | | Move distuitls location logic into subpackageTzu-ping Chung2021-02-231-8/+14
|/ /
* | Merge pull request #9378 from jdufresne/xmlrpcPradyun Gedam2021-02-211-6/+4
|\ \ | | | | | | Replace six.moves.xmlrpc_client with stdlib
| * | Replace six.moves.xmlrpc_client with stdlibJon Dufresne2021-02-201-6/+4
| |/ | | | | | | Updated type signatures for compatibility with the stdlib class.
* | Merge pull request #9606 from hexagonrecursion/fstrPradyun Gedam2021-02-212-5/+4
|\ \ | |/ |/|
| * LintAndrey Bienkowski2021-02-181-1/+1
| |
| * Apply review suggestionsAndrey Bienkowski2021-02-181-1/+2
| |
| * Convert more str.format() calls to f-stringsAndrey Bienkowski2021-02-132-5/+3
| |
* | Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-1916-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() logicTzu-ping Chung2021-02-191-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 typingJon Dufresne2021-02-1816-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 searchTzu-ping Chung2021-02-041-6/+5
|
* Replace pkg_resources usage in 'pip debug'Tzu-ping Chung2021-02-041-5/+6
|
* commands: debug: Use packaging.version.parse to compareNoah Gorny2021-01-161-1/+2
|
* Merge pull request #9418 from sbidoul/freeze-does-not-need-wheel-cacheStéphane Bidoul2021-01-091-9/+2
|\ | | | | Remove unused wheel_cache argument in freeze operation
| * Pass freeze() kwargs directlyStéphane Bidoul2021-01-021-4/+2
| |
| * The freeze operation does not need a wheel_cacheStéphane Bidoul2021-01-021-5/+0
| |
* | Merge pull request #9320 from uranusjr/wheel-check-validPradyun Gedam2021-01-052-0/+10
|\ \ | | | | | | Verify built wheel contains valid metadata
| * | Verify built wheel contains valid metadataTzu-ping Chung2020-12-272-0/+10
| | |
* | | Make get_similar_command() return None for no valueJon Dufresne2021-01-011-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-sbiStéphane Bidoul2021-01-011-2/+0
|\ \ | | | | | | Simplify check_binary_allowed
| * | Simplify check_binary_allowedStéphane Bidoul2020-12-311-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/oserrorPradyun Gedam2020-12-271-6/+6
|\ \ \ | | | | | | | | Use unified OSError and its subclasses
| * | | Use unified OSError and its subclassesJon Dufresne2020-12-261-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-errorsPradyun Gedam2020-12-271-1/+8
|\ \ \ | |/ / |/| |
| * | Present a nicer error in pip searchPradyun Gedam2020-12-181-1/+8
| | |
* | | Use f-strings for simple string formattingJon Dufresne2020-12-254-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 filesJon Dufresne2020-12-251-2/+0
| | | | | | | | | | | | | | | Unnecessary since dropping Python 2. Python now decodes files as utf-8 by default.
* | | Remove __future__ importsJon Dufresne2020-12-2414-28/+0
| | | | | | | | | | | | Unnecessary since dropping Python 2.
* | | Remove obsolete "# type: ignore" commentsJon Dufresne2020-12-231-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 Kemenade2020-12-221-2/+2
| | |
* | | Remove redundant Python 2.7 codeHugo van Kemenade2020-12-221-4/+2
| |/ |/|
* | Add `--ignore-requires-python` support to pip downloadNikita Chepanov2020-12-171-0/+3
|/
* Restore --build-dirStéphane Bidoul2020-12-013-0/+4
|
* Merge pull request #9123 from sbidoul/pip-wheel-editable-fix-sbiPradyun Gedam2020-11-221-1/+1
|\
| * Do not download editables while preparing requirementsStéphane Bidoul2020-11-221-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-resolutionPradyun Gedam2020-11-121-7/+10
|/
* Add --exclude option to pip freeze and pip list commandsXavier Fernandez2020-10-302-0/+11
|
* Merge pull request #9019 from pradyunsg/flip-the-switch-on-new-resolverPradyun Gedam2020-10-311-4/+4
|\
| * Factor out logic for determining resolver to usePradyun Gedam2020-10-301-4/+4
| |
* | freeze: deprecate option --find-linksXavier Fernandez2020-10-301-0/+9
|/
* Remove --build-dir option, as per deprecationPaul Moore2020-10-273-13/+3
|
* New resolver: Avoid polluting dest dirNguyễn Gia Phong2020-10-072-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_dirNguyễn Gia Phong2020-10-071-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 checkNguyễn Gia Phong2020-10-071-1/+0
| | | | Both pip download and wheel call endure_dir on the directory.