1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

8575 commits

Author SHA1 Message Date
Stéphane Bidoul (ACSONE) e3c1ca137f
Update news/7296.removal
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2019-12-02 12:10:12 +01:00
Stéphane Bidoul (ACSONE) ab0593659d
Use interpreter_name and _version in cache keys 2019-12-02 12:10:12 +01:00
Stéphane Bidoul (ACSONE) 824dca1060
Better support for unicode cache entries 2019-12-02 12:07:19 +01:00
Stéphane Bidoul (ACSONE) bfb7db2f68
Advertise the new cache structure in a news file 2019-12-02 12:07:19 +01:00
Stéphane Bidoul (ACSONE) 66ba51ca7d
Use legacy cache entries when they exist.
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.
2019-12-02 12:07:19 +01:00
Stéphane Bidoul (ACSONE) c4ef6163e5
New cache key generation algorithm
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.
2019-12-02 12:07:19 +01:00
Stéphane Bidoul (ACSONE) e0165e7b30
Remove unused wheel_builder python_tag argument 2019-12-02 12:07:18 +01:00
Stéphane Bidoul (ACSONE) b14b37545a
Remove unused pep425tags.implementation_tag 2019-12-02 12:07:18 +01:00
Stéphane Bidoul (ACSONE) 178cd3f244
Better workaround for cache poisoning #3025
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
2019-12-02 12:07:18 +01:00
Chris Hunt b8c16a0dc8 Move Wheel tests 2019-12-02 11:52:51 +08:00
Chris Hunt 60f6ed9387 Move wheel.Wheel to models.wheel.Wheel
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.
2019-12-02 11:52:51 +08:00
Chris Hunt bf26185d55 Import Wheel in tests directly 2019-12-02 11:52:51 +08:00
Chris Hunt 1abf978e88 Move format_tag to pep425tags
This is a more appropriate place for the function, since it is more
related to tags than wheels, and will make it easier to refactor Wheel
into its own module.
2019-12-02 11:52:51 +08:00
Chris Hunt ccc231e4de Remove old TODO in wheel.Wheel
Moving installation into this class would add complexity but only to
service a single caller (InstallRequirement). Better to keep the Wheel
representation, which is used in several places, small and focused and
installation can be moved to its own module.
2019-12-02 11:52:51 +08:00
Christopher Hunt 59289f58f8
Merge pull request #7371 from chrahunt/removal/deprecate-location-options
Deprecate location-related options in --install-option
2019-12-01 07:30:59 +08:00
Chris Hunt b8f626ace6 Deprecate install-location-related options in --install-option 2019-11-30 17:42:48 -05:00
Chris Hunt 55a943e556 Add distutils args helpers
The utils.distutils_args.parse_args function can recognize distutils
arguments so we can deprecate their usage.
2019-11-30 17:39:56 -05:00
Christopher Hunt e13c1f1e8f
Minimize scope of try block (#7415)
This more clearly separates the flow control in the function, which will
make refactoring easier.
2019-12-01 05:39:57 +08:00
BorisZZZ 4659fe16bd #6426 Cannot install packages on Docker in Ubuntu in WSL (Windows). (#6427) 2019-11-28 12:05:17 +08:00
Pradyun Gedam 2c9ee4ad04
Merge pull request #7405 from chrahunt/maint/refactor-install-req-dirs
Remove dead code related to InstallRequirement build directories
2019-11-28 01:43:43 +05:30
Christopher Hunt 68c847f70d
Merge pull request #7221 from hugovk/add-3.8-travis-ci
Travis CI: Test Python 3.8
2019-11-27 11:25:10 +08:00
Chris Hunt 8ab7d239fa Use pip 19.3.1+ for vendoring task 2019-11-26 21:36:40 -05:00
Chris Hunt dbd80ec2c0 Remove unused code related to moving build directory 2019-11-26 18:47:12 -05:00
Chris Hunt 99c7598eb9 Remove dead code from move_to_correct_build_directory 2019-11-26 18:41:25 -05:00
Chris Hunt 9886e8dea1 Assert that we aren't using most of "move_to_correct_build_directory"
Since self._ideal_build_dir is only either None or a string, we must
have always been returning from this function.

This goes back to pip 10.0.0, so this code has been dead for some time.
2019-11-26 18:39:19 -05:00
Hugo van Kemenade 229981192d
Merge branch 'master' into add-3.8-travis-ci 2019-11-26 08:13:47 +02:00
Christopher Hunt 5ba702894a
Remove old workaround for Debian Python patch (#7401) 2019-11-26 11:58:46 +08:00
Xavier Fernandez db1a2754bb Fix logging of cached response
Cached responses often (always ?) provide a length meaning they were
never logged as such.
2019-11-25 23:15:00 +01:00
Paul Moore 4f6a965f14
Merge pull request #7394 from takluyver/i6599
Fix building packages with backend-path in pyproject.toml
2019-11-25 21:40:33 +00:00
Xavier Fernandez 95576102c5
Tweak format_size utility function to include a space (#7399) 2019-11-25 22:09:10 +01:00
Albert Tugushev 83a9a12f96 Cache pre-commit in GitHib Actions (#7400)
See https://pre-commit.com/#github-actions-example
2019-11-25 22:02:53 +01:00
Xavier Fernandez 8114003e62 Add basic tests for format_size 2019-11-25 14:53:23 +01:00
Christopher Hunt b3aced9617
Merge pull request #7395 from chrahunt/tests/fix-setuptools-unexpected-warning
Ignore WARNING emitted by setuptools during test
2019-11-24 07:36:46 +08:00
Chris Hunt 8d38b37052 Ignore WARNING emitted by setuptools during test 2019-11-23 16:17:35 -05:00
Thomas Kluyver 59550aaec3 Add an integration test of installing a project with a local PEP 517 backend 2019-11-23 18:45:09 +00:00
Thomas Kluyver 400cf8d71e Add a test combining local PEP 517 backend with external dependency 2019-11-23 16:57:24 +00:00
Thomas Kluyver edc525add9 Remove leftover debugging code 2019-11-23 16:53:01 +00:00
Thomas Kluyver 81f6ba3fc1 Default None instead of [] 2019-11-23 16:52:24 +00:00
Thomas Kluyver da0ff0db76 Capital S in BuildSystemDetails 2019-11-23 16:46:40 +00:00
Thomas Kluyver 6f55872bf3 Convert tuple return type to a named tuple 2019-11-23 15:29:30 +00:00
Thomas Kluyver dd7b1ee5c3 Fix building packages with backend-path in pyproject.toml
Closes gh-6599
2019-11-23 14:38:27 +00:00
Christopher Hunt 3ff2513537
Merge pull request #7384 from chrahunt/refactor/cleanup-prepare-3
Cleanup operations.prepare more
2019-11-22 20:52:33 +08:00
Christopher Hunt 81f05720b2
Merge pull request #7374 from chrahunt/maint/use-server-fixture-not-internet
Use server fixture for network test
2019-11-22 08:32:47 +08:00
Chris Hunt 59f22068d4 Move Downloader construction to RequirementPreparer.__init__
Just one step away from pulling this out of operations.prepare
altogether.
2019-11-21 19:11:46 -05:00
Chris Hunt 3c8be92c32 Move Downloader out of unpack_url
This simplifies the work done in the operations.prepare helper functions
and also opens up the door to remove session and progress_bar from
RequirementPreparer itself.
2019-11-21 19:11:46 -05:00
Chris Hunt 19806574e5 Move Downloader out of unpack_http_url
Reduces scope of session and progress_bar.
2019-11-21 19:11:46 -05:00
Chris Hunt 4be0a5445a Move Downloader up out of _download_http_url
Reduces exposure of session and progress_bar.
2019-11-21 19:11:46 -05:00
Chris Hunt 3ce317890e Introduce Downloader for progress-showing downloads 2019-11-21 19:05:42 -05:00
Chris Hunt e4d2d34fe1 Represent download as its own type
This abstraction will let us hide details about the actual downloading
and display of progress from most of operations.prepare.
2019-11-21 19:04:28 -05:00
Pradyun Gedam a25bdab31a
Improve a NEWS fragment (#7389) 2019-11-21 12:01:47 +05:30