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

2293 commits

Author SHA1 Message Date
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
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
Oliver Freund 4604106ee9
Merge branch 'main' into 10265-updated-documentation-install-options 2022-11-10 21:07:18 -06:00
Tzu-ping Chung 3a1b9da2c9
Merge branch 'main' into main 2022-11-10 17:48:48 +08:00
Judah Rand edc588c48f
Add news 2022-11-09 19:40:59 +00:00
Paul Moore ce3fef7d98 Delete news fragments from release 22.3.1 2022-11-05 15:41:33 +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
Oliver Freund bfaebd96b9 changed the description of --install_options, since the option is now deprecated 2022-10-28 23:37:56 -05:00
Tzu-ping Chung 2c195f9c2c Fix multi-digit version in entry point replacement
Previously, the special case to generate 'pip' and 'easy_install' entry
points with the correct Python version (e.g. 'pip3.9' on Python 3.9)
only accounted for single-digit version segments, and did not work
correctly on Python 3.10 and up. This was missed when Python 3.10 was
released because we (accidentally) generated wheels that did not need
any such replacements, but was exposed in CPython 3.11.0 since it
bundled pip 22.3 generated against Python 3.10.
2022-10-28 01:51:36 +08:00
Tzu-ping Chung 1e236f4c84 Ignore failing git submodule test for now
Git 2.38.1 patched CVE-2022-39253 by disaling automated fetch against a
file: repository. This breaks git submodule, which is used by a pip
test. Information on how projects relying on automated fetch should
configure git correctly after this change is lacking, so the test is
disabled for now until someone can come up with a better solution.
2022-10-28 00:16:33 +08:00
Michael Mintz 22d401bfb7 Update the news fragment for the grammar fix 2022-10-19 00:07:31 -04:00
Michael Mintz 0e48cae74e
Add a news fragment for the grammar fix 2022-10-19 00:02:05 -04:00
Miro Hrončok fe7948a4a2 Avoid distutils imports in tests
The tests still don't run without distutils
because they require virtualenv < 20 (and virtualenv 16 uses distutils),
but at least they don't import distutils directly now.

