Commit Graph

35 Commits

Author SHA1 Message Date
Hugo van Kemenade 0652a2f016 Rename to 'Package index page cache location' 2020-10-02 09:59:38 +03:00
Hugo van Kemenade d45ba65c37 Include http directory in 'pip cache info' and 'pip cache purge' 2020-09-24 01:33:56 +03: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 6fa4a9a0a7 Clean up code style changes
Toward minimizing style changes in the overall PR diff, or toward
consistency with the future use of black (in cases where I wasn't sure
of a good way to minimize the diff).
2020-07-17 14:33:19 +07:00
Nguyễn Gia Phong f8b06a3906 Enable flake8-logging-format 2020-07-17 14:33:19 +07:00
Pradyun Gedam f9b1a54009
Apply suggestion from review comments 2020-05-23 19:32:27 +05:30
Devesh Kumar Singh 99660b8d86 Fix pip cache docstring to render correctly in docs 2020-05-23 19:27:32 +05:30
Pradyun Gedam 371d6f5c67
Merge pull request #8157 from pradyunsg/cache/ignore-require-venv 2020-04-28 20:52:46 +05:30
Pradyun Gedam a12fc7cc2c
Ignore require-virtualenv in `pip cache` 2020-04-28 17:05:19 +05:30
Pradyun Gedam 22bd8add95
Merge pull request #8095 from hugovk/pip-cache-dir2 2020-04-28 00:57:10 +05:30
Noah Gorny e212f66575 commands: cache: Abort early if cache is disabled 2020-04-24 12:57:13 +03:00
Hugo cebac6aa6c Add 'pip cache dir' command to show the path to pip's cache directory 2020-04-20 11:48:36 +03:00
Ellen Marie Dash e804aa56af [commands/cache] Have `pip cache info` raise an exception if it gets any arguments. 2020-04-01 16:54:42 -04:00
Ellen Marie Dash e1fde1faca [commands/cache] Remove unnecessary re-definition of __init__. 2020-04-01 16:54:42 -04:00
Ellen Marie Dash d57407a37d [commands/cache] Make _find_wheels(), and this `pip cache {list,remove}` behave more predictably. 2020-04-01 16:54:42 -04:00
Ellen Marie Dash ed9f885bd7 [commands/cache] Reformat output of `pip cache info`
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-04-01 16:54:42 -04:00
Ellen Marie Dash 63ba6cce4a [command/cache, utils/filesystem] Use existing format_size; remove _friendly_size; rename friendly_*_size to format_*_size for consistency. 2020-04-01 16:54:42 -04:00
Ellen Marie Dash 8cd8c91491 [commands/cache] Reformat (more) documentation.
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-04-01 16:54:42 -04:00
Ellen Marie Dash 735375fb6b [commands/cache] Reformat documentation.
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-04-01 16:54:42 -04:00
Ellen Marie Dash d9dc76e909 [commands/cache] Correct argument name in documentation for `pip cache list`. 2020-04-01 16:54:42 -04:00
Ellen Marie Dash 10d13762eb [commands/cache] Be explicit about `pip cache` only working on the wheel cache. 2020-04-01 16:54:42 -04:00
Ellen Marie Dash 6fa8498e18 [commands/cache] Avoid use of "(s)" suffix.
As @hugovk pointed out, it can cause problems sometimes:

https://github.com/pypa/pip/pull/6391#discussion_r366259867
2020-04-01 16:54:42 -04:00
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