Tzu-ping Chung
28e5eb99c8
Avoid unnecessary indirection
...
Since there's not equivalent of get_isolated_environment_bin_path for
the distutils backend, the additional declaretion in the sysconfig
backend is unnecessary.
2022-12-28 10:42:04 +08:00
Tzu-ping Chung
77ef9f0bfd
Avoid using built-in names as variable name
2022-12-28 10:41:06 +08:00
Daniele Nicolodi
da478818c1
Fix isolated environment scripts path on Debian
...
The scripts path was looked up passing explicitly the scheme to be
used using "nt" on Windows and "posix_prefix" everywhere else.
However, when the isolated build environment is created, packages are
installed using the default scheme for the platform. On most platforms
this works because normally "nt" and "posix_prefix" are the default
schemes.
However, Debian customizes sysconfig to use a "posix_local" scheme by
default and under this scheme the scripts path does not match the one
of the "posix_prefix" scheme. This results in scripts installed as
part of the build dependencies not to be found during the build, as
reported here https://github.com/mesonbuild/meson-python/issues/109
and here https://bugs.debian.org/1019293 .
The problem can be solved omitting to specify a scheme when looking up
the scripts path. To future proof the path lookup, use the "venv"
scheme if available as done in #11598 . For uniformity use similar
functions as used to lookup the library paths.
2022-12-27 21:04:06 +01:00
Jakub Kuczys
8dbb8b9bbe
Don't check for wheel
when only build-system.requires
is present ( #11674 )
2022-12-27 09:36:28 +00:00
Pradyun Gedam
c4566c6c82
Merge pull request #11667 from edmorley/patch-1
...
Remove duplicate news entry for #11547
2022-12-20 13:29:00 +00:00
Ed Morley
dd70d4a3ac
Remove duplicate news entry for #11547
...
#11547 was backported to pip 22.3.1, so has already been released and already has a news entry:
https://pip.pypa.io/en/latest/news/#v22-3-1
As such, one shouldn't be included for it, for the next pip release:
https://pip.pypa.io/en/latest/news/#not-yet-released-2022-12-19
2022-12-20 12:56:50 +00:00
Stéphane Bidoul
32634e5899
Merge pull request #11639 from doronz88/bugfix/pip_show_location
...
show: show editable location instead if package is editable (#11638 )
2022-12-19 09:27:08 +01:00
doron zarhi
e59ff2fc8c
show: add editable location if package is editable ( #11638 )
2022-12-18 01:33:57 +02:00
Tzu-ping Chung
26d914f12f
Merge pull request #11656 from uranusjr/skip-ssl-errors-on-3.7
...
Close https://github.com/pypa/pip/pull/11643
2022-12-14 10:10:15 +08:00
Tzu-ping Chung
6d1f25b222
Skip tests using custom SSL on 3.7 + Linux
...
This combination does not work well on CI, and since 3.7 support is on
its last days anyway, let's just ignore those tests.
2022-12-13 14:33:56 +08:00
Pradyun Gedam
5f3f592c45
Merge pull request #11620 from sirosen/upadup
2022-11-25 12:20:15 +00:00
Stephen Rosen
3ec4181e5e
Update flake8 additional_dependencies via 'upadup'
2022-11-25 06:10:37 +00:00
Tzu-ping Chung
1ab22ee302
Merge pull request #11590 from uranusjr/pathlib-housekeeping
2022-11-21 09:39:21 +08:00
Paul Moore
d2d1fcfa42
Merge pull request #11612 from DimitriPapadopoulos/codespell
2022-11-20 13:18:43 +00:00
Dimitri Papadopoulos
1273c7a969
Fix typos found by codespell
2022-11-20 13:27:39 +01:00
Pradyun Gedam
17e84a9b9d
Merge pull request #11598 from dnicolodi/homebrew-scheme
...
Fixes https://github.com/pypa/pip/issues/11539
2022-11-18 14:00:10 +00:00
Rishi
ba0e3ac6f4
Update the macos tag in pip download
docs ( #11603 )
2022-11-16 21:55:47 +00:00
Daniele Nicolodi
f8beb61f1c
Rename get_prefixed_libs() to get_isolated_environment_lib_paths()
...
Since this function is only used for creating isolated environments,
rename it to better describe what it does. This avoids needing to
think about why the implementation uses the "venv" paths scheme even
when pip is not running in a virtual environment.
2022-11-16 22:52:29 +01:00
Daniele Nicolodi
19e802250e
Use the "venv" scheme if available to obtain prefixed lib paths
...
get_prefixed_libs() computes the Python path for libraries in a pip
isolation environment. Python 3.11 introduced the "venv" path scheme
to be used in these cases. Use it if available.
This solves a bug on Homebrew's Python 3.10 and later where the
default paths scheme when Python is invoked outside a virtual
environment is "osx_framework_library" and does not relative to the
"{base}" or "{platbase}" variables.
Fixes #11539 .
2022-11-16 22:40:52 +01:00
Pradyun Gedam
45debccbca
Merge pull request #11600 from hroncok/no_two_change_roots
2022-11-16 19:15:40 +00:00
Miro Hrončok
f7589d6ec0
Don't maintain 2 copies of change_root
...
The change_root function was added twice:
In ae324d1703
and in 36a9b36523
2022-11-16 13:28:17 +01:00
Paul Moore
9aa422da16
Merge pull request #11594 from pfmoore/release_docs
...
Update release docs to clarify some points
2022-11-12 14:46:22 +00:00
Pradyun Gedam
c81ab26b08
Merge pull request #11593 from pfmoore/vendoring_test
...
Vendoring updates (except rich)
2022-11-12 13:09:19 +00:00
Paul Moore
31ebba23d7
Update release docs to clarify some points
2022-11-12 11:46:20 +00:00
Paul Moore
bbe83b044a
Upgrade platformdirs to 2.5.3
2022-11-12 11:23:34 +00:00
Paul Moore
6bc9ae84c6
Upgrade distro to 1.8.0
2022-11-12 11:23:34 +00:00
Paul Moore
8cda1c34eb
Upgrade colorama to 0.4.6
2022-11-12 11:23:34 +00:00
Tzu-ping Chung
72a5b084b0
Merge pull request #11560 from froli-code/10265-updated-documentation-install-options
...
Fixes https://github.com/pypa/pip/issues/10265
2022-11-11 15:35:46 +08:00
Oliver Freund
4604106ee9
Merge branch 'main' into 10265-updated-documentation-install-options
2022-11-10 21:07:18 -06:00
Tzu-ping Chung
afb0d13220
Fix docstring to match reality
...
We've moved to pathlib a while ago, the docstring still references
tests.lib.path, which no longer exists.
2022-11-11 07:43:08 +08:00
Tzu-ping Chung
1b9cc0f0b0
Merge pull request #11589 from judahrand/keyring-cli
...
Closes https://github.com/pypa/pip/issues/11588
2022-11-11 06:26:13 +08:00
Judah Rand
623ac5d77d
Do fallback but issue a warning
2022-11-10 21:48:50 +00:00
Judah Rand
14a3d9388e
Don't silently fallback to cli
2022-11-10 21:42:47 +00:00
Judah Rand
e6e42de0e6
Move keyring
import
2022-11-10 21:34:50 +00:00
Judah Rand
c04222fe47
Simplify provider interface
2022-11-10 21:25:26 +00:00
Judah Rand
8d9ea8b62f
Add tests for new code paths
2022-11-10 20:05:07 +00:00
Judah Rand
3a15e01091
Get the tests passing again
2022-11-10 19:15:07 +00:00
Judah Rand
4f8a6137a1
Import keyring
lazily
2022-11-10 10:44:25 +00:00
Judah Rand
996d4fad95
Take copy of os.environ
rather than editing
2022-11-10 10:36:17 +00:00
Judah Rand
888c3b6c54
Abstract provider interface to keyring
2022-11-10 10:34:10 +00:00
Judah Rand
4fc2008d04
Prevent keyring
from ever reading from stdin
...
It shouldn't need to ever so no reason to allow it and have
to jiggle around the `--no-input` option in `pip`.
2022-11-09 23:32:38 +00:00
Judah Rand
5137ce26b6
Use full keyring
path
2022-11-09 23:13:21 +00:00
Judah Rand
43abcf01b1
Set keyring
correctly
2022-11-09 22:54:06 +00:00
Judah Rand
f5c96b14a0
Switch to defining get_password
2022-11-09 22:53:54 +00:00
Judah Rand
6ec0af5258
Handle IO encoding
2022-11-09 22:31:37 +00:00
Judah Rand
7e9310245d
Don't capture output
2022-11-09 20:39:06 +00:00
Judah Rand
efa7f2bf7d
Raise better exception
2022-11-09 20:38:10 +00:00
Judah Rand
4cbae5b1a0
Improve cli interface
2022-11-09 20:28:59 +00:00
Judah Rand
edc588c48f
Add news
2022-11-09 19:40:59 +00:00
Judah Rand
b87ddb95e8
Add an interface to allow calling system keyring
2022-11-09 19:34:48 +00:00