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
Tzu-ping Chung
e6c317769a
Move assert_[not_]installed to Script and use it
...
This help function is much better than the previous ad-hoc logic used in
test_uninstall.py, which has trouble identifying normalized names.
2021-07-12 11:44:23 +08:00
Tzu-ping Chung
ef8299d559
pip list now normalizes the project name
2021-07-12 11:44:23 +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
Nikita Chepanov
f2ce7741ab
Suppress "not on PATH" warning when --prefix
is given
...
Similar to how it works with `--target`, avoid printing the
warning since it's clear from the context that the final
destionation of the executables is unlikely to be in the PATH.
2021-07-12 11:39:56 +08:00
Tzu-ping Chung
72e38ca3df
Re-implement Git version parsing with regex
...
After packaging drops LegacyVersion, version.parse() will no longer
guarantee to be able to parse Git versions, so we need to invent our own
parser. Since we really only care about the major and minor segments,
the logic is pretty simple.
2021-07-02 19:03:15 +08:00
Taneli Hukkinen
af79d0d393
Replace use of vendored toml
in tests with PyPI toml
2021-07-02 00:21:00 +03:00
Tzu-ping Chung
62f481679a
Move "Link requires a different Python" to verbose
2021-06-20 05:21:11 +08:00
Tzu-ping Chung
7c3abccd22
Merge pull request #9994 from uranusjr/requires-python-before-other-deps
...
Check Requires-Python before other dependencies
2021-06-15 19:49:13 +08:00
Tzu-ping Chung
c16585173b
Merge pull request #9450 from minrk/custom-log-level
2021-06-11 19:05:56 +08:00
Noah Gorny
3751878b42
Implement new command 'pip index versions'
2021-06-11 19:01:14 +08:00
Pradyun Gedam
a90dd11e3f
Merge pull request #10033 from snook92/multi_cred_index_url
2021-06-11 11:59:36 +01:00
Tzu-ping Chung
b38b925400
Merge pull request #9822 from bwoodsend/fix-pip-freeze-git
2021-06-04 18:58:15 +08:00
bwoodsend
8b8fa2bd5f
Explicitly recognise SCP-shorthand git remotes.
2021-06-03 17:52:25 +01:00
bwoodsend
f533671b0c
Fix pip freeze to use modern format for git repos ( #9822 )
...
Pip dropped support for `git+ssh@` style requirements (see #7554 )
in favour of `git+ssh://` but didn't propagate the change to
`pip freeze` which resultantly returns invalid requirements.
Fix this behaviour.
Fixes #9625 .
2021-06-03 17:45:56 +01:00
Paul Moore
3c1d1810dc
Merge pull request #9949 from hroncok/error_msg_missing_record
...
Provide a better error message when uninstalling packages without dist-info/RECORD
2021-06-02 13:31:32 +01:00
Bruno S
dca1299b18
network auth / minor changes and more tests
2021-06-01 21:14:52 +02:00
Tzu-ping Chung
c8638adc5a
Check Requires-Python before other dependencies
...
This makes the resolver fail quicker when there's a interpreter
version conflict, and avoid additional (useless) downloads.
2021-06-02 01:54:44 +08:00
Bruno S
ff03baee67
network auth / allow username alone and fix tests
2021-06-01 09:55:35 +02:00
Tzu-ping Chung
cb301333b7
Merge pull request #9993
...
from uranusjr/exclude-installed-candidate-if-incompatible
2021-05-22 20:49:49 +08:00
Tzu-ping Chung
8360cab1ba
Test case for backtracking an installed candidate
2021-05-22 05:36:01 +08:00
Alex Gaynor
248b6785a4
Added comments
2021-05-17 17:15:27 -04:00
Alex Gaynor
f787788a65
Include rustc version in the user agent, if rustc is available
...
Rust is becoming more popular for writing Python extension modules in, this information would be valuable for package maintainers to assess the ecosystem, in the same way glibc or openssl version is.
2021-05-16 21:50:58 -04:00
Miro Hrončok
f77649e841
Provide a better error message when uninstalling packages without dist-info/RECORD
...
Fixes https://github.com/pypa/pip/issues/8954
2021-05-10 21:56:59 +02:00
Tzu-ping Chung
dc9efc856f
Always open tar files with UTF-8
...
The UTF-8 encoding was assumed in an sdist, but without explicit
specifying, extraction may fail on obscure systems where the default
encoding is not UTF-8.
Co-Authored-By: Chris Hunt <chrahunt@gmail.com>
2021-04-24 13:57:42 +08:00
Tzu-ping Chung
a31f8fd5ed
Add failed test case
2021-04-19 08:31:28 +08:00
Stéphane Bidoul
8fc65ea53f
Merge pull request #9673 from mwchase/url-constraints-final-2
...
Support URL constraints in the new resolver
2021-04-18 12:31:45 +02:00
Max W Chase
4c69ab2a2c
Support URL constraints in the new resolver
...
Fixes #8253
2021-04-17 07:59:57 -04:00
Tzu-ping Chung
c117d440c9
Merge pull request #9729 from uranusjr/collector-refactor
2021-04-15 08:03:43 +08:00
Tzu-ping Chung
d4c32a249c
Merge pull request #9774 from sbidoul/warn-on-pep517-build-global-option
2021-04-15 07:29:44 +08:00
Tzu-ping Chung
a912c5530d
Rewrite collect_links
...
This introduces a collect_sources() method to do the same thing, but
instead of flattening links eagerly, return each repository entry
separately (and return a None for invalid repository options), so
subsequent code can better distinguish which link comes from which
repository.
2021-04-13 03:16:36 +08:00
Tzu-ping Chung
64681084f3
Merge branch 'main' into resolvelib-060
2021-04-12 21:59:10 +08:00
Tzu-ping Chung
d878727772
Don't suggest --user in virtual environment
2021-04-09 14:14:08 +02:00