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
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
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
Nguyễn Gia Phong
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
Nguyễn Gia Phong
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
Nguyễn Gia Phong
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
Pradyun Gedam
a99190459e
Merge pull request #8817 from sbidoul/improve-git-checkout
2020-09-01 18:40:51 +05:30
Tzu-ping Chung
87d129a801
Replace custom URL parsing with url_to_path()
2020-09-01 15:43:58 +08:00
Stéphane Bidoul
3aa0c2ed91
Git fetch more aggressively
...
Before we were fetching only revisions starting with refs/.
Now we also fetch revisions that look like commit that we
don't have locally.
2020-08-30 11:52:06 +02:00
Tzu-ping Chung
8b2b92485c
Include Requires-Python dep even with --no-deps
2020-08-26 09:49:25 +08:00
Pradyun Gedam
0b18e21cbe
Merge pull request #8752 from sbidoul/imp-8369-deprecation-sbi
2020-08-25 20:40:27 +05:30
Pradyun Gedam
b7075b9351
Merge pull request #8778 from hugovk/deprecate-3.5
...
Deprecate support for Python 3.5
2020-08-25 20:40:01 +05:30
Pradyun Gedam
e17f845475
Merge pull request #8522 from NoahGorny/fix-requirements-file-options
...
install: Update extra-index-url in session from requirements file
2020-08-25 15:08:11 +05:30
Hugo
e93257c080
Warn Python 3.5 support is deprecated and will be removed in pip 21.0, Jan 2021
2020-08-18 15:22:16 +03:00