Fixes https://github.com/pypa/pip/issues/11521
2022-10-17 19:33:03 +02:00
Paul Moore 0a76da3a94 Bump for release 2022-10-15 11:59:14 +01:00
Pradyun Gedam e86f27fe4e
Merge pull request #11493 from pradyunsg/remove-2020-resolver-opt-in 2022-10-15 11:52:39 +01:00
Paul Moore 1fcc3ce4b5
Merge pull request #11514 from pradyunsg/certifi-update
Update certifi and replace complex certifi patch with a more targetted requests patch
2022-10-15 11:17:53 +01:00
Pradyun Gedam 1b7e5ef34f
Upgrade certifi to 2022.9.24 2022-10-14 11:01:21 +01:00
Pradyun Gedam 4ab07c7e19
Upgrade typing_extensions to 4.4.0 2022-10-11 00:13:45 +01:00
Pradyun Gedam 99eab68bf9
Upgrade pygments to 2.13.0 2022-10-11 00:13:43 +01:00
Pradyun Gedam 2e7f88e71d
Upgrade urllib3 to 1.26.12 2022-10-11 00:13:17 +01:00
Paul Moore 07c86c7947 Upgrade tenacity to 8.1.0 2022-10-10 13:47:44 +01:00
Paul Moore b922e0f660 Upgrade idna to 3.4 2022-10-10 12:22:56 +01:00
Paul Moore 77a0a61722 Upgrade pep517 to 0.13.0 2022-10-10 12:22:56 +01:00
Paul Moore c423e42909 Upgrade distlib to 0.3.6 2022-10-10 12:22:56 +01:00
Jelmer Vernooij d37034ccf4
bazaar: Use lightweight checkouts rather than a full branch clone (#11264) 2022-10-07 19:16:33 +01:00
Pradyun Gedam 7662593941
📰 2022-10-07 11:59:08 +01:00
Paul Moore fe78726b36
Merge pull request #11492 from ret2libc/raise-file-parse-error-no-valueerr
Raise RequirementsFileParseError when missing closing quotation
2022-10-06 14:31:16 +01:00
Riccardo Schirone 3ca52dc55c Raise RequirementsFileParseError when missing closing quotation
shlex.split, used to split options in requirements.txt files, might
raise a ValueError when the input string is not well formed. Catch the
ValueError and re-raise it as a RequirementsFileParseError instead.
2022-10-06 14:36:46 +02:00
Pradyun Gedam 7311c82476
Merge pull request #11359 from sbidoul/deprecate-install-options
Deprecate --install-options
2022-10-06 10:06:48 +01:00
Phil Elson b777bcda81 Add the "base" config level concept, to allow configuration of all virtual environments sharing the same base.
The new functionality serves a use case which was not previously possible with pip configuration files, namely the situation where you have a base Python installation and want to influence the pip configuration for all derivative virtual environments *without* changing the config for all other environments on a machine (global), or for all other environment run by the same user (user). Concretely, this could be used for a centrally managed network mounted filesystem based Python installation, from which multiple users can build virtual environments and inside which a specific pip configuration is needed (e.g. an index URL).
2022-10-06 09:33:38 +02:00
Felipe Peter e6e7c12b6d
Disallow freeze format with pip list --outdated (#11482)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2022-10-04 10:11:46 +01:00
Tzu-ping Chung 2c89928bfc
Merge pull request #11422 from SCH227/patch-1 2022-10-04 15:18:43 +08:00
Claudio Jolowicz 74dfed55c4
Mark as trivial 2022-10-03 12:00:14 +02:00
Pradyun Gedam a5f4a9f898
Rename 11418.bugfix.rst to 11418.trivial.rst 2022-09-30 15:43:20 +01:00
Sviatoslav Sydorenko a0fac9829c
Introduce a check CI job for branch protection (#11434)
This patch adds a special check-job that produces a clear failure or
success status based on how the dependent jobs are doing. It is
possible to use it in GitHub's branch protection instead of having to
manually add and remove individual job names via the repo settings.

https://github.com/marketplace/actions/alls-green#why
2022-09-29 00:44:25 +01:00
Tzu-ping Chung 0a21080411
Merge pull request #11466 from minrk/build_env_isolation 2022-09-26 11:00:21 +08:00
Stéphane Bidoul a5621a8a81
Deprecate --install-option 2022-09-25 11:21:35 +02:00
Stéphane Bidoul b44a454535
Merge pull request #11452 from sbidoul/deprecate-no-binary-imply-pip-install
Deprecate --no-binary implying setup.py install
2022-09-25 11:06:25 +02:00
Stéphane Bidoul fc355d95be
Merge pull request #11454 from sbidoul/deprecate-no-binary-disable-wheel-cache
Deprecate --no-binary disabling the wheel cache
2022-09-25 11:05:42 +02:00
Min RK 24773bc4f5
Fix build isolation on system Pythons
use site.getsitepackages() where available
instead of just purelib/platlib,
which is often insufficient on e.g. System Pythons for Debian/macOS

handle virtualenv < 20 overwriting site.py without getsitepackages() by preserving current behavior.
2022-09-23 14:47:41 +02:00
Jaime Sanz 7979dc0029
Fix typo in dependency-resolution.md (#11465)
Removes a duplicated word.
2022-09-23 01:07:42 +01:00
Paul Moore 860f9bf57c Add a news file 2022-09-18 11:17:32 +01:00
Stéphane Bidoul f39d38668a
Deprecate --no-binary implying setup.py install 2022-09-17 15:37:04 +02:00
Stéphane Bidoul 08eb492641
Deprecate --no-binary disabling the wheel cache 2022-09-17 15:32:46 +02:00
Danny McClanahan bad03ef931
Use data-dist-info-metadata (PEP 658) to decouple resolution from downloading (#11111)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2022-09-10 11:28:57 +01:00
Tzu-ping Chung 0930237775
Merge pull request #11318 from q0w/check-binary-exe 2022-08-31 18:25:46 +08:00
Tzu-ping Chung bfbe919fd2
Merge pull request #11277 from vanschelven/respect-no-index-from-requirements-file 2022-08-30 15:47:51 +08:00
M00nL1ght 321018fb93
Create 11418.bugfix.rst 2022-08-30 06:04:32 +03:00
Tzu-ping Chung bd5416151d
Merge pull request #11254 from kasium/issue-11235 2022-08-15 17:05:45 +08:00
Kai Mueller 1413fae8eb Add news 2022-08-14 19:26:08 +00:00
hauntsaninja c0b86d338a no news today 2022-08-12 18:51:47 -07:00
Stéphane Bidoul 7aa49dda69
Merge pull request #11357 from sbidoul/mention-quiet-in-report-option-help
Mention --quiet in --report option help
2022-08-10 18:44:25 +02:00
Stéphane Bidoul ee7bcae0d9
Merge pull request #11331 from sbidoul/8559-take-2-sbi
Deprecate setup.py install fallback when wheel package is absent
2022-08-10 18:43:25 +02:00
Tzu-ping Chung dc8f3a8b7f
Merge pull request #11353 from uranusjr/importlib-metadata-ignore-bad-name 2022-08-10 16:43:29 +08:00
Stéphane Bidoul 77da6ae52c
Mention --quiet in --report option help 2022-08-07 11:47:22 +02:00
Stéphane Bidoul ae802e3e66
Deprecate setup.py install fallback when wheel package is absent 2022-08-06 19:33:30 +02:00
Paul Moore 9473e83aa6
Merge pull request #11320 from pfmoore/python_option
Add a --python option
2022-08-06 15:24:23 +01:00
Tzu-ping Chung 6817fbfb1f Skip dist if metadata does not have a valid name 2022-08-06 06:18:59 +08:00
Stéphane Bidoul 2009007caf
Remove 22.2.2 news files 2022-08-03 20:44:11 +02:00
Stéphane Bidoul 82c23d9198
Merge pull request #11333 from sbidoul/revert-11229-sbi
Revert "PipDeprecationWarning subclass DeprecationWarning"
2022-08-01 16:20:16 +02:00
q0w 6354192e2e Fix news 2022-08-01 14:28:59 +03:00
Paul Moore 0d6fadac6c Merge branch 'main' into python_option 2022-08-01 09:43:55 +01:00
Paul Moore f47a2048ff
Merge pull request #11250 from pfmoore/test_zipapp
Add a --use-zipapp option to the test suite
2022-08-01 09:14:00 +01:00
Stéphane Bidoul d5317f2778
Revert "PipDeprecationWarning subclass DeprecationWarning"
This reverts commit f1bc96a4a3.
2022-07-31 17:34:39 +02:00
Paul Moore b1eb91204e Added documentation 2022-07-30 16:12:42 +01:00
Stéphane Bidoul 56dcb7f3af
Merge pull request #11324 from sbidoul/better-11103
Import distutils only if needed, but sooner
2022-07-30 11:02:30 +02:00
Stéphane Bidoul db47515958
Import distutils only if needed, but sooner 2022-07-30 10:28:09 +02:00
Tzu-ping Chung 74f850db94
Merge pull request #11315 from bdrosen96/brett/fix_pip_attribute 2022-07-30 09:52:30 +08:00
Brett Rosen 50eb337a0f Ensure that removing shim in older setuptools does not error 2022-07-29 16:53:32 -04:00
Pradyun Gedam 89983e9ad9 Use shell=True for opening the editor with pip config edit
This makes the behavior compatible with git and other tools that invoke
the editor in this manner.
2022-07-29 14:53:23 +01:00
Paul Moore 95cf55bf18 Add a news file 2022-07-28 14:35:27 +01:00