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

13333 commits

Author SHA1 Message Date
Pradyun Gedam b728bdad2a
Remove the setuptools-provided distutils hack, if using distutils
This ensures that pip's imported copy of distutils comes from the
standard library, if/when the hack needs to be used.
2022-07-26 19:39:41 +01:00
Tzu-ping Chung 0231a1d9b6
Merge pull request #11303 from vanschelven/clarify-pip-cache-output 2022-07-26 15:01:52 +08:00
Klaas van Schelven 80c3b9615f Textual: "locally built" rather than "built"
As per @sbidoul's remark
2022-07-26 08:16:49 +02:00
Klaas van Schelven d57c5dd1ee Fixed the tests 2022-07-25 15:11:54 +02:00
Klaas van Schelven f2c49cdbad Add news article 2022-07-25 14:47:10 +02:00
Klaas van Schelven 906b87727b Clarify pip cache output
pip cache reported 'Nothing cached' and 'Number of wheels: 0' even when things were
obviously cached. The reason, as per @uranusjr's comment is

1. If a wheel is downloaded (from a secure source), pip uses the network layer
   cache (provided by a requests extension implemented with cachecontrol) in
   ${CACHE_DIR}/http.
2. If a wheel is built from source, pip caches it separately in ${CACHE_DIR}/wheels.
3. The pip cache list command is currently only capable of showing entries in
   the wheel cache, not the network cache.

The solution is to clarify what `pip cache` is reporting about.
2022-07-25 14:42:41 +02:00
Pradyun Gedam c4606b3572
Merge pull request #11283 from pfmoore/classifier_311 2022-07-24 12:43:41 +01:00
Pradyun Gedam 5cdd090e7f
Merge pull request #11289 from uranusjr/add-src-to-mypy-path
Add /src explicitly to MYPY_PATH
2022-07-24 12:43:32 +01:00
Pradyun Gedam 3b8fe8b3aa
Merge pull request #11295 from sbidoul/run-tests-when-noxfile-changes
Always run CI workflows when noxfile changes
2022-07-23 20:43:39 +01:00
Stéphane Bidoul 5ca794426a
Always run CI workflows when noxfile changes 2022-07-23 18:09:04 +02:00
Stéphane Bidoul 3623d8c07a
Merge pull request #11293 from sbidoul/testsuite-without-stdlib-distutils
Use default setuptools behaviour in our tests
2022-07-23 17:54:11 +02:00
Stéphane Bidoul a8d29f7207
Change something so tests are not skipped 2022-07-23 16:52:01 +02:00
Stéphane Bidoul 7b96a3cd55
Use default setuptools behaviour in our tests
Our tests should pass without configuring setuptools in legacy mode.
2022-07-23 16:43:24 +02:00
Stéphane Bidoul 9351efd78b
Merge pull request #11291 from sbidoul/testsuite-with-installer-sbi
Use installer instead of setuptools in test suite
2022-07-23 16:38:37 +02:00
Stéphane Bidoul 3f5436cf3d
Use installer instead of setuptools in test suite
Instead of using a private setuptools api to
install common wheels in "editable" mode,
use 'installer' together with a .pth.
2022-07-23 16:22:02 +02:00
Paul Moore 0d4e9eb722
Merge pull request #11287 from q0w/upgrade-stderr
Send the pip upgrade prompt to stderr
2022-07-22 09:58:43 +01:00
Tzu-ping Chung c611db6514 Add /src explicitly to MYPY_PATH
Newer versions of Mypy seems to prefer packages in the site-packages
directory over those found in the project directory. This causes issues
if Mypy is installed in an environment that has an older pip version
present, e.g. pre-commit. Adding our pip into MYPY_PATH seems to fix
the issue.
2022-07-22 16:51:19 +08:00
q0w 52af2ea5b8 Send the pip upgrade prompt to stderr 2022-07-22 05:04:09 +03:00
Paul Moore faf23e0444 Added Python 3.11 classifier 2022-07-21 15:40:36 +01:00
Stéphane Bidoul a3c8bb6778
Merge pull request #11279 from sbidoul/release/22.2
Release 22.2
2022-07-21 12:02:42 +02:00
Stéphane Bidoul 2132eb4cdb
Bump for development 2022-07-21 10:28:02 +02:00
Stéphane Bidoul 8e7e76e60f
Bump for release 2022-07-21 10:28:01 +02:00
Stéphane Bidoul b6f6a94e36
Update AUTHORS.txt 2022-07-21 10:23:18 +02:00
Klaas van Schelven 58c05735ea Add news entry 2022-07-20 16:01:07 +02:00
Klaas van Schelven 5d7a1a68c7 Respect --no-index from the requirements file
See #11276

