1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

3452 commits

Author SHA1 Message Date
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
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
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
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
Tzu-ping Chung
da8eee63ad Add direct URL accessor 2021-07-22 15:20:49 +08:00
László Kiss Kollár
76cd70ac42
Upgrade packaging to 21.0 (#10144) 2021-07-17 12:19:56 +08:00
Xavier Fernandez
1f1e1d6211 Remove deprecated --find-links option from pip freeze 2021-07-13 22:15:07 +02:00
Diego Ramirez
3b3fde2447
Fix the pip/_internal/distributions annotations (#10074) 2021-07-13 06:29:21 +08:00
Diego Ramirez
ce86dc86d6
Complete type annotations in pip/_internal/index (#10111) 2021-07-13 03:28:36 +08:00
Tzu-ping Chung
cccf38067a
Merge pull request #10148 from uranusjr/location-warning-again
Re-enable location warning
2021-07-13 03:19:53 +08:00
Tzu-ping Chung
646aba8c3a
Merge pull request #10145 from uranusjr/py310-sysconfig-api 2021-07-13 01:14:36 +08:00
Tzu-ping Chung
bd5ac261c0
Merge pull request #10035 from hukkin/tomli 2021-07-12 16:57:44 +08:00
Tzu-ping Chung
8349b9a9ae Ask mypy to shut up about get_preferred_scheme 2021-07-12 16:01:54 +08:00
Tzu-ping Chung
ca4aa121a9 Use Python 3.10 sysconfig.get_preferred_scheme()
This function is introduced to 3.10 to do precisely what we want, so
let's use it if possible.
2021-07-12 16:01:00 +08:00
Tzu-ping Chung
889571a5e1 Re-enable location warning 2021-07-12 15:58:25 +08:00
Tzu-ping Chung
ad3d498702
Merge pull request #9865 from uranusjr/sysconfig-message-improvement
Cache location calculation functions
2021-07-12 15:55:31 +08:00
Tzu-ping Chung
c5f9bc5f3b try-except distutils config parsing 2021-07-12 15:06:37 +08:00
Tzu-ping Chung
32a3a50c49
Merge pull request #10077 from uranusjr/requires-python-to-debug
Move "Link requires a different Python" to verbose
2021-07-12 14:02:39 +08:00
Tzu-ping Chung
4cd32551ad
Merge pull request #9569 from uranusjr/pax-tar-2
Always open tar files with UTF-8
2021-07-12 14:01:49 +08:00
Tzu-ping Chung
11a9990cca
Merge pull request #10084 from uranusjr/new-resolver-local-dependencies 2021-07-12 14:01:08 +08:00
Tzu-ping Chung
57d9af2c4f Ignore header difference for osx_framework_user 2021-07-12 13:12:20 +08:00
Tzu-ping Chung
77810bc9b4 Special osx_framework_library prefix scheme 2021-07-12 13:11:31 +08:00
Tzu-ping Chung
1501272307 Use osx_framework_user for Mac framework build 2021-07-12 13:10:59 +08:00
Tzu-ping Chung
73edd74c56 Detect user-requested package names by preparing
This always prepares each explicit requirements when the resolver is
run, instead of when they are being resolved. But we always want to
prepare them anyway (an explicit requirement has only one candidate, so
it's either do or die), so this is not really a problem.
2021-07-12 12:40:34 +08:00
Tzu-ping Chung
5d81040ee8 Refactor root requirement collection into factory 2021-07-12 12:40:32 +08:00
Tzu-ping Chung
c1da53dacc Migrate 'pip list' to use metadata abstraction 2021-07-12 11:44:23 +08:00
Diego Ramirez
6958b87d3d
Complete type annotations: pip/_internal/models (#10138) 2021-07-12 11:43:52 +08:00
Harutaka Kawamura
23eb69fe21
Complete type annotations in pip/_internal/locations (#10127) 2021-07-12 11:42:16 +08:00
Harutaka Kawamura
72e1ff35c7
Complete type annotations in pip/_internal/resolution (#10125) 2021-07-12 11:41:48 +08:00
briantracy
37a2b12a21
Special case warning for requirements.txt install (#9915)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-12 11:40:43 +08:00