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

12165 commits

Author SHA1 Message Date
Pradyun Gedam 94999255d5
Reformat the codebase, with black 2021-08-20 13:37:49 +01:00
Xavier Fernandez 08b62b65ef commands.show: fix small typo in function name 2021-08-16 10:26:14 +02:00
Pradyun Gedam 4adc1b34a6
Merge pull request #10229 from pradyunsg/deprecation-cleanups
Give some TLC to the `deprecated` helper
2021-08-16 08:42:04 +01:00
Pradyun Gedam 9cb23c9b4f
Merge pull request #10279 from pradyunsg/reorg-dependency-resolution-information 2021-08-15 22:18:51 +01:00
Jon Dufresne 3064f71161 Upgrade vendored distro to use new typing and API
The most recent version of distro, 1.6.0, include type information. This
allows pip to remove some workarounds. See upstream commit:
20cb68d6b0

The new version also deprecated the top level function
distro.linux_distribution(). Switch to the new preferred API. See
upstream commit:
f947776f5a
2021-08-15 21:54:40 +02:00
Pradyun Gedam 10c0f0d637
Hide feature flag if deprecated behaviour is gone 2021-08-15 19:15:53 +01:00
Pradyun Gedam 7bbbaa3857
Test the feature_flag argument in deprecated helper
This wasn't covered properly in the PR that introduced this.
2021-08-15 19:15:53 +01:00
Pradyun Gedam 7120590935
Tweak wording in deprecation messages
- Avoid a period at the end of `issue` line.
- Change post-gone message wording.
2021-08-15 19:15:53 +01:00
Pradyun Gedam d23d12b9d8
Avoid formatted_* variables, by using a loop
This reduces the boilerplate around each statement, surfacing the logic
of message formatting more clearly.
2021-08-15 19:15:52 +01:00
Pradyun Gedam fe9ba4d401
Avoid hanging else at end of function 2021-08-15 19:15:52 +01:00
Pradyun Gedam ad32e8c303
Tweak comments 2021-08-15 19:15:52 +01:00
Pradyun Gedam df501bcf96
Enforce keyword arguments in deprecated 2021-08-15 19:15:52 +01:00
Pradyun Gedam 402bbcbd12
Merge pull request #10367 from pradyunsg/escalate-permissions 2021-08-15 18:32:31 +01:00
Pradyun Gedam 24541d3e2b
Explicitly set permissions for label-merge-conflicts 2021-08-15 18:29:57 +01:00
Pradyun Gedam 560b949761
Merge pull request #10366 from sbidoul/pip-list-doc-rm-legacy-sbi
Remove pip list legacy format from documentation
2021-08-15 18:25:30 +01:00
Stéphane Bidoul c1772d9d03
Remove pip list legacy format from documentation 2021-08-15 17:56:43 +02:00
Pradyun Gedam 1df8934a97
Merge pull request #10292 from jdufresne/six-req-install 2021-08-15 13:29:29 +01:00
Pradyun Gedam b538f56788
Merge pull request #10363 from pradyunsg/merge-conflict-autolabeling 2021-08-15 13:25:23 +01:00
Pradyun Gedam eb700d7b95
Add a name for label-merge-conflicts 2021-08-15 13:23:49 +01:00
Pradyun Gedam 93f200aeda
Perform merge-conflict label checks, via GitHub Actions 2021-08-15 13:23:49 +01:00
Pradyun Gedam f5c4a0911e
Merge pull request #10364 from pradyunsg/tweak-news-file 2021-08-15 13:22:58 +01:00
Pradyun Gedam 7b96794ad2
Add missing word to guidance on check failure
Co-authored-by: Stéphane Bidoul <stephane.bidoul@acsone.eu>
2021-08-15 11:57:58 +01:00
Pradyun Gedam 96b0ef029b
Provide additional context on news entry check failures 2021-08-15 10:32:20 +01:00
Stéphane Bidoul 01308b81f2
Merge pull request #9086 from nipunn1313/partial_clone
Use git's partial clone feature to speed up pip
2021-08-15 11:28:52 +02:00
Pradyun Gedam 116e53145b
Change the news-file check
- Rename the file.
- Give it a better name in checks view.
- Use the ref the PR will merge into.
2021-08-15 09:36:05 +01:00
Tzu-ping Chung d8fba8d95a
Merge pull request #9785 from hexagonrecursion/main 2021-08-15 11:25:53 +08:00
Pradyun Gedam f51895867a
Merge pull request #10194 from harupy/type-annotations-internal 2021-08-14 09:09:28 +01:00
Nipunn Koorapati 2d35b8072c Use git's partial clone feature to speed up pip
Clone with --filter=blob:none - as it fetches all
metadata, but only dynamically fetches the blobs as
needed by checkout. Since typically, pip only needs the blobs for
a single revision, this can be a big improvement, especially
when fetching from repositories with a lot of history,
particularly on slower network connections.

