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

10859 commits

Author SHA1 Message Date
4f210f3608 [2020-resolver] List downloaded distributions before exiting
This unifies the behavior of pip download for both legacy and new
resolvers.  InstallRequirement.successfully_download is no longer needed
for this task and is thus retired.
2020-08-06 16:52:31 +07:00
Tzu-ping Chung
810385b971 Always use UTF-8 to read pyvenv.cfg 2020-08-06 11:46:46 +08:00
Tzu-ping Chung
4fce2ea88c Add test to ensure get_distribution() behavior 2020-08-06 10:59:07 +08:00
Chris Hunt
f51bd8fed8
Merge pull request #8716 from McSinyx/fix-range-request-cache
Disable caching for range requests
2020-08-05 19:58:22 -04:00
ffd6a38646 Disable caching for range requests 2020-08-05 22:19:49 +07:00
Pradyun Gedam
3d3c7b62f4
Merge pull request #8693 from pradyunsg/remove-news 2020-08-05 10:11:35 +05:30
Tzu-ping Chung
c04182893a Work around lax semantics in commands.search 2020-08-05 04:56:00 +08:00
Tzu-ping Chung
8491ce7723 Refactor and clarify get_distribution() behavior
The call to get_installed_distributions() now passes all flags
excplicitly so they are more obvious and less likely to be misunderstood
in the future. The behavior also documented in the function docstring.

