William Woodruff
3c337a98cc
models/link: make egg fragment evaluation eager
...
This should prevent us from accepting malformed egg fragments
that are shadowed by other parts of the requirement specifier.
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-11-22 17:26:40 -05:00
William Woodruff
e26712616e
topics/vcs-support: clarify the egg fragment's syntax
...
This doesn't actually address the semantics of extras in the
egg fragment.
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-11-22 17:04:23 -05:00
William Woodruff
4af0984cc3
models/link: reuse pyparsing + requirements combinators for egg fragment
...
This should now be consistent with existing tests (without establishing
that those tests are actually well-specified).
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-11-22 15:50:45 -05:00
William Woodruff
98aa8b5298
Restrict #egg=
fragments to valid PEP 508 names
...
This should help reduce user confusion about what can go in a URI's
egg fragment.
Fixes #11567 .
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-11-22 15:04:01 -05: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
Paul Moore
90f51db1a3
Merge pull request #11576 from pfmoore/release/22.3.1
...
Release 22.3.1
2022-11-05 15:53:56 +00:00
Paul Moore
ce3fef7d98
Delete news fragments from release 22.3.1
2022-11-05 15:41:33 +00:00
Paul Moore
563115083c
Merge branch 'main' into release/22.3.1
2022-11-05 15:39:14 +00:00
Paul Moore
9aabb33b04
Bump for development
2022-11-05 15:25:43 +00:00
Paul Moore
1463081f10
Bump for release
2022-11-05 15:25:43 +00:00
Paul Moore
22fd64ac0b
Merge pull request #11547 from uranusjr/entry-point-python-version-replacement-multi-digit
...
Fix multi-digit version in entry point replacement
2022-11-05 15:24:20 +00:00
Paul Moore
6d131137cf
Merge pull request #11547 from uranusjr/entry-point-python-version-replacement-multi-digit
...
Fix multi-digit version in entry point replacement
2022-11-03 11:50:58 +00:00
Tzu-ping Chung
30b4cff198
Fix typos
...
Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2022-11-03 15:20:47 +08:00