SearchScope was extended with an extra parameter to be able to pass-on the
value of no_index as we do with the other parameters. This allows us to respect
its value regardless of the order in which options are evaluated.
2022-07-20 15:55:17 +02:00
Stéphane Bidoul 790725aca3
Merge pull request #11274 from sbidoul/install-report-note-sbi
Add clarifications to the installation report documentation
2022-07-20 12:28:10 +02:00
Kai Mueller 271ed7bb7a fix2 2022-07-19 14:18:16 +00:00
Kai Mueller 3fda91290b fix 2022-07-19 13:37:58 +00:00
Stéphane Bidoul d4b9e187aa
Add clarifications to the installation report documentation 2022-07-19 10:39:11 +02:00
Federico 97abdbc040
Do not suggest caching if higher level caching
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2022-07-19 10:26:06 +02:00
Tzu-ping Chung b1a01ef762
Merge pull request #11265 from finnagin/main 2022-07-19 15:53:00 +08:00
Finn Womack 48bcb0a4cc
reformat to pass pre-commit check 2022-07-18 12:30:17 -07:00
finnagin a7c1fe3bff Remove utc fixture from tests 2022-07-18 12:20:56 -07:00
Finn Womack 0c574f7290
Remove time import 2022-07-18 11:58:51 -07:00
Finn Womack 246fef1914
Remove utc fixture 2022-07-18 11:44:18 -07:00
Federico fcda0edff5
Suggest disabling pip cache in containers
When building containers (like docker or podman) the layer system already handles the caching.
Not disabling pip's cache could result in the duplication of the size of the images.

I know this sujbject is not specially relevant to the documentation, so the comment is fairly small.
Duplication of pip's cache is a recurrent problem in many Python images
2022-07-18 17:32:52 +02:00
Tzu-ping Chung c9cb7f4629
Merge pull request #11270 from uranusjr/upgrade-pre-commit-hooks
Upgrade pre-commit hooks
2022-07-18 18:33:07 +08:00
Stéphane Bidoul b65584130b
Merge pull request #11269 from uranusjr/purge-global-distutils-imports
Avoid importing distutils globally
2022-07-18 10:02:01 +02:00
Tzu-ping Chung 360b96305a Upgrade pre-commit hooks
Also fix some Mypy errors newly found with upgrade.
2022-07-18 15:13:12 +08:00
Tzu-ping Chung 0e06452530 Avoid importing distutils globally
The distutils module is deprecated in 3.11 so we should avoid importing
it unless absolutely necessary to avoid emitting superfulous warnings.
2022-07-18 14:30:52 +08:00
Stéphane Bidoul a7a35dc20d
Merge pull request #11245 from sbidoul/pip-inspect-sbi
Add pip inspect command
2022-07-18 08:10:07 +02:00
Stéphane Bidoul e5898ab8da
Merge pull request #11267 from sbidoul/vendoring-22.2
Vendoring upgrade for 22.2
2022-07-17 14:13:50 +02:00
Stéphane Bidoul 58b2c6b0a7
Vendoring: tweak certifi version 2022-07-17 01:22:56 +02:00
Stéphane Bidoul 73667ebe3a
Upgrade certifi to 2022.6.15 2022-07-17 01:05:58 +02:00
Stéphane Bidoul 6fb4bf2688
Vendoring: update ceritfi patch 2022-07-17 01:05:13 +02:00
Stéphane Bidoul c5afcf47cb
Upgrade chardet to 5.0.0 2022-07-17 01:05:13 +02:00
Stéphane Bidoul 6c3853a325
Upgrade requests to 2.28.1 2022-07-17 01:04:56 +02:00
Stéphane Bidoul f1b3926eaa
Vendoring: update requests patch 2022-07-17 00:55:41 +02:00
Stéphane Bidoul 51bb14be87
Upgrade typing_extensions to 4.3.0 2022-07-16 20:24:30 +02:00
Stéphane Bidoul 69e60a5b93
Upgrade pygments to 2.12.0 2022-07-16 20:24:30 +02:00