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
Paul Moore
88464bec96
Merge pull request #9780 from pfmoore/test_fixes
...
Fix some tests that are checking logs incorrectly
2021-04-07 14:52:25 +01:00
Paul Moore
55d2d0dcf7
Fix some tests that are checking logs incorrectly
2021-04-05 15:39:01 +01:00
Paul Moore
ef35e73a71
Make pip work with warnings converted to errors
2021-04-05 15:31:08 +01:00
Paul Moore
cc3adad1b2
Don't use virtualenv internals in tests
2021-04-05 13:16:26 +01:00
Stéphane Bidoul
7c6ee48b04
PEP 517 build in presence of --global-option emits a warning
...
So these are not ignored silently.
2021-04-04 16:08:49 +02:00
Stéphane Bidoul
69dee6286d
PEP 517 + --build-option is now a warning
...
We warn instead of erroring out when --build-option is present
when doing a PEP 517 build. There is no strong reason to error
out, and this will avoid backward compatibility issues when we
support build options in requirement files and installation.
2021-04-04 16:08:49 +02:00
Tzu-ping Chung
4e56f1c52d
Take responsibility to remove incompatibilities
2021-04-04 20:39:28 +08:00
Stéphane Bidoul
ecdcfeb8d6
Remove now unused VCS export code
2021-04-03 15:44:00 +02:00
Tzu-ping Chung
2aac9f233e
Merge branch 'main' into fix/8418-permission-denied-hg
2021-04-03 16:17:44 +08:00
Andrey Bienkowski
e96791f106
Lint
2021-04-02 15:17:59 +03:00
Andrey Bienkowski
6db6964a98
Rewrite the assertions to be less confusing
2021-04-02 15:01:04 +03:00
Andrey Bienkowski
5297d6927f
Add one more test
2021-04-02 15:01:04 +03:00
Andrey Bienkowski
015b2c19da
Add test: build tag is less important than other tags
2021-04-02 15:01:04 +03:00
Pradyun Gedam
37ad296684
Tweak textwrap.dedent strings
2021-04-02 12:00:01 +01:00