1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

12165 commits

Author SHA1 Message Date
Tzu-ping Chung a00a04475d Normalize sys.prefix for old virtualenv
virtualenv<14 does not normalize sys.prefix correctly, so we need to do
it on our own.
2021-08-06 18:25:12 +08:00
Tzu-ping Chung 00656aae14 Prevent returning relative paths for a location
Our own override for the distutils implementation has a bug :)
2021-08-06 18:25:12 +08:00
Tzu-ping Chung 41a844263c Use posix_prefix for Apple's system Python 2021-08-06 18:25:12 +08:00
Tzu-ping Chung 3ecc39128a More workaround for Debian's faulty sysconfig 2021-08-06 18:25:12 +08:00
Tzu-ping Chung d8c5b7d890 Detect "the other" Red Hat patch for Cygwin 2021-08-06 18:14:07 +08:00
Alex Hedges c5332d5ac9 Remove extra period in deprecation message 2021-08-06 18:13:05 +08:00
Sylvain 1ac90bbda7 Fix get_preferred_scheme detection for CPython 3.10 alpha
Co-authored-by: Sylvain Desodt <sylvain.desodt@faurecia.com>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-08-06 18:11:23 +08:00
Harutaka Kawamura 75981eccd2
Merge branch 'main' into type-annotations-internal 2021-08-06 18:59:56 +09:00
Tzu-ping Chung 0b9537822f
Merge pull request #10257 from uranusjr/locations-relative-prefix 2021-08-06 17:56:15 +08:00
Tzu-ping Chung 8ed2178380
Merge pull request #10256 from osx-framework-not-default-prefix
Use posix_prefix for Apple's system Python
2021-08-06 17:56:04 +08:00
Tzu-ping Chung 07c56200ad
Merge pull request #10255 from uranusjr/locations-deb-system-prefix
Work around Debian bug in get_python_lib()
2021-08-06 17:55:28 +08:00
Tzu-ping Chung a31c30f777
Merge pull request #10250 from uranusjr/locations-red-hat-prefix
Detect "the other" Red Hat patch for Cygwin
2021-08-06 17:55:18 +08:00
Pradyun Gedam 69fcae5644
Merge pull request #10264 from aphedges/remove-extra-period
Remove extra period in deprecation message
2021-08-06 10:22:44 +01:00
Pradyun Gedam b8ea3a4460
Merge pull request #10273 from uranusjr/fix-black-error
Black is so inconsistent
2021-08-06 10:21:30 +01:00
Tzu-ping Chung fd443b5616 Black is so inconsistent 2021-08-06 17:17:35 +08:00
Pradyun Gedam 5ab7c124db
Merge pull request #10192 from pradyunsg/blacken/commands
Blacken src/pip/_internal/commands/
2021-08-06 10:09:34 +01:00
Tzu-ping Chung a3b186acf8 Normalize sys.prefix for old virtualenv
virtualenv<14 does not normalize sys.prefix correctly, so we need to do
it on our own.
2021-08-06 16:20:59 +08:00
Tzu-ping Chung fcadb92b9e Prevent returning relative paths for a location
Our own override for the distutils implementation has a bug :)
2021-08-06 16:10:54 +08:00
Jon Dufresne a3628b70de Remove six import in resolution/resolvelib/found_candidates.py 2021-08-04 17:25:41 -07:00
Pradyun Gedam 0b6316cd78
Merge pull request #10267 from hugovk/update-doc-links
Docs: Link directly to the new Configuration location
2021-08-04 23:31:11 +01:00
Tzu-ping Chung e9cf21c6f7
Merge pull request #10262 from jdufresne/nonzero
Remove Python 2 __nonzero__ method definitions
2021-08-05 01:30:37 +08:00
Tzu-ping Chung 657ed2aa33
Merge pull request #10266 from gesslerpd/fix/config-docs 2021-08-04 17:54:01 +08:00
Hugo van Kemenade 8e473886d6 Link directly to the new location to avoid an extra click and load 2021-08-04 12:16:03 +03:00
Peter Gessler 9bd6eedfc7
Update configuration.py 2021-08-03 20:01:07 -05:00
Alex Hedges 88703bbcee Remove extra period in deprecation message 2021-08-02 23:58:53 -04:00
Jon Dufresne 21fd93df0e Remove Python 2 __nonzero__ method definitions 2021-08-02 09:36:50 -07:00
harupy 860ba7677d revert black changes 2021-08-02 19:36:58 +09:00
harupy 7f0fdaf4b3 Type-annotate prepend_root 2021-08-02 15:29:28 +09:00
harupy 5db63be6f6 Resolve conflicts 2021-08-02 15:28:55 +09:00
Tzu-ping Chung 051de2ff68 Use posix_prefix for Apple's system Python 2021-08-02 03:14:10 +08:00
Tzu-ping Chung 0d5798210c More workaround for Debian's faulty sysconfig 2021-08-02 02:50:26 +08:00
Sylvain 87aee20df2
Fix get_preferred_scheme detection for CPython 3.10 alpha
Co-authored-by: Sylvain Desodt <sylvain.desodt@faurecia.com>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-08-01 17:33:29 +08:00
Tzu-ping Chung dcff9d927d Detect "the other" Red Hat patch for Cygwin 2021-07-31 23:37:52 +08:00
Tzu-ping Chung 6468908e94
Merge pull request #10242 from uranusjr/release/21.2.2 2021-07-31 15:54:12 +08:00
Tzu-ping Chung 45e49ebc16 Merge branch 'main' into release/21.2.2 2021-07-31 15:23:18 +08:00
Tzu-ping Chung c4af3fdac0 Bump for development 2021-07-31 15:23:01 +08:00
Tzu-ping Chung f7d912a219 Bump for release 2021-07-31 15:23:00 +08:00
Tzu-ping Chung c7f3f19768 Update AUTHORS.txt 2021-07-31 15:22:59 +08:00
Tzu-ping Chung 08eee0b1c0 Correctly normalize relative paths for 'pip show' 2021-07-31 15:15:13 +08:00
Tzu-ping Chung aaba4997e4 Post a deprecation warning for distutils configs
Since we can't do anything about them in the transition (CPython is
dropping support for those entirely), there's nothing we can do but to
tell users to not use them.

