summaryrefslogtreecommitdiff
path: root/src/pip/_internal/commands/cache.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump all linters other than mypy (#11901)Pradyun Gedam2023-03-271-1/+0
|
* Textual: "locally built" rather than "built"Klaas van Schelven2022-07-261-3/+3
| | | | As per @sbidoul's remark
* Clarify pip cache outputKlaas van Schelven2022-07-251-4/+4
| | | | | | | | | | | | | | pip cache reported 'Nothing cached' and 'Number of wheels: 0' even when things were obviously cached. The reason, as per @uranusjr's comment is 1. If a wheel is downloaded (from a secure source), pip uses the network layer cache (provided by a requests extension implemented with cachecontrol) in ${CACHE_DIR}/http. 2. If a wheel is built from source, pip caches it separately in ${CACHE_DIR}/wheels. 3. The pip cache list command is currently only capable of showing entries in the wheel cache, not the network cache. The solution is to clarify what `pip cache` is reporting about.
* cache: Do not raise error when there are no files to removeNoah Gorny2021-09-281-2/+6
| | | | Instead log a warning and continue (to log that we removed 0 files)
* Harmonize type signature of Command.run()Jon Dufresne2021-09-031-1/+1
|
* Concatenate same-line stringsPradyun Gedam2021-07-231-10/+8
| | | | | This is suboptimal behaviour in black that'll hopefully get fixed in the near future.
* Blacken src/pip/_internal/commands/Pradyun Gedam2021-07-231-41/+46
| | | | Progresses the black formatting of the codebase further.
* Complete type annotations in `pip/_internal/commands` (#10182)Harutaka Kawamura2021-07-231-24/+12
|
* use setLoggerClass to define log.verboseMin RK2021-06-111-4/+3
| | | | | | | loaded in pip._internals.__init__ must use utils.logging.getLogger to get the right type annotation instead of logging.getLogger, despite no actual difference in behavior
* -v shows subprocess outputMin RK2021-03-121-2/+3
| | | | | | | | adds VERBOSE custom log level between DEBUG and INFO used when `-v` is given. Now require -vv to enable full debug output. Messages can be logged with VERBOSE level to promote them to `-v` output instead of `-vv`
* Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-6/+2
| | | | | | | | | | | The typing module has been available since Python 3.5. Guarding the import has been unnecessary since dropping Python 2. Some guards remain to either: - Avoid circular imports - Importing objects that are also guarded by typing.TYPE_CHECKING - Avoid mypy_extensions dependency
* Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-2/+2
| | | | | | | | The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim.
* Use f-strings for simple string formattingJon Dufresne2020-12-251-1/+1
| | | | | | | Use pyupgrade to convert simple string formatting to use f-string syntax. pyupgrade is intentionally timid and will not create an f-string if it would make the expression longer or if the substitution parameters are anything but simple names or dotted names.
* Remove __future__ importsJon Dufresne2020-12-241-2/+0
| | | | Unnecessary since dropping Python 2.
* Rename to 'Package index page cache location'Hugo van Kemenade2020-10-021-2/+2
|
* Include http directory in 'pip cache info' and 'pip cache purge'Hugo van Kemenade2020-09-241-10/+31
|
* Use format options for abspathDevesh Kumar Singh2020-09-111-13/+29
|
* Add option to output full path of cache entyDevesh Kumar Singh2020-09-111-4/+19
|
* Clean up code style changesPradyun Gedam2020-07-171-2/+4
| | | | | | 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).
* Enable flake8-logging-formatNguyễn Gia Phong2020-07-171-3/+2
|
* Apply suggestion from review commentsPradyun Gedam2020-05-231-1/+1
|
* Fix pip cache docstring to render correctly in docsDevesh Kumar Singh2020-05-231-6/+6
|
* Merge pull request #8157 from pradyunsg/cache/ignore-require-venvPradyun Gedam2020-04-281-0/+1
|\
| * Ignore require-virtualenv in `pip cache`Pradyun Gedam2020-04-281-0/+1
| |
* | Merge pull request #8095 from hugovk/pip-cache-dir2Pradyun Gedam2020-04-281-0/+10
|\ \ | |/ |/|
| * Add 'pip cache dir' command to show the path to pip's cache directoryHugo2020-04-201-0/+10
| |
* | commands: cache: Abort early if cache is disabledNoah Gorny2020-04-241-0/+5
|/
* [commands/cache] Have `pip cache info` raise an exception if it gets any ↵Ellen Marie Dash2020-04-011-0/+3
| | | | arguments.
* [commands/cache] Remove unnecessary re-definition of __init__.Ellen Marie Dash2020-04-011-4/+0
|
* [commands/cache] Make _find_wheels(), and this `pip cache {list,remove}` ↵Ellen Marie Dash2020-04-011-1/+20
| | | | behave more predictably.
* [commands/cache] Reformat output of `pip cache info`Ellen Marie Dash2020-04-011-4/+3
| | | Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
* [command/cache, utils/filesystem] Use existing format_size; remove ↵Ellen Marie Dash2020-04-011-2/+2
| | | | _friendly_size; rename friendly_*_size to format_*_size for consistency.
* [commands/cache] Reformat (more) documentation.Ellen Marie Dash2020-04-011-2/+2
| | | Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
* [commands/cache] Reformat documentation.Ellen Marie Dash2020-04-011-8/+4
| | | Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
* [commands/cache] Correct argument name in documentation for `pip cache list`.Ellen Marie Dash2020-04-011-1/+1
|
* [commands/cache] Be explicit about `pip cache` only working on the wheel cache.Ellen Marie Dash2020-04-011-1/+1
|
* [commands/cache] Avoid use of "(s)" suffix.Ellen Marie Dash2020-04-011-1/+1
| | | | | | As @hugovk pointed out, it can cause problems sometimes: https://github.com/pypa/pip/pull/6391#discussion_r366259867
* [commands/cache] Minor clean-up.Ellen Marie Dash2020-04-011-5/+5
| | | | | | | | - 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/.
* [commands/cache] Add file size information.Ellen Marie Dash2020-04-011-9/+16
|
* [commands/cache] Add missing type annotation.Ellen Marie Dash2020-04-011-0/+1
|
* [commands/cache] Use location of wheel cache dir specifically.Ellen Marie Dash2020-04-011-2/+5
|
* [commands/cache] Change pattern suffix from -*.whl to *.whl.Ellen Marie Dash2020-04-011-1/+1
|
* [commands/cache] Refactor get_cache_info().Ellen Marie Dash2020-04-011-6/+9
|
* [commands/cache] Raise errors if wrong number of args.Ellen Marie Dash2020-04-011-1/+10
| | | | Also add tests for purge_cache, since I apparently forgot those before.
* [commands/cache] Add docs for 'pip cache' command.Ellen Marie Dash2020-04-011-5/+10
|
* [commands/cache] More refactoring of cache commandEllen Marie Dash2020-04-011-15/+8
|
* [commands/cache] fix 'pip cache info'; don't hide python/abi/platform tags.Ellen Marie Dash2020-04-011-9/+2
|
* [commands/cache] Refactor + fix linting failures.Ellen Marie Dash2020-04-011-40/+72
|
* Add 'pip cache' command.Ellen Marie Dash2020-04-011-0/+106