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

2923 commits

Author SHA1 Message Date
Pradyun Gedam
4e26bf22f5
Merge pull request #8971 from McSinyx/ci39 2020-10-19 19:23:49 +05:30
Tzu-ping Chung
b921db84bd Improve sorting logic 2020-10-13 16:12:11 +08:00
Tzu-ping Chung
761433cee8 Eliminate len() usage in tests 2020-10-13 16:12:11 +08:00
Tzu-ping Chung
17d0086ea2 Do this all over again 2020-10-13 16:12:11 +08:00
Tzu-ping Chung
6e3d56897b Always return the installed version 2020-10-13 16:12:11 +08:00
Tzu-ping Chung
01c9b6cf25 Cache results and remove unused implementation 2020-10-13 16:06:00 +08:00
Tzu-ping Chung
a270ca5616 Mypy is wrong 2020-10-13 16:06:00 +08:00
Tzu-ping Chung
8326148149 Implement "lazy sequence" to avoid Internet
find_matches() is modified to return a special type that implements
the sequence protocol (instead of a plain list). This special sequence
type tries to use the installed candidate as the first element if
possible, and only access indexes when the installed candidate is
considered unsatisfactory.
2020-10-13 16:06:00 +08:00
cf6ecab627 Bump mypy to 0.790 for Python 3.9 compat
HashError.order is now annotated as an int to allow
HashErrors.errors.sort(key=lambda e: e.order).  Alternatively we can
define a function which assert e is not None but I prefer the more
concise version, since we never raise HashError directly anyway.
2020-10-12 17:37:55 +07:00
Pradyun Gedam
063f2ae74e
Merge pull request #8974 from NoahGorny/fix-new-resolver-upgrades-when-not-needed-to 2020-10-10 20:41:48 +05:30
Pradyun Gedam
95dbf34d6e
Merge pull request #8919 from FFY00/fix-devendored-pip
Revert "Merge pull request #8391 from VikramJayanthi17/error-swallow-…
2020-10-10 18:41:32 +05:30
Noah Gorny
960dca9949 resolvelib: factory: Get installed distributions correctly 2020-10-10 02:23:08 +03:00
b28e2c4928 New resolver: Avoid polluting dest dir
Previously, during dependency resolution for `pip download -d <dir>`
or `pip wheel -w <dir>`, distributions downloaded are always saved
to <dir>, even for those are only used in backtracking and are not
part of the returned requirement set.
2020-10-07 13:42:21 +07:00
6887b0795b Merge usage of download_dir and wheel_download_dir
In every cases, at least one of them is None.  By doing this,
it is also possible to simplify wrapper codes around download_dir.
2020-10-07 13:42:21 +07:00
78b294e746 Remove download_dir exist check
Both pip download and wheel call endure_dir on the directory.
2020-10-07 13:42:21 +07:00
Pradyun Gedam
8aab76c63f
Merge pull request #8910 from hugovk/pip-cache-http
Include http subdirectory in 'pip cache info' and 'pip cache purge'
2020-10-02 13:26:00 +05:30
Hugo van Kemenade
0652a2f016 Rename to 'Package index page cache location' 2020-10-02 09:59:38 +03:00
Pradyun Gedam
d0f80a44c9
Merge pull request #8804 from McSinyx/fast-deps-check-dl-dir 2020-10-02 03:41:43 +05:30
2ef8040495 Comment and rework conditionals in download dir check
Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2020-10-01 22:00:47 +07:00
Tzu-ping Chung
c2de8974d4 Resolve user-requested requirements first 2020-09-28 22:23:10 +08:00
Tzu-ping Chung
ebc1375612 Make private attribute looks private 2020-09-28 22:19:51 +08:00
Tzu-ping Chung
806c112ed0 Don't crash on 'check' when METADATA is missing 2020-09-28 14:28:53 +08:00
Filipe Laíns
b215120b5a
Revert "Merge pull request #8391 from VikramJayanthi17/error-swallow-fix"
This reverts commit 7a60395dbd, reversing
changes made to d3ce025e8d.

