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

2265 commits

Author SHA1 Message Date
Stéphane Bidoul 852deddb9c
Merge pull request #11775 from pelson/doc/prefix-warning
Document the limitations of the pip install --prefix argument
2023-02-11 15:14:30 +01:00
Tzu-ping Chung e399d7d4ed
Doc formatting 2023-02-09 20:21:11 +08:00
Phil Elson f12a2ef2a2 Include a news item for the documentation change 2023-02-09 13:17:07 +01:00
Pradyun Gedam 8dbc2db274
Upgrade resolvelib to 0.9.0 2023-02-06 17:45:51 +00:00
Daniele Nicolodi 7ff4da6e8f
Reconcile computation of isolated build environment paths (#11740)
Use the same code to determine isolated environment paths at
dependency install time and at environment setup time. We do not care
about the exact paths but the paths needs to be consistent at package
installation time and environment setup.

This should fix issues observed on platforms that customize the
installation schemes, such as Debian and Homebrew, where dependency
installation and isolated build environment setup resolved to
different paths.
2023-02-06 11:27:44 +00:00
Stefano Rivera 9abb3c899a
Implement --break-system-packages for EXTERNALLY-MANAGED installations (#11780)
The PEP 668 expects an override mechanism to ease the transition.
This provides an override.

---------

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2023-02-06 07:06:59 +00:00
Oliver Mannion 62fb64ac96
Ignore PIP_REQUIRE_VIRTUALENV for pip index (#11671)
Ignore PIP_REQUIRE_VIRTUALENV in `pip index`
2023-02-06 07:05:31 +00:00
Stéphane Bidoul e5c88951a0 Do not crash in presence of misformatted hash field in `direct_url.json`. 2023-02-05 00:13:32 +01:00
Frost Ming 706456c5cf
add news 2023-02-03 09:39:21 +08:00
Tzu-ping Chung 56e5fa3c0f
Merge pull request #11487 from pelson/feature/base-prefix-config 2023-02-01 01:40:09 +08:00
Pradyun Gedam 2c09e9c760
Merge pull request #11529 from mdmintz/main
Fix grammar of the notice that indicates a new release is available
2023-01-31 01:05:53 +00:00
Pradyun Gedam 368c7b4c55
Bump for release 2023-01-30 15:13:08 +00:00
Pradyun Gedam 60ce5c0943
Fix the kind of news fragment 2023-01-30 15:12:52 +00:00
Pradyun Gedam 60a4598440
Merge pull request #11758 from pradyunsg/vendoring-update 2023-01-29 01:36:04 +00:00
Pradyun Gedam 17b73457a1
Upgrade urllib3 to 1.26.14 2023-01-28 22:11:31 +00:00
Pradyun Gedam be20a75c10
Upgrade chardet to 5.1.0 2023-01-28 22:11:31 +00:00
Pradyun Gedam 1c110bede6
Upgrade certifi to 2022.12.7 2023-01-28 22:11:31 +00:00
Pradyun Gedam fb17ee1e91
Upgrade requests to 2.28.2 2023-01-28 22:11:31 +00:00
Pradyun Gedam 85e128b2d9
Upgrade platformdirs to 2.6.2 2023-01-28 22:11:28 +00:00
Pradyun Gedam b5be1da918
Merge pull request #11757 from sbidoul/inspect-and-install-reports-stable-sbi
Declare inspect and install reports formats to be stable
2023-01-28 20:36:28 +00:00
Pradyun Gedam e32ec0a8c3
Merge pull request #11679 from sbidoul/direct_url-hashes-sbi
Allow multiple hashes in direct_url.json
2023-01-28 20:36:01 +00:00
Stéphane Bidoul 46ec9368fb Add news 2023-01-28 14:15:04 +01:00
Stéphane Bidoul 38681f3d66 Allow multiple hashes in direct_url.json
This influences the recorded direct_url.json metadata,
and therefore the pip inspect output,
as well as the pip install --report format.
2023-01-28 13:25:38 +01:00
Роман Донченко 44c1ccaf40 Replace deprecated setup/teardown usage
As explained in
<https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose>,
`setup`/`teardown` are a part of nose compatibility, which is deprecated.
You're supposed to use `setup_method` and `teardown_method` instead.
2023-01-27 22:00:50 +03:00
Tzu-ping Chung 95a58e7ba5
Merge pull request #11663 from uranusjr/pep-668 2023-01-18 11:50:26 +08:00
Daniil Konovalenko 5540331160 add a news entry 2023-01-14 12:27:51 +01:00
Tzu-ping Chung 5eda50d237 Test and news for wheel cache restoration
The fix merged in 3b60e36289 also fixed
the wheel cache; this cherry-picks the test and news from the other pull
request to validate and document the fact.
2023-01-09 10:13:19 +08:00
Tzu-ping Chung a057c9bc99
Merge pull request #11623 from dnicolodi/debian-scheme 2023-01-04 15:22:16 +08:00
Tzu-ping Chung 69cb3f8617 Check EXTERNALLY-MANAGED in install and uninstall
This implements the PEP 668 logic to 'pip install' and 'pip uninstall'.
Are there any other commands that may need it?

This implementation disables the check is any of --prefix, --home, or
--target is provided, since those can indicate the command does not
actually install into the environment. Note that it is still possible
the command is still modifying the environment, but we don't have a
way to stop the user *that* determined to break the environment anyway
(they can always just use those flags in a virtual environment).

Also not sure how best this can be tested.
2023-01-03 07:57:21 +08:00
Pradyun Gedam 90db7b641d
Merge pull request #11654 from pradyunsg/replace-pep517-with-pyproject-hooks 2022-12-30 02:47:41 +00:00
Stéphane Bidoul 668ea3f6f3 Clarify the role of the egg URL fragment 2022-12-28 23:24:53 +01:00
Pradyun Gedam b224c38732
Merge pull request #11675 from sbidoul/fix-vcs-support-docs 2022-12-28 20:14:42 +00:00
Pradyun Gedam fa4b2efbab
Replace pep517 with pyproject_hooks
The `pep517` package has been superseded by a new package.
2022-12-28 20:13:57 +00:00
William Woodruff 64fe2235d8
Merge branch 'main' into ww/restrict-egg-fragement 2022-12-28 10:44:23 -05:00
Pradyun Gedam cecd346697
Merge pull request #11672 from pradyunsg/update-rich
Update `rich` to 12.6.0
2022-12-28 13:47:23 +00:00
Stéphane Bidoul e22003e0e1 Update VCS support documentation
Now that PEP 610 (direct_url.json) is implemented, an editable install
is not required anymore for pip freeze to work correctly.
2022-12-28 12:19:21 +01: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 b7ad4ee389
Update rich to 12.6.0 2022-12-26 14:59:18 +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
doron zarhi e59ff2fc8c show: add editable location if package is editable (#11638) 2022-12-18 01:33:57 +02: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
William Woodruff 76cff14723
news: recategorize entry
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-03 11:28:11 -08:00
William Woodruff 63097482bb
news: add entry
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:41:12 -08:00
Tzu-ping Chung 8d34a1111d
Merge branch 'main' into feature/base-prefix-config 2022-11-25 09:38:56 +08: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 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
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