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
33b7f0cd9e
Remove deprecated sdist reinstall feature for 21.2
2021-07-25 10:42:10 +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
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
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
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