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
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
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
Taneli Hukkinen
af79d0d393
Replace use of vendored toml
in tests with PyPI toml
2021-07-02 00:21:00 +03: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
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
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
Tzu-ping Chung
8360cab1ba
Test case for backtracking an installed candidate
2021-05-22 05:36:01 +08: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
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
d4c32a249c
Merge pull request #9774 from sbidoul/warn-on-pep517-build-global-option
2021-04-15 07:29:44 +08:00
Paul Moore
ef35e73a71
Make pip work with warnings converted to errors
2021-04-05 15:31:08 +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
Stéphane Bidoul
ecdcfeb8d6
Remove now unused VCS export code
2021-04-03 15:44:00 +02:00
Andrey Bienkowski
622f104694
Use f-strings for formatting
...
suggested by pyupgrade --py36-plus
2021-03-30 15:48:27 +03:00
Pradyun Gedam
6ff1f7da2f
Merge pull request #9739 from pradyunsg/tests/drop-YAML-based-resolver-tests
...
Drop YAML tests for the resolver
2021-03-28 07:56:09 +01:00
Pradyun Gedam
724bf3df0c
Drop pytest-timeout
...
It is incompatible with pytest-xdist and causes crashes when used with
it. Also removes the marker from the only test that uses it.
2021-03-26 08:03:04 +00:00
Pradyun Gedam
ad63666749
Drop YAML tests for the resolver
...
We've created a fairly capable setup with the new resolver tests,
which has now rendered this logic redundant and generally unnecessary.
2021-03-21 11:55:07 +00:00
Min RK
9b3e78474a
-v shows subprocess output
...
adds VERBOSE custom log level between DEBUG and INFO
used when `-v` is given. Now require -vv to enable full debug output.
Messages can be logged with VERBOSE level to promote them to `-v` output instead of `-vv`
2021-03-12 13:12:09 +01:00
Tzu-ping Chung
80e0163e03
Merge pull request #9552
...
From uranusjr/new-resolver-requires-python-error
2021-03-08 02:26:20 +08:00
KOLANICH
7a95720e79
Fixed --editable install for setuptools projects without setup.py.
...
Co-Authored-By: Tzu-ping Chung <uranusjr@gmail.com>
Co-Authored-By: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2021-03-03 21:24:29 +03:00
Tzu-ping Chung
e7d6e54dff
Merge pull request #9669 from uranusjr/ignore-invalid-name-dist-info
...
Ignore dist-info directories with invalid name
2021-02-28 23:27:06 +08:00
Tzu-ping Chung
550270c7ff
Merge pull request #9636 from dwt/master
2021-02-28 22:16:28 +08:00
Tzu-ping Chung
e4349aec70
Ignore dist-info directories with invalid name
2021-02-28 22:13:36 +08:00
Pradyun Gedam
2940eaf53d
Merge pull request #9583 from hexagonrecursion/set-literal
...
Use the set literal syntax
2021-02-28 07:36:43 +00:00
Tzu-ping Chung
2a5e84e1c4
Add failing test
2021-02-28 07:31:37 +08:00
Tzu-ping Chung
43b7f3ff95
Merge pull request #9300
2021-02-25 14:49:18 +08:00
Tzu-ping Chung
32376bf577
Test for constraint in message
2021-02-25 13:56:55 +08:00
Pradyun Gedam
baaf66f70d
Merge pull request #9591 from hexagonrecursion/open
...
Replace `open(file, 'r')` with `open(file)`
2021-02-23 13:37:25 +00:00
Andrey Bienkowski
e4e9af1d27
Drop python2 related stuff in tests
2021-02-23 13:49:59 +03:00
David Hewitt
838988cb44
Build local directories in-place with feature flag
2021-02-22 23:31:47 +00:00
Tzu-ping Chung
917ecadd77
Show constraint in error message
2021-02-23 02:08:19 +08:00
Pradyun Gedam
c2ba7c043b
Merge pull request #9606 from hexagonrecursion/fstr
2021-02-21 08:30:00 +00:00
Martin Häcker
9485c4e6a0
Fix --target not working with --editable as setup.py develop does not understand --home but instead requires the --install-dir option.
...
Parially fixes #4390
2021-02-20 16:10:21 +01:00
Tzu-ping Chung
62af9563ca
Merge pull request #8687 from hroncok/keyring_madness
2021-02-19 00:59:50 +08:00