Pradyun Gedam
10c0f0d637
Hide feature flag if deprecated behaviour is gone
2021-08-15 19:15:53 +01:00
Pradyun Gedam
7bbbaa3857
Test the feature_flag
argument in deprecated
helper
...
This wasn't covered properly in the PR that introduced this.
2021-08-15 19:15:53 +01:00
Pradyun Gedam
7120590935
Tweak wording in deprecation messages
...
- Avoid a period at the end of `issue` line.
- Change post-gone message wording.
2021-08-15 19:15:53 +01:00
Pradyun Gedam
df501bcf96
Enforce keyword arguments in deprecated
2021-08-15 19:15:52 +01:00
Nipunn Koorapati
2d35b8072c
Use git's partial clone feature to speed up pip
...
Clone with --filter=blob:none - as it fetches all
metadata, but only dynamically fetches the blobs as
needed by checkout. Since typically, pip only needs the blobs for
a single revision, this can be a big improvement, especially
when fetching from repositories with a lot of history,
particularly on slower network connections.
Added unit test for the rev-less path. Confirmed that both
of the if/else paths are tested by the unit tests.
2021-08-13 11:44:01 -07:00
Pradyun Gedam
b9f829553d
Merge pull request #10302 from nipunn1313/blacken_tests42
...
Run black on tests/functional/test_vcs_bazaar.py
2021-08-13 11:00:09 +01:00
Nipunn Koorapati
7e7c10ab4d
Run black on tests/functional/test_new_resolver_errors.py
2021-08-11 13:24:05 +08:00
Nipunn Koorapati
1b15952618
Run black on tests/functional/test_hash.py
2021-08-11 13:23:50 +08:00
Nipunn Koorapati
7495e786f2
Run black on tests/functional/test_vcs_subversion.py
2021-08-11 13:23:44 +08:00
Nipunn Koorapati
d03b8a84a2
Run black on tests/functional/test_uninstall_user.py
2021-08-11 13:23:39 +08:00
Nipunn Koorapati
ba5a6784ed
Run black on tests/functional/test_new_resolver_target.py
2021-08-11 13:23:32 +08:00
Nipunn Koorapati
13068687a7
Run black on tests/functional/test_new_resolver_hashes.py
2021-08-11 13:23:23 +08:00
Tzu-ping Chung
36877e327a
Merge pull request #10317 from nipunn1313/blacken_tests10
...
Run black on tests/functional/test_fast_deps.py
2021-08-11 13:22:10 +08:00
Tzu-ping Chung
c1c74dcaeb
Merge pull request #10318 from nipunn1313/blacken_tests24
...
Run black on tests/functional/test_install_requested.py
2021-08-11 13:21:59 +08:00
Tzu-ping Chung
bf91a07979
Merge pull request #10287 from jdufresne/com2ann
...
Move many type comments to annotations
2021-08-11 13:20:45 +08:00
Tzu-ping Chung
fcc61e8630
Merge pull request #10339 from nipunn1313/blacken_tests38
2021-08-11 13:20:03 +08:00
Nipunn Koorapati
dc9ef9d252
Run black on tests/functional/test_search.py
2021-08-10 11:21:20 -07:00
Jon Dufresne
6a6561c2cb
Move many type comments to annotations
...
Use the tool com2ann to automatically convert most type comments to type
annotations. Some type comments continue to exist where any work beyond
the automatic conversion was required (for example, additional
formatting or circular references).
For additional information on the com2ann tool, see:
https://github.com/ilevkivskyi/com2ann
2021-08-10 07:12:32 -07:00
Nipunn Koorapati
319f81bc5d
Run black on tests/functional/test_vcs_bazaar.py
2021-08-09 01:18:44 -07:00
Nipunn Koorapati
75332ac633
Run black on tests/functional/test_fast_deps.py
2021-08-09 01:18:43 -07:00
Nipunn Koorapati
7a19a9eed9
Run black on tests/functional/test_install_requested.py
2021-08-09 01:18:43 -07:00
Pradyun Gedam
4d933d2e10
Use a stricter regex for matching the Python version
...
Co-authored-by: Kevin Puetz <puetzk@puetzk.org>
2021-08-06 15:55:55 +01:00
Pradyun Gedam
df98748391
Skip warnings-as-errors test
...
There is no clean way, that we know of so far, for fixing this on 3.10+.
2021-08-06 13:42:31 +01:00
Pradyun Gedam
35b938b42e
Permit multi-character segments in Python versions, in a test
...
This is necessary since Python 3.10 has two digits in the minor version.
2021-08-06 13:42:31 +01:00
Tzu-ping Chung
6a228068fb
Correctly normalize relative paths for 'pip show'
2021-07-31 14:55:43 +08:00
Tzu-ping Chung
95fa4e5a2a
Respect the base's constraint for extra-ed package
2021-07-30 20:13:25 +08:00
Pradyun Gedam
82cfebe8a7
Merge pull request #10167 from maresb/gone-in-message
2021-07-28 23:21:17 +01:00
Pradyun Gedam
664beeabf7
Merge pull request #10197 from pradyunsg/breakout-tools-requirements-folder
...
Get rid of tools/requirements/ directory, by moving those files into better locations
2021-07-28 10:35:10 +01:00
Ben Mares
dbf994e160
Add canned explanation about feature preview flag
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> and
Pradyun Gedam <pradyunsg@gmail.com>
2021-07-28 00:26:36 -07: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
Pradyun Gedam
236c0ccb8a
Move test requirements into tests/
...
This makes the file easier to locate, by placing it next to the stuff
that it will affect.
2021-07-24 12:06:51 +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
Tzu-ping Chung
6db400328b
Add test case for file://localhost/ usages
2021-07-23 15:38:00 +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
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
Xavier Fernandez
1f1e1d6211
Remove deprecated --find-links option from pip freeze
2021-07-13 22:15:07 +02:00
Tzu-ping Chung
bd5ac261c0
Merge pull request #10035 from hukkin/tomli
2021-07-12 16:57:44 +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
f9c49eff8d
Failing test for local unnamed dependency
2021-07-12 12:37:59 +08:00