The search_distribution() helper function is renamed with a leading
underscore to make it clear that it is intended as a helper function to
get_distribution().
2020-08-05 03:07:07 +08:00
Tzu-ping Chung
e459763d81 Also look for non-local when searching for dists
This matches the behavior of pkg_resources.get_distribution(), which
this function intends to replace.
2020-08-05 03:07:07 +08:00
Tzu-ping Chung
ff494f524e News 2020-08-05 03:07:07 +08:00
Pradyun Gedam
ee4371c386
Merge pull request #8685 from chrahunt/use-preparer-for-lazy-wheels 2020-08-04 18:46:56 +05:30
Pradyun Gedam
ae10b82f8c
Remove news/ files for 20.2.1 2020-08-04 16:45:12 +05:30
Pradyun Gedam
370322eacf
Merge pull request #8691 from pradyunsg/release/20.2.1 2020-08-04 14:00:51 +05:30
Pradyun Gedam
fa2714fcd6
Bump for release 2020-08-04 10:46:12 +05:30
Pradyun Gedam
bc86c7c33b
Bump for development 2020-08-04 10:46:12 +05:30
Pradyun Gedam
02ad77d944
Merge pull request #8603 from tekumara/pip-list-ignore-require-venv 2020-08-04 10:38:03 +05:30
Pradyun Gedam
6eea0d0a18
Merge pull request #8660 from brainwane/update-flag-in-docs
Update documentation to reflect updated resolver feature flag
2020-08-04 10:38:03 +05:30
Stéphane Bidoul
22d67dc261
Merge pull request #8665 from uranusjr/svn-version-more-robust
Improve SVN version parser
2020-08-04 10:38:03 +05:30
Pradyun Gedam
864e2eee09
Merge pull request #8659 from uranusjr/fix-get-distribution-dot-in-name
Canonicalize name in check_if_exists
2020-08-04 10:38:02 +05:30
Pradyun Gedam
ed205bdfa6
Merge pull request #8656 from chrahunt/gracefully-handle-bad-data-paths
Trace a better error message on installation failure due to invalid .data files in wheels
2020-08-04 10:38:02 +05:30
Pradyun Gedam
552b8376c0
Merge pull request #8678 from uranusjr/new-resolver-no-deps-extras-install-self 2020-08-04 10:38:02 +05:30
Pradyun Gedam
4a39344e94
Merge pull request #8688 from brainwane/deprecation-opt-in-resolver
Docs: Add details on old resolver deprecation and removal
2020-08-04 10:38:02 +05:30
Pradyun Gedam
b29dd4edc5
Merge pull request #8679 from pradyunsg/tweak-resolutionimpossible-message 2020-08-04 10:38:02 +05:30
Pradyun Gedam
527b3e27fb
Merge pull request #8684 from uranusjr/zipfile-unicode-path-python2 2020-08-04 10:38:01 +05:30
Pradyun Gedam
ce1e7d80ad
Merge pull request #8681 from McSinyx/faster-deps
[fast-deps] Make range requests closer to chunk size
2020-08-04 10:38:01 +05:30
Pradyun Gedam
a40a4efdbe
Merge pull request #8672 from edmorley/fix-userguide-typos 2020-08-04 10:38:01 +05:30
Pradyun Gedam
64e4852bc6
Merge pull request #8690 from pradyunsg/more-news-about-resolver 2020-08-04 10:37:48 +05:30
Pradyun Gedam
686c11a7a2
Merge pull request #8690 from pradyunsg/more-news-about-resolver 2020-08-04 10:28:35 +05:30
Pradyun Gedam
18aa718a58
Drop punctuation
Co-authored-by: Sumana Harihareswara <sh@changeset.nyc>
2020-08-04 09:50:40 +05:30
Pradyun Gedam
68cdfa93d9
Mention ResolutionImpossible in changelog for 8459 2020-08-04 08:55:59 +05:30
Pradyun Gedam
175371c7e3
Mention ResolutionImpossible in 20.2 changelog 2020-08-04 08:55:12 +05:30
Pradyun Gedam
d8ba146e65
Merge pull request #8672 from edmorley/fix-userguide-typos 2020-08-04 08:39:32 +05:30
Pradyun Gedam
e7357c71cd
Merge pull request #8681 from McSinyx/faster-deps
[fast-deps] Make range requests closer to chunk size
2020-08-04 07:38:48 +05:30
Pradyun Gedam
57ee51c2b1
Un-rewrap lines 2020-08-04 06:55:17 +05:30
Pradyun Gedam
70768de0a8
Merge pull request #8684 from uranusjr/zipfile-unicode-path-python2 2020-08-04 06:50:38 +05:30
Pradyun Gedam
0c48ec0696
Merge pull request #8679 from pradyunsg/tweak-resolutionimpossible-message 2020-08-04 06:49:10 +05:30
Pradyun Gedam
e35135b923
Merge pull request #8688 from brainwane/deprecation-opt-in-resolver
Docs: Add details on old resolver deprecation and removal
2020-08-04 06:48:49 +05:30
Pradyun Gedam
4fa31d509f
Merge pull request #8678 from uranusjr/new-resolver-no-deps-extras-install-self 2020-08-04 06:48:11 +05:30
d98ff19c27 [fast-deps] Make range requests closer to chunk size 2020-08-03 21:49:58 +07:00
Sumana Harihareswara
20663fc993 Docs: Add details on old resolver deprecation and removal
Relevant to #8371, #6536, #8076.

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-08-03 10:45:25 -04:00
Miro Hrončok
ba062c3ed0 When one keyring attempt fails, don't bother with more
This makes https://github.com/pypa/pip/issues/8090 much less painful.
2020-08-03 12:34:26 +02:00
Tzu-ping Chung
a12e2f1479 PEP 427 mandates UTF-8, we don't need the fallback 2020-08-03 15:00:58 +08:00
Tzu-ping Chung
d4995cb89e Implement heuristics to get non-ASCII ZIP entries 2020-08-03 09:29:19 +08:00
Tzu-ping Chung
95efbbe588 News 2020-08-03 09:29:19 +08:00
Chris Hunt
8b838ebb89 Prepare lazy wheels more so they are downloaded
This keeps all knowledge about preparation and types of requirements in
`RequirementPreparer`, so there's one place to look when we're ready to
start breaking it apart later.
2020-08-02 19:36:29 -04:00
Chris Hunt
c7ade159d4 Pass link to _fetch_metadata instead of req
Removes dependence on `InstallRequirement`.
2020-08-02 19:36:29 -04:00
Chris Hunt
21db4f3096 Log in one common location
Reduces dependence on `InstallRequirement` being passed to
`_fetch_metadata`.
2020-08-02 19:36:29 -04:00
Chris Hunt
6c4d4f3b78 Move _fetch_metadata to RequirementPreparer
The fact that all of this functionality can be put in terms of the
`RequirementPreparer` indicates that, at least at this point, this is
the cleanest place to put this functionality.
2020-08-02 19:36:29 -04:00
Chris Hunt
4e1bff741d Promote Wheel-related assertions to LinkCandidate constructor
These are things we know will be true because of the existing wheel
processing. In the future we may delegate the extraction of these to the
LinkCandidate itself so it doesn't have to be an assertion.
2020-08-02 19:36:28 -04:00
Chris Hunt
9e463916d0 Extract name and version from Wheel link
We happen to know that this is the same treatment that gave us `_name`
and `_version` for Wheels in the first place (in `LinkEvaluator`). It's not
ideal, however the metadata consistency check that occurs in `Candidate`
after creation of a `Distribution` guards us against any deviation in
the name and version during our processing.

Reduces dependence on Candidate.
2020-08-02 19:36:14 -04:00