William Woodruff
63097482bb
news: add entry
...
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:41:12 -08:00
William Woodruff
d9502ff501
tests: fix comment
...
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:38:51 -08:00
William Woodruff
464d16618e
src, tests: use deprecation instead of hard error for egg fragments
...
This turns invalid egg fragments into a soft error, with a scheduled
deprecation period of two releases.
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:33:22 -08:00
William Woodruff
3b9abbc987
topics/vcs-support: re-qualify egg fragment behavior
...
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:12:47 -08:00
William Woodruff
61205c1fe3
Merge branch 'main' into ww/restrict-egg-fragement
2022-12-02 21:09:29 -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
8d34a1111d
Merge branch 'main' into feature/base-prefix-config
2022-11-25 09:38:56 +08:00
William Woodruff
227fbee124
tests: add more Link tests
...
This exercises our expectation that egg fragments don't include version
specifiers and are evaluated eagerly.
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-11-22 17:40:55 -05:00
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
Phil Elson
81d6053ee3
Use the VIRTUAL_ENV environment variable in the configuration documentation
...
This follows the discussion in https://github.com/pypa/pip/pull/11487/files#r988625394 ,
that despite the VIRTUAL_ENV environment variable not being the technically correct
value, it is more readily understood by readers than ``sys.prefix``.
2022-11-17 17:31:26 +01: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
Phil Elson
93ade8586e
Update docs/html/topics/configuration.md
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2022-11-16 21:17:33 +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
Tzu-ping Chung
4a87ab04c8
Merge branch 'main' into feature/base-prefix-config
2022-11-16 12:50:52 +08: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
Judah Rand
89a4a35a33
Add documentation on functionality in #11589
2022-11-11 21:44:35 +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
Tzu-ping Chung
3a1b9da2c9
Merge branch 'main' into main
2022-11-10 17:48:48 +08: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