This also accounts for Homebrew and Linuxbrew for now. Hopefully they
will come up with better solutions that don't trigger the location
mismatch warning.
2021-07-31 15:15:06 +08:00
Tzu-ping Chung a2cbacfe1c Respect the base's constraint for extra-ed package 2021-07-31 15:12:25 +08:00
Tzu-ping Chung 3d7b9c5034 Correctly ignore osx_framework_user mismatches
The expected 'headers' path is generally:

* distutils (old): $PREFIX/include/python3.8/$PROJECT
* sysconfig (new): $PREFIX/include/$PROJECT

So we should check whether the old value's parent is a pythonX.Y, and
the new value's parent matches the old's second-level parent.
2021-07-31 15:12:25 +08:00
Tzu-ping Chung 5fc6d16050 Suppress location warning on abiflag differences 2021-07-31 15:12:25 +08:00
Tzu-ping Chung cc5563e251 Kill location warning on Deb and RH system Python 2021-07-31 15:12:25 +08:00
Dominic Davis-Foster ec41e0ca0c Patch tenacity to quote typing.NoReturn 2021-07-31 15:12:25 +08:00
meowmeowcat 8a38cc6155 Fix broken link in README.rst 2021-07-31 15:12:25 +08:00
Dominic Davis-Foster ac74d6314c Ensure newline after literal block in NEWS.rst 2021-07-31 15:09:28 +08:00
Tzu-ping Chung 6a228068fb
Correctly normalize relative paths for 'pip show' 2021-07-31 14:55:43 +08:00
Pradyun Gedam e1a3855791
Merge pull request #10224 from pradyunsg/upgrade-sphinx
Bump up to Sphinx 4
2021-07-30 18:31:07 +01:00
Tzu-ping Chung 6da081915b
Merge pull request #10129 from maresb/patch-1 2021-07-30 23:39:19 +08:00