It fixes devendored pip. See #8916.

Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-09-26 14:41:42 +01:00
Tzu-ping Chung
1dd6d56278 Cache PackageFinder.find_all_candidates() 2020-09-26 15:26:05 +08:00
Tzu-ping Chung
1135ac041d Move lru_cache to utils for reuse 2020-09-26 15:26:05 +08:00
Hugo van Kemenade
d45ba65c37 Include http directory in 'pip cache info' and 'pip cache purge' 2020-09-24 01:33:56 +03:00
Pradyun Gedam
58c594c06b
Prepare isort for black 2020-09-23 21:47:47 +05:30
Pradyun Gedam
faee60baea
Merge pull request #8902 from pradyunsg/linter-updates 2020-09-23 21:44:55 +05:30
Pradyun Gedam
25ab172b55
Update linter: isort 2020-09-23 19:52:28 +05:30
Pradyun Gedam
4c534e65d2
Tweak message when -r is not passed on a requirements.txt 2020-09-23 19:46:36 +05:30
Vipul Kumar
2b07c5d288
End no-color's description with period punctuation
It would be nice, if like description of other options, "--no-color"'s
description also ends with a period.
2020-09-23 04:43:51 +00:00
Pradyun Gedam
7c1e5d3096
Merge pull request #8568 from McSinyx/conf-const
Declare constants in configuration.py as such
2020-09-18 21:43:29 +05:30
Pradyun Gedam
67ab116f00
Merge pull request #8861 from pradyunsg/nicer-output-try-1 2020-09-17 11:00:23 +05:30
Pradyun Gedam
e61bb616ef
Merge pull request #8839 from uranusjr/new-resolver-hash-intersect 2020-09-17 10:58:44 +05:30
c947d00882 [fast-deps] Check download directory before making requests 2020-09-17 10:38:27 +07:00
Pradyun Gedam
53efda742b
Merge pull request #8474 from deveshks/remove-items-of-age-cache 2020-09-16 18:54:59 +05:30
Xavier Fernandez
33890bf825
Merge pull request #8722 from McSinyx/late-dl-indent
Dedent late download logs
2020-09-16 14:02:51 +02:00
8f8a1d65b2 Dedent late download logs 2020-09-13 21:09:57 +07:00
Devesh Kumar Singh
9450f8837a Use format options for abspath 2020-09-11 09:23:51 +05:30
Devesh Kumar Singh
0b3ba87bbf Add option to output full path of cache enty 2020-09-11 09:23:51 +05:30
Pradyun Gedam
cc472fd54a
Use a symmetric type and make mypy happy 2020-09-10 17:32:58 +05:30
Pradyun Gedam
3d32960c80
Only Print "Collecting ..." when the requirement changes 2020-09-10 17:21:42 +05:30
Pradyun Gedam
963e390abe
Improve how cached wheels are presented
This is specifically for the case of look ups done in the new resolver.
2020-09-10 17:21:04 +05:30
Pradyun Gedam
c07ef581e7
Factor out logger.into into a single call
This makes it easier to conditionally print this information.
2020-09-10 17:15:32 +05:30
Pradyun Gedam
8663855711
Merge pull request #8830 from uranusjr/env-var-req-file
Replace custom URL parsing with url_to_path()
2020-09-08 18:46:33 +05:30
cca500f053 Remove unused definitions 2020-09-04 17:37:43 +07:00
Xavier Fernandez
83f1640827
Merge pull request #8578 from McSinyx/parse-count
Allow verbose/quiet level to be specified via config file and env var
2020-09-03 18:34:53 +02:00
Tzu-ping Chung
dfaa111004 Pull in hashes from constraint files 2020-09-03 17:26:52 +08:00
Tzu-ping Chung
700eb7734f Hashes from lines should intersect, not union 2020-09-03 17:19:01 +08:00
Pradyun Gedam
567630b4b8
Merge pull request #8758 from uranusjr/new-resolver-requires-python-when-no-deps 2020-09-02 20:09:32 +05:30