Added unit test for the rev-less path. Confirmed that both
of the if/else paths are tested by the unit tests.
2021-08-13 11:44:01 -07:00
Pradyun Gedam 53e2a5cf0a
Use pip-cli for an example pip invocation 2021-08-13 13:37:46 +01:00
Pradyun Gedam d7c33065ad
Move section on dependency conflicts to dependency resolution topic 2021-08-13 13:37:46 +01:00
Pradyun Gedam da6239de97
Move "reduce backtracking" to dependency resolution topic 2021-08-13 13:37:45 +01:00
Pradyun Gedam b9f829553d
Merge pull request #10302 from nipunn1313/blacken_tests42
Run black on tests/functional/test_vcs_bazaar.py
2021-08-13 11:00:09 +01:00
Pradyun Gedam 4446d1a719
Merge pull request #10293 from jdufresne/nox
Upgrade nox to remove mypy ignores
2021-08-13 10:59:41 +01:00
Pradyun Gedam 8bfb6b527d
Merge pull request #10346 from jdufresne/simplify-prepare
Simplify RequirementPreparer._downloaded data structure
2021-08-12 19:37:09 +01:00
Pradyun Gedam 29121dffcd
Merge pull request #10284 from jdufresne/black-vcs
Blacken src/pip/_internal/vcs directory
2021-08-12 19:36:36 +01:00
Tzu-ping Chung a974526a0a
Merge pull request #10354 from uranusjr/release/21.2.4
Release 21.2.4
2021-08-12 22:53:35 +08:00
Tzu-ping Chung 0c413d5c62 Remove stale news files 2021-08-12 22:50:58 +08:00
Jon Dufresne 219def7e10 Blacken src/pip/_internal/vcs directory 2021-08-12 07:45:42 -07:00
Tzu-ping Chung 04bf322af4 Merge branch 'main' into release/21.2.4 2021-08-12 22:43:52 +08:00
Tzu-ping Chung d63e188746 Bump for development 2021-08-12 22:43:06 +08:00
Tzu-ping Chung 73fc5ff71a Bump for release 2021-08-12 22:43:06 +08:00
Jon Dufresne 030b8b4ef6 Upgrade nox to remove mypy ignores 2021-08-12 07:41:30 -07:00
Tzu-ping Chung 2d9bded5d9 Ignore warning on MSYS MINGW's incorrect sysconfig 2021-08-12 22:29:10 +08:00
Tzu-ping Chung c1316c19f5 Suppress location warning caused by bpo-44860 2021-08-12 22:29:03 +08:00
Tzu-ping Chung e959020591 Move NameTuple method out of class
Suppport for defining methods on a typing.NameTuple was added in 3.6.1,
so this fixes compatibility to 3.6.0.
2021-08-12 22:28:45 +08:00
Tzu-ping Chung 346bba7a0f
Merge pull request #10290 from uranusjr/locations-skip-mingw-wrong-lib
Ignore warning on MSYS MINGW's incorrect sysconfig
2021-08-12 22:25:15 +08:00
Tzu-ping Chung 79d2a98566 Ignore warning on MSYS MINGW's incorrect sysconfig 2021-08-12 21:10:35 +08:00
Tzu-ping Chung aaaaf4ba28
Merge pull request #10286 from uranusjr/locations-skip-bpo-44860
Suppress location warning caused by bpo-44860
2021-08-12 21:06:10 +08:00
Nipunn Koorapati 7e7c10ab4d Run black on tests/functional/test_new_resolver_errors.py 2021-08-11 13:24:05 +08:00
Nipunn Koorapati 1b15952618 Run black on tests/functional/test_hash.py 2021-08-11 13:23:50 +08:00