Commit Graph

2943 Commits

Author SHA1 Message Date
Pradyun Gedam 00e531a16e
Merge pull request #9017 from pradyunsg/backtracking-messaging 2020-10-28 18:25:29 +05:30
Pradyun Gedam 741b80ac08
Update wording in informational message 2020-10-28 18:25:12 +05:30
Daniel Katz 7632c7a22b Spell `abis` and `platforms` as plural words. 2020-10-27 19:00:22 -04:00
Daniel Katz 01a512c7fc Fix linter error: Add missing function type declaration. 2020-10-27 19:00:22 -04:00
Daniel Katz e08ec3593d Expand platform-tags unconditionally. 2020-10-27 19:00:22 -04:00
Daniel Katz 7237bd3397 Respond to feedback, and add functional tests. 2020-10-27 19:00:22 -04:00
Daniel Katz abf987bde3 Use 'append'-style CLI arguments, rather than ','-separated values. 2020-10-27 19:00:22 -04:00
Daniel Katz cea9f32dae Support multiple `abi` and `platform` values for `pip download`. 2020-10-27 19:00:22 -04:00
Pradyun Gedam a0ec4be98b
Merge pull request #8666 from uranusjr/rmtree-unicode-use-file-system-encoding
Only do the ensure_text() dance on Windows
2020-10-27 23:14:39 +05:30
Paul Moore 40904e3a05 Remove --build-dir option, as per deprecation 2020-10-27 15:24:36 +00:00
Pradyun Gedam b39aeeb6df
Merge pull request #9050 from sbidoul/fix-freeze-direct_url-editable-sbi 2020-10-27 19:34:10 +05:30
Pradyun Gedam 55e316a452
Add the last line to the info message 2020-10-27 19:32:36 +05:30
Pradyun Gedam 1acca46aa3
Prefix backtracking message with "INFO: " 2020-10-27 19:32:36 +05:30
Pradyun Gedam f3307a5103
Present a message upon first backtrack 2020-10-27 19:32:36 +05:30
Pradyun Gedam daa003bd9b
Make mypy happy 2020-10-27 19:32:36 +05:30
Pradyun Gedam 95171c881f
Display messages when backtracking on a package 2020-10-27 19:32:35 +05:30
Tzu-ping Chung 94fbb6cf78 Only do the ensure_text() dance on Windows
POSIX is problematic when the environment is not configured properly.
2020-10-27 21:40:39 +08:00
Pradyun Gedam 1bb7bf6a4c
Update type annotation 2020-10-27 01:00:30 +05:30
Pradyun Gedam e74116a436
Change assertion in topological sorting 2020-10-27 00:53:41 +05:30
Stéphane Bidoul d5a2007e8f
Avoid AssertionError in pip freeze with editable direct URLs 2020-10-25 15:18:02 +01:00
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
Nguyễn Gia Phong 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
Nguyễn Gia Phong 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
Nguyễn Gia Phong 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
Nguyễn Gia Phong 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
Nguyễn Gia Phong 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