Ellen Marie Dash
2d978309a2
[commands/cache] Minor clean-up.
...
- Consistently use singular 'cache' (not plural 'caches').
- Remove unnecessary uses of the word 'currently'.
- Use 'file(s)' instead of 'files', to account for case of only one file.
- Use .format() when appropriate.
- Minor cleanup of `pip cache`-related files in docs/.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
554133a90e
[commands/cache] Add file size information.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
61a0adcfe7
[commands/cache] Add missing type annotation.
2020-04-01 16:54:04 -04:00
Ellen Marie Dash
61dd0bc16c
[commands/cache] Use location of wheel cache dir specifically.
2020-04-01 16:54:04 -04:00
Ellen Marie Dash
c838a67178
[commands/cache] Change pattern suffix from -*.whl to *.whl.
2020-04-01 16:54:04 -04:00
Ellen Marie Dash
9563dfb526
[commands/cache] Refactor get_cache_info().
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
50604be6c4
[commands/cache] Raise errors if wrong number of args.
...
Also add tests for purge_cache, since I apparently forgot those before.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
8ae71adbea
[commands/cache] Add docs for 'pip cache' command.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
c59ced6942
[commands/cache] More refactoring of cache command
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
b9b29b8c10
[commands/cache] fix 'pip cache info'; don't hide python/abi/platform tags.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
b0e7b66326
[commands/cache] Refactor + fix linting failures.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
04c0b0e6eb
Add 'pip cache' command.
2020-04-01 16:54:03 -04:00
Paul Moore
657cf2515b
Merge pull request #7929 from McSinyx/tmp-file
...
Use better temporary files mechanism
2020-04-01 16:47:30 +01:00
Nguyễn Gia Phong
209c74f690
Use better temporary files mechanism
2020-04-01 22:02:34 +07:00
Pradyun Gedam
7b02273f3e
Merge pull request #7927 from deveshks/raise-exception-if-rev-empty-git-url
...
Raise an exception if revision is empty in git url
2020-04-01 18:17:36 +05:30
Pradyun Gedam
0f7fac3a3d
Merge pull request #7801 from uranusjr/yanked-link-refactor
...
Move wheel cache out of InstallRequirement
2020-03-31 15:14:37 +05:30
Tzu-ping Chung
4a453e12d4
Reword docstring to match code
2020-03-31 01:31:11 +08:00
Tzu-ping Chung
799ffcbfe1
One arg per line
2020-03-31 01:29:15 +08:00
Devesh Kumar Singh
0d2ca67729
Changed ValueError to InstallationError
2020-03-30 22:29:40 +05:30
Pradyun Gedam
57cb941645
Merge pull request #7891 from deveshks/ignore-uninstall-error-if-easy-install-missing
...
Don't fail uninstallation if easy-install.pth doesn't exist
2020-03-30 21:42:38 +05:30
cjc7373
c388315bc0
Clarify the usage of --no-binary and --only-binary command
2020-03-30 16:57:24 +02:00
Tzu-ping Chung
6db0df928c
Move wheel cache out of InstallRequirment
2020-03-30 17:36:03 +08:00
Devesh Kumar Singh
106bd0d77f
Raise an exception if revision is empty in git url
2020-03-29 12:04:48 +05:30
Tzu-ping Chung
4ae50f9af7
Remove unused preparer from SpecifierRequirement
2020-03-27 19:00:27 +08:00
Tzu-ping Chung
07563847b0
Decouple candidate and requirement modules
...
This introduces a new module "factory" that contains all methods dealing
with producing candidates/requirements from an input
requirement/candidate. This allows both models to know nothing about
each other, and simply rely on the intermediate to produce the other.
I *believe* this also helps us reduce merge conflicts due to adding
arguments to those producer functions, since now we only need to modify
the factory, and exactly one of candidate/requirement.
This is only part of a big scheme--the plan is to also move
Candidate.get_dependencies() and Requirement.find_matches() into the
factory class, so they can avoid holding and passing around finder,
preparer, and make_install_req. This is also necessary to change the
return type of Candidate.get_dependencies() to Requirement without
hard-coupling.
2020-03-27 03:14:51 +08:00
Paul Moore
fea9766fa2
Merge branch 'master' into new_resolver_extras
2020-03-26 15:49:43 +00:00
Paul Moore
4f64052676
Merge pull request #7888 from uranusjr/resolver-progress
...
Implement ignore_dependencies in new resolver
2020-03-26 15:45:21 +00:00
Paul Moore
a68345e81c
Warn if invalid extras are given
2020-03-26 14:53:24 +00:00
Paul Moore
7e97cf6426
Ignore invalid extras
2020-03-26 11:57:34 +00:00
Paul Moore
67bf5890ea
Document the ExtrasCandidate class
2020-03-26 11:56:46 +00:00
Paul Moore
ffb56db5dd
Allow candidates to not have an associated install requirement
2020-03-26 11:19:10 +00:00
Paul Moore
d79aacc61c
Forgot to run lint before pushing again :-(
2020-03-25 12:39:21 +00:00
Paul Moore
bd0f7fe346
Add an ExtrasCandidate class
2020-03-25 12:27:24 +00:00
Paul Moore
76de49bc24
Make a proper get_install_requirement method for candidates
2020-03-25 12:27:24 +00:00
Devesh Kumar Singh
4264d5e0d3
Don't fail uninstallation if easy-install.pth doesn't exist
2020-03-24 17:08:44 +05:30
Xavier Fernandez
d43699b111
Move darwin special config dir to pip wrapper
2020-03-23 19:31:07 +01:00
Tzu-ping Chung
3cb7a08f0d
Implement ignore_dependencies in new resolver
...
If this flag is set, simply report every candidate has no dependencies.
2020-03-24 02:02:36 +08:00
Tzu-ping Chung
5af542ccac
Use named arguments for clarity
2020-03-24 02:00:08 +08:00
Tzu-ping Chung
ff35f7f26a
Remove stale TODO comment
2020-03-23 17:15:55 +08:00
Paul Moore
c83505b848
Remove an obsolete comment
2020-03-20 13:57:45 +00:00
Paul Moore
ffe553638c
Address review requirements
2020-03-19 10:55:33 +00:00
Paul Moore
a23e936bc7
Ensure candidate name is canonicalised
2020-03-18 14:54:15 +00:00
Paul Moore
f1b4be892a
Fix bug in get_dependencies() passing Requirement object rather than string
2020-03-18 14:53:04 +00:00
Paul Moore
1ebe1e0935
Integrate the new provider with --unstable-feature=resolver
2020-03-18 14:49:49 +00:00
Paul Moore
7d2eb544b5
Implement PipProvider
2020-03-18 14:42:16 +00:00
Tzu-ping Chung
dad77a9e4d
Better handle root vetices in graph
...
ResolveLib *should* always produce a graph with only one root vertice,
which is None. But we don't really need to rely on that implementation
detail. Vertices without any parents can be assigned 0 in all cases.
2020-03-15 23:01:58 +08:00
Tzu-ping Chung
ffb3692e00
Add simple tests for get_installation_order()
...
The implementation is improved a bit to make the sorting result more
predictable for easier testing.
2020-03-15 23:01:57 +08:00
Tzu-ping Chung
53775279c4
Fix graph-walking terminal condition
...
The weight mapping should have size `len(packages) + 1` because it needs
to contain a "sentinel" node (None).
2020-03-15 22:25:26 +08:00
Tzu-ping Chung
a3f6c17d36
Implement resolver methods on provider interface
...
This is using a temporary PipProvider class, which should be replaced by
the actual implementation after it is merged.
2020-03-15 15:25:38 +08:00
Pradyun Gedam
bbd439898b
Better indentation for pip config
description
2020-03-14 00:29:41 +05:30