summaryrefslogtreecommitdiff
path: root/src/pip/_internal/cache.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove now unused FormatControl in WheelCacheStéphane Bidoul2023-03-291-31/+10
|
* Deprecate --no-binary disabling the wheel cacheStéphane Bidoul2022-09-171-1/+5
|
* Enforce utf-8 encoding for origin.json in wheel cacheStéphane Bidoul2022-06-111-1/+1
|
* Record origin url in wheel cacheStéphane Bidoul2022-05-221-0/+25
|
* Reformat the codebase, with blackPradyun Gedam2021-08-201-26/+16
|
* convert type commentsharupy2021-07-241-44/+31
|
* Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-9/+3
| | | | | | | | | | | 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.
* Remove support for legacy cache entriesStéphane Bidoul2021-01-101-47/+0
|
* Remove object from class definitionsJon Dufresne2020-12-251-2/+2
| | | | | Unnecessary since dropping Python 2 support. In Python 3, all classes are new style classes.
* Use short Python3 super() syntaxJon Dufresne2020-12-241-10/+4
|
* Update linter: isortPradyun Gedam2020-09-231-1/+1
|
* Clean up code style changesPradyun Gedam2020-07-171-1/+2
| | | | | | 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-5/+3
|
* Add type annotations to pip._internal.cacheDevesh Kumar Singh2020-07-091-5/+3
|
* Add WheelCache method to inform which cache was usedStéphane Bidoul2020-04-011-2/+32
| | | | Return whether the link was found in the persistent or ephemeral cache.
* Remove unused WheelCache.cleanupChris Hunt2020-02-041-4/+0
|
* Remove no-op calls to WheelCache.cleanupChris Hunt2020-02-041-9/+0
|
* Globally manage EphemWheelCache temp directoryChris Hunt2020-02-041-2/+3
|
* Make ephem-wheel-cache tempdir name globally accessibleChris Hunt2020-02-041-2/+4
|
* Remove redundant expanduser in WheelCacheStéphane Bidoul (ACSONE)2020-01-081-2/+2
| | | | | | Path normalization, which includes expanduser is now done eagerly. Assert this when initializing WheelCache.
* Use packaging.tags.Tag in place of TupleChris Hunt2020-01-071-4/+6
| | | | | | | | | This is the standard type used by packaging.tags. Making this change throughout the code lets us start switching over to using its tag-generating functions in get_supported(). We also get rid of a test, since it was superseded by `__str__` in packaging.tags.Tag.
* Replace get_abbr_impl with interpreter_nameChris Hunt2020-01-061-2/+1
| | | | | | | | This reduces the amount of code we have to manage. interpreter_name is calculated differently, defaulting to the long name of the interpreter rather than "cp", but that is more conformant.
* Replace get_impl_ver with interpreter_versionChris Hunt2020-01-061-1/+2
|
* Simplify handling of cache candidate directoriesStéphane Bidoul (ACSONE)2019-12-161-7/+6
|
* Fix WheelCache.get in presence of legacy cache keysStéphane Bidoul (ACSONE)2019-12-151-12/+15
|
* Use interpreter_name and _version in cache keysStéphane Bidoul (ACSONE)2019-12-021-7/+3
|
* Better support for unicode cache entriesStéphane Bidoul (ACSONE)2019-12-021-8/+4
|
* Use legacy cache entries when they exist.Stéphane Bidoul (ACSONE)2019-12-021-8/+50
| | | | | | | | | Pip 20 changes the cache key format to include the interpreter name. To avoid invalidating all existing caches, we continue using existing cache entries that were computed with the legacy algorithm. This should not regress issue #3025 because wheel cached in such legacy entries should have the python implementation tag set.
* New cache key generation algorithmStéphane Bidoul (ACSONE)2019-12-021-10/+18
| | | | | | Instead of building an URL-ish string that could be complex to describe and reproduce, generate a dictionary that is hashed with a simple algorithm.
* Better workaround for cache poisoning #3025Stéphane Bidoul (ACSONE)2019-12-021-1/+15
| | | | | | | | | | Make sure ``pip wheel`` never outputs pure python wheels with a python implementation tag. Better fix/workaround for `#3025 <https://github.com/pypa/pip/issues/3025>`_ by using a per-implementation wheel cache instead of caching pure python wheels with an implementation tag in their name. Fixes #7296
* Move wheel.Wheel to models.wheel.WheelChris Hunt2019-12-021-1/+2
| | | | | | This aligns more closely with how the class is used and makes it easier to move the rest of the wheel module to a dedicated module for installation.
* Debug logging in case of unexpected wheel name in cacheStéphane Bidoul (ACSONE)2019-11-131-0/+6
|
* Avoid double package name canonicalizationStéphane Bidoul (ACSONE)2019-11-131-6/+5
|
* Simplify SimpleWheelCache.get in case package_name is falsyStéphane Bidoul (ACSONE)2019-11-131-4/+4
|
* Include subdirectory URL fragment in the cache keyStéphane Bidoul (ACSONE)2019-11-121-0/+10
|
* Import FormatControl more directlyPradyun Gedam2019-10-191-1/+1
|
* Move path_to_url() to utils/urls.py (#7075)Pradyun Gedam2019-09-251-1/+1
|\
| * Move path_to_url() to utils/urls.py.Chris Jerdonek2019-09-241-1/+1
| |
* | Unconditionally create TempDirectory.pathChris Hunt2019-09-221-1/+0
|/
* Make tags required in Wheel.support_index_min() and supported().Chris Jerdonek2019-08-101-12/+39
|
* Use mypy's inline configuration syntax for opt-outsPradyun Gedam2019-07-301-0/+3
|
* Import path_to_url() from utils/misc.py instead of download.py.Chris Jerdonek2019-06-031-1/+1
|
* remove #noqa: F401Maxim Kurnikov2019-02-221-2/+2
|
* Add typing to cache.pycytolentino2018-10-301-0/+22
|
* update parametrize test and commentNitesh Sharma2018-09-041-1/+1
|
* refactor format control and rename test functionsNitesh Sharma2018-08-281-1/+1
|
* Refactoring: Move FormatControl to separate classNitesh Sharma2018-08-281-4/+3
| | | | | | | This moves FormatControl named tuple and it's all related methods to separate class. Closes https://github.com/pypa/pip/issues/5592
* Update imports for the moved compat modulePradyun Gedam2018-07-291-1/+1
|
* Move Link to modelsPradyun Gedam2018-06-241-1/+2
|