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

1250 commits

Author SHA1 Message Date
Pradyun Gedam
cdc5422ed5
Merge pull request #9019 from pradyunsg/flip-the-switch-on-new-resolver 2020-10-31 00:36:32 +05:30
Pradyun Gedam
64ff484c76
Skip tests that fail on Python 2 2020-10-30 23:09:00 +05:30
Pradyun Gedam
8a5656f7b1
Fix a flaky test 2020-10-30 23:08:59 +05:30
Pradyun Gedam
a56fefc764
Add debugging information to CI 2020-10-30 23:08:59 +05:30
Pradyun Gedam
53db14b188
Mark test about install order as an xfail 2020-10-30 23:08:51 +05:30
Pradyun Gedam
ec9bb10922
Update YAML tests for resolver changes 2020-10-30 23:08:47 +05:30
Pradyun Gedam
6f26fb9fee
Update tests for resolver changes 2020-10-30 23:08:31 +05:30
Xavier Fernandez
c33cf49381 freeze: deprecate option --find-links 2020-10-30 13:41:27 +01:00
Pradyun Gedam
5cba61e118
Switch to resolver variants in the test suite 2020-10-30 07:16:19 +05:30
Pradyun Gedam
6028e6a0fb
Change how we skip a failing test 2020-10-30 07:16:19 +05:30
Pradyun Gedam
00e531a16e
Merge pull request #9017 from pradyunsg/backtracking-messaging 2020-10-28 18:25:29 +05:30
Daniel Katz
7237bd3397 Respond to feedback, and add functional tests. 2020-10-27 19:00:22 -04:00
Pradyun Gedam
9a5441c331
Merge pull request #9049 from pfmoore/remove_build_dir 2020-10-27 22:41:47 +05:30
Pradyun Gedam
f2852cd775
Merge pull request #8991 from asottile/dead_code
delete some dead test code (VERBOSE_FALSE)
2020-10-27 21:45:20 +05:30
Paul Moore
52e1c9a39c Not clear why this didn't fail before... 2020-10-27 15:49:38 +00:00
Paul Moore
0c2a2bc803 Mark a couple of tests that still use --build as xfail 2020-10-27 15:24:36 +00:00
Paul Moore
7c4c5b8330 Remove test_pip_wheel_fail_cause_of_previous_build_dir as it's no longer valid 2020-10-27 15:24:36 +00:00
Pradyun Gedam
f3307a5103
Present a message upon first backtrack 2020-10-27 19:32:36 +05:30
Pradyun Gedam
95171c881f
Display messages when backtracking on a package 2020-10-27 19:32:35 +05:30
Pradyun Gedam
abb3d0fae3
Move build_env tests to functional
These tests use the script fixture which as a 30s setup time on my
machine. This KILLS productivity when trying to run unit tests as part
of a feedback loop during development.
2020-10-25 23:32:26 +05:30
Tzu-ping Chung
d22775819b Test for candidate ordering 2020-10-13 16:12:11 +08:00
Anthony Sottile
336e979894 delete some dead test code (VERBOSE_FALSE)
was just browsing through some files and noticed this
2020-10-12 16:05:05 -07:00
Pradyun Gedam
8aab76c63f
Merge pull request #8910 from hugovk/pip-cache-http
Include http subdirectory in 'pip cache info' and 'pip cache purge'
2020-10-02 13:26:00 +05:30
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
Pradyun Gedam
58c594c06b
Prepare isort for black 2020-09-23 21:47:47 +05:30
Pradyun Gedam
25ab172b55
Update linter: isort 2020-09-23 19:52:28 +05:30
Pradyun Gedam
e61bb616ef
Merge pull request #8839 from uranusjr/new-resolver-hash-intersect 2020-09-17 10:58:44 +05:30
Tzu-ping Chung
179ccbe6f5 Add tests for empty hash intersection 2020-09-11 15:01:50 +08:00
Devesh Kumar Singh
9450f8837a Use format options for abspath 2020-09-11 09:23:51 +05:30
Devesh Kumar Singh
d22becc073 Add unit tests for --abspath flag 2020-09-11 09:23:51 +05:30
Tzu-ping Chung
753ad4d230 F Python 2 2020-09-03 17:35:22 +08:00
Tzu-ping Chung
dfaa111004 Pull in hashes from constraint files 2020-09-03 17:26:52 +08:00
Tzu-ping Chung
700eb7734f Hashes from lines should intersect, not union 2020-09-03 17:19:01 +08:00
Pradyun Gedam
567630b4b8
Merge pull request #8758 from uranusjr/new-resolver-requires-python-when-no-deps 2020-09-02 20:09:32 +05:30
Pradyun Gedam
a99190459e
Merge pull request #8817 from sbidoul/improve-git-checkout 2020-09-01 18:40:51 +05:30
Stéphane Bidoul
eff32df28a
Add spacing in test
Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2020-08-30 18:15:35 +02:00
Stéphane Bidoul
1c61b4679f
Add failing test fetching a git commit in refs 2020-08-30 11:47:13 +02:00
Tzu-ping Chung
8b2b92485c Include Requires-Python dep even with --no-deps 2020-08-26 09:49:25 +08:00
c84ef7a67c Mark tests using remote svn and hg as xfail
The source repositories for testing is no longer available.
2020-08-24 09:43:50 +07:00
14397418d1 Test hash checking for fast-deps 2020-08-17 20:46:39 +07:00
46b938349a Allow py2 deprecation warning from setuptools 2020-08-14 17:56:15 +07:00
Tzu-ping Chung
312d1d0473 Add failing test for constraints with markers 2020-08-07 13:43:49 +08:00
709ad37b2f
Make assertion failure give better message (#8692) 2020-08-06 15:40:13 +05:30
Pradyun Gedam
7e6ff08aae
Merge pull request #8656 from chrahunt/gracefully-handle-bad-data-paths
Trace a better error message on installation failure due to invalid .data files in wheels
2020-08-02 19:55:40 +05:30
Pradyun Gedam
e51a027964
Merge pull request #8659 from uranusjr/fix-get-distribution-dot-in-name
Canonicalize name in check_if_exists
2020-08-02 07:44:24 +05:30
0ef877339a Make assertions independent of log prefixes 2020-08-01 20:26:44 +07:00
Tzu-ping Chung
1fd5098b24 Canonicalize name in check_if_exists
The previous implementation uses pkg_resources.get_distribution(), which
does not canonicalize the package name correctly, and fails when
combined with pip's own get_distribution(), which does canonicalize
names. This makes InstallRequirement.check_if_exists() only use pip's
own canonicalization logic so different package name forms are matched
as expected.
2020-07-30 22:04:51 +08:00
Chris Hunt
3f9b326c11 Provide a reasonable error on invalid scheme keys
Originally we would throw an `AttributeError` if a bad scheme key was
used. After refactoring we would throw a `KeyError`, which isn't much
better. Now we call out the wheel being processed, scheme key we didn't
recognize, and provide a list of the valid scheme keys. This would
likely be useful for people developing/testing the wheel.
2020-07-29 22:24:09 -04:00
Chris Hunt
864f0e0efa Explicitly handle incorrect .data paths during wheel install
Previously our wheel installation process allowed wheels which contained
non-conforming contents in a contained .data directory.

After the refactoring to enable direct-from-wheel installation, pip
throws an exception when encountering these wheels, but does not include
any helpful information to pinpoint the cause.

Now if we encounter such a wheel, we trace an error that includes the
name of the requirement we're trying to install, the path to the wheel
file, the path we didn't understand, and a hint about what we expect.
2020-07-29 18:12:16 -04:00