Commit Graph

11976 Commits

Author SHA1 Message Date
meowmeowcat 11f0cb463a
Fix broken link in `README.rst` 2021-07-26 15:37:56 +08:00
Tzu-ping Chung 5fe6ee6369
Merge pull request #10203 from domdfcoding/news-typo
Ensure newline after literal block in NEWS.rst
2021-07-26 11:52:28 +08:00
Dominic Davis-Foster 6c024d6095
Ensure newline after literal block in NEWS.rst 2021-07-25 13:03:34 +01:00
Tzu-ping Chung 5fbf2b5f35
Merge pull request #10198 from uranusjr/release-21-2
For releases 21.2 and 21.2.1
2021-07-25 12:51:10 +08:00
Tzu-ping Chung bddd1bb4bb Bump for development 2021-07-25 12:21:39 +08:00
Tzu-ping Chung bd41229cdc Bump for release 2021-07-25 12:21:39 +08:00
Tzu-ping Chung 765a4b4022 Bump for development 2021-07-25 12:20:54 +08:00
Tzu-ping Chung 3d25c5327d Bump for release 2021-07-25 12:20:53 +08:00
Tzu-ping Chung 27b9a9c35c Update AUTHORS.txt 2021-07-25 12:20:53 +08:00
Tzu-ping Chung b9dbab277b
Merge pull request #10199 from uranusjr/remove-local-sdist-reinstall
Push deprecated sdist reinstall feature removal from 21.2 to 21.3
2021-07-25 12:20:22 +08:00
Tzu-ping Chung 33b7f0cd9e Remove deprecated sdist reinstall feature for 21.2 2021-07-25 10:42:10 +08:00
johnthagen a8b8d4d7fe
Document how to install provides_extras from local wheel file (#9698) 2021-07-25 10:36:26 +08:00
Guy Tuval 239a307372
Error handling upon `uninstall` invalid parameter (#10171)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-24 21:24:30 +08:00
Tzu-ping Chung 5e86264b5a
Merge pull request #10189 from harupy/type-annotations-index-models
Complete type annotations in `pip/_internal/index` and `pip/_internal/models`
2021-07-24 10:02:03 +08:00
Tzu-ping Chung 02b1855b45
Merge pull request #10188 from harupy/type-annotations-req 2021-07-24 10:00:57 +08:00
Tzu-ping Chung 9ebd05c962
Merge pull request #10191 from pradyunsg/blacken/tools
Blacken tools/
2021-07-24 09:47:36 +08:00
Pradyun Gedam 330d0aad35
Merge pull request #10193 from pradyunsg/blacken/network
Blacken src/pip/_internal/network/
2021-07-23 21:20:48 +01:00
Pradyun Gedam a196b3bf01
Minor formatting tweaks (#10190)
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2021-07-24 03:55:14 +08:00
Pradyun Gedam 1bc0eef056
Blacken src/pip/_internal/network/
Progresses the black formatting of the codebase further.
2021-07-23 20:51:50 +01:00
Pradyun Gedam c7ee560e00
Blacken tools/
Progresses the black formatting of the codebase further.
2021-07-23 17:11:56 +01:00
harupy 6ff78f0b59 Convert type comments 2021-07-23 23:51:54 +09:00
harupy 9d96e0777f Convert type comments 2021-07-23 23:38:27 +09:00
Harutaka Kawamura 2de3af1747
Complete type annotations in `pip/_internal/commands` (#10182) 2021-07-23 18:27:43 +08:00
Harutaka Kawamura f8a7439528
Complete type annotations in `pip/_internal/network` (#10184) 2021-07-23 18:27:28 +08:00
Illia Volochii 0fb0e3b547
Upgrade vendored requests to 2.26.0 (#10174)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-23 17:03:53 +08:00
Tzu-ping Chung c5abdda6fe
Merge pull request #10186 from uranusjr/new-resolver-file-link-localhost 2021-07-23 17:01:28 +08:00
Diego Ramirez e689113577
Complete the annotations: `pip/_internal/utils` (#10159)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-23 17:00:30 +08:00
Tzu-ping Chung be89ea5d5b Correctly handle file://localhost/ and file:///
According to RFC 8089, an empty host value (i.e. "file:///") should be
taken to be "localhost" (i.e. "file://localhost/"), so we need to
perform some additional normalization to compare such URLs correctly.
2021-07-23 16:13:55 +08:00
Tzu-ping Chung 6db400328b Add test case for file://localhost/ usages 2021-07-23 15:38:00 +08:00
Harutaka Kawamura df98167fe5
Complete type annotations in `pip/_internal/cli` (#10169) 2021-07-23 11:39:53 +08:00
Illia Volochii 282005a318
Upgrade requests dependencies (#10180)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-23 11:29:24 +08:00
Tzu-ping Chung 1c4753f299
Vendoring update for 21.2 (#10179) 2021-07-23 11:06:29 +08:00
Tzu-ping Chung 6af7739596
Merge pull request #10157 from uranusjr/metadata-refactor-2107
Replace more pkg_resources usages
2021-07-23 11:04:45 +08:00
Tzu-ping Chung d4d2445350 Remove get_installed_distributions usages
The function itself is kept for now because it's currently used to test
the pip.metadata subpackage...
2021-07-22 23:22:12 +08:00
Tzu-ping Chung 956ed04098 Remove pkg_resources usage in direct_url_helper 2021-07-22 17:12:29 +08:00
Tzu-ping Chung 26778e9436
Merge pull request #10079 from new-resolver-url-equivalent-no-hash
Smarter (and looser) link equivalency logic
2021-07-22 15:45:13 +08:00
Harutaka Kawamura 567282724d
Log commit SHA when installing package via Git URI (#10149)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-22 15:29:16 +08:00
Tzu-ping Chung f6b184ccaf
Strip slash before Windows drive letter in path (#10116)
Functions like urllib.parse.urlsplit() parses a file:// URL created from
a non-UNC Windows absolute path with a leading slash in the path
component:

>>> from pathlib import Path
>>> from urllib.parse import urlsplit
>>> path = Path("C:/Users/VssAdministrator")
>>> parsed = urlsplit(path.as_posix())
>>> parsed.path
'/C:/Users/VssAdministrator'

This value unfortunately does not play well with path functions like
open(), so we performs some additional cleanup to strip that leading
slash.

This commit also contains some minor cleanup to unify how Windows is
detected, and how a file:// URL is fetched.
2021-07-22 15:28:43 +08:00
Tzu-ping Chung 2da77e97a2 Smarter (and looser) link equivalency logic 2021-07-22 15:27:10 +08:00
Tzu-ping Chung 6f1c5dc949 Remove pkg_resources usages from 'pip freeze' 2021-07-22 15:25:18 +08:00
Tzu-ping Chung 19389df484 Fix expected error message format 2021-07-22 15:20:50 +08:00
Tzu-ping Chung c7774141d8 Correctly canonicalize skipped package names 2021-07-22 15:20:50 +08:00
Tzu-ping Chung ead43d674d Add method to access the raw project name 2021-07-22 15:20:49 +08:00
Tzu-ping Chung 5f47421313 Remove pkg_resources usages from 'pip show' 2021-07-22 15:20:49 +08:00
Tzu-ping Chung 3bba1d34a2 Fix unit test setup to use BaseDistribution 2021-07-22 15:20:49 +08:00
Tzu-ping Chung cb1fdf079e Sort imports 2021-07-22 15:20:49 +08:00
Tzu-ping Chung 8011c07861 Improve extras a bit 2021-07-22 15:20:49 +08:00
Tzu-ping Chung aee4b50021 Use email.message to parse metadata 2021-07-22 15:20:49 +08:00
Tzu-ping Chung 28fff1e483 Remove pkg_resources usages in wheel operations 2021-07-22 15:20:49 +08:00
Tzu-ping Chung 21529db516 Remove pkg_resources usage in build_env 2021-07-22 15:20:49 +08:00