Tzu-ping Chung
d45541c8f3
Skip candidate not providing valid metadata
...
This is done by catching InstallationError from the underlying
distribution preparation logic. There are three cases to catch:
1. Candidates from indexes. These are simply ignored since we can
potentially satisfy the requirement with other candidates.
2. Candidates from URLs with a dist name (PEP 508 or #egg=). A new
UnsatisfiableRequirement class is introduced to represent this; it is
like an ExplicitRequirement without an underlying candidate. As the
name suggests, an instance of this can never be satisfied, and will
cause eventual backtracking.
3. Candidates from URLs without a dist name. This is only possible for
top-level user requirements, and no recourse is possible for them. So
we error out eagerly.
The InstallationError raised during distribution preparation is cached
in the factory, like successfully prepared candidates, since we don't
want to repeatedly try to build a candidate if we already know it'd
fail. Plus pip's preparation logic also does not allow packages to be
built multiple times anyway.
2020-12-12 02:23:32 +08:00
Noah Gorny
8bc9c33b36
tests: Add extra_index_url test case to help redact url
2020-12-02 22:53:43 +02:00
Pradyun Gedam
8b4652efad
Merge pull request #9163 from NoahGorny/redact-url-from-help
...
Redact auth from URL in UpdatingDefaultsHelpFormatter
2020-11-27 09:04:14 +00:00
Noah Gorny
4f8dfcf29d
tests: help: Test that auth is redacted from url in help menu
2020-11-26 15:15:21 +02:00
Pradyun Gedam
258242f177
Remove test for not reinstalling wheels, as requested
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:08 +00:00
Pradyun Gedam
9add1c1f61
Add deprecation warning when reinstalling sdists
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:08 +00:00
Pradyun Gedam
d6e3643fd9
Print a message and don't reinstall wheels
...
Also, adds a test for source distributions being reinstalled.
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:04 +00:00
Pradyun Gedam
bb7fce7209
Ensure we're not mishandling local indexes
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:12:37 +00:00
Pradyun Gedam
ce46a5e36d
Re-install local candidates unconditionally
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:12:08 +00:00
Pradyun Gedam
84382715f0
Merge pull request #9096 from uranusjr/new-resolver-constrainting-extraed
...
Constrainting an extra-ed dependency
2020-11-23 10:57:39 +00:00
Tzu-ping Chung
c3670b36cb
2020 resolver can constrain path/URL to versions
2020-11-23 11:51:14 +08:00
Pradyun Gedam
aa847eaa8a
Merge pull request #9123 from sbidoul/pip-wheel-editable-fix-sbi
2020-11-22 21:32:44 +00:00
Stéphane Bidoul
a24d198c15
Do not download editables while preparing requirements
...
Downloading is done at the end of the download command
just like any other requirement. This is necessary to avoid
archiving editable requirements to a zip file when running
pip wheel.
2020-11-22 21:14:09 +01:00
Tzu-ping Chung
0f6750c98c
Modify old tests to accomodate restriction removal
2020-11-21 22:14:24 +08:00
Tzu-ping Chung
9b3cd280fd
Add failing test
2020-11-21 22:14:24 +08:00
Stéphane Bidoul
11d07016d9
Add failing test for issue 9122
2020-11-12 13:20:45 +01:00
Stéphane Bidoul
9613c887f1
Test download editable
2020-11-12 13:20:44 +01:00
Pradyun Gedam
7be91574d9
Update message displayed on conflicts post-resolution
2020-11-12 06:53:29 +05:30
Tzu-ping Chung
d08b4d99e2
Use packaging.version to check version equality
2020-11-03 16:04:35 +08:00
Xavier Fernandez
9725229888
Add --exclude option to pip freeze and pip list commands
2020-10-30 21:50:59 +01:00
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