Commit Graph

11020 Commits

Author SHA1 Message Date
Tzu-ping Chung bf55229fc6 Use set to dedup package list in error message 2020-11-04 21:29:19 +08:00
Tzu-ping Chung 69a95cf391 Tie-break requirements with package name
This makes the ordering deterministic to improve debugging and user
experience.
2020-11-04 21:23:40 +08:00
Pradyun Gedam 0512785fbe
Merge pull request #9085 from uranusjr/new-resolver-version-comparison-normalize
Use packaging.version to check version equality
2020-11-03 16:14:23 +05:30
Tzu-ping Chung d08b4d99e2 Use packaging.version to check version equality 2020-11-03 16:04:35 +08:00
Pradyun Gedam 5ee7caf92a
Merge pull request #9079 from pradyunsg/release/20.3.beta1 2020-11-01 00:53:14 +05:30
Pradyun Gedam bfbf89d574
Bump for development 2020-10-31 23:33:50 +05:30
Pradyun Gedam 4a4b79afb4
Bump for release 2020-10-31 23:33:50 +05:30
Pradyun Gedam 0d767477cc
Update AUTHORS.txt 2020-10-31 23:33:49 +05:30
Pradyun Gedam 2e11f312d0
Merge pull request #9078 from xavfernandez/cache_find_best_candidate 2020-10-31 23:09:15 +05:30
Xavier Fernandez 5ec275fca2 Cache find_best_candidate results
This is possible because self.make_candidate_evaluator only depends
on:
- the function arguments which are keys to the cache
- self._target_python which never changes during a pip resolution
- self._candidate_prefs which never changes during a pip resolution

On a fresh install, pip install <a package with ~ 100 dependencies>
runs on my machine in:

master (a0e34e9cf7)
=======================

0m33.058s
0m34.105s
0m32.426s

This commit
===========

0m15.860s
0m16.254s
0m15.910s

pip 20.2.4 - legacy resolver
============================

0m15.145s
0m15.040s
0m15.152s
2020-10-31 16:22:59 +01:00
Xavier Fernandez 4dc48da9db utils: make Hashes object hashable 2020-10-31 15:54:54 +01:00
Pradyun Gedam a0e34e9cf7
Merge pull request #9073 from xavfernandez/freeze_list_exclude
Add --exclude option to pip freeze and pip list commands
2020-10-31 15:25:53 +05:30
Pradyun Gedam 333c9e5248
Merge pull request #9074 from xavfernandez/update_vendoring_documentation
Explicitly state that pip/_vendor/vendor.txt should be available
2020-10-31 14:49:44 +05:30
Pradyun Gedam 90dac0d829
Merge pull request #9075 from pradyunsg/move-logging-of-resolver-warning
Change where the 2020 resolver warning is logged
2020-10-31 14:48:42 +05:30
Pradyun Gedam 24621f7336
Merge pull request #9076 from xavfernandez/fix_test_install_distribution_union_with_versions
resolver: stabilize output for tests (& users)
2020-10-31 14:47:10 +05:30
Xavier Fernandez fad456a165 resolver: stabilize output for tests (& users)
Otherwise the test_install_distribution_union_with_versions test can end
up with either:

    Cannot install localextras[bar] 0.0.2 and localextras[baz] 0.0.1 because these package versions have conflicting dependencies.

or

    Cannot install localextras[baz] 0.0.2 and localextras[bar] 0.0.1 because these package versions have conflicting dependencies.
2020-10-31 00:07:34 +01:00
Pradyun Gedam aae52d79b9
Change where the 2020 resolver warning is logged 2020-10-31 03:27:09 +05:30
Xavier Fernandez 4ba4e21419 Explicitly state that pip/_vendor/vendor.txt should be available 2020-10-30 22:33:40 +01: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 16c3205184
Add a better error message for no-more-responses 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 47c8d38bd9
📰 2020-10-30 23:08:51 +05:30
Pradyun Gedam 4026739096
Bye bye experimental tests 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
Pradyun Gedam 0d8acc9000
Flip the switch in the new resolver
- Python 2 doesn't get the new shiny thing.
- Passing --use-deprecated=legacy-resolver uses the deprecated legacy
  resolver.
- Passing --use-feature=2020-resolver is now a no-op, that prints a
  warning that it's going to be removed.
- Using fast-deps without the new resolver will cause a warning to be
  printed.
2020-10-30 23:07:55 +05:30
Pradyun Gedam 9a62dd87d8
Merge pull request #9070 from xavfernandez/deprecate_find_links 2020-10-30 23:05:21 +05:30
Pradyun Gedam 75efc997cd
Merge pull request #9072 from NoahGorny/ignore-sublime-text-config-files 2020-10-30 23:04:40 +05:30
Xavier Fernandez c33cf49381 freeze: deprecate option --find-links 2020-10-30 13:41:27 +01:00
Bernard 00f3d57131 Final heading edit. 2020-10-30 12:35:52 +01:00
Noah Gorny e7237c6e84 Update gitignore to ignore sublime text config files 2020-10-30 13:34:11 +02:00
Bernard 29d1f4506e Adding link to Constraints Files 2020-10-30 12:31:01 +01:00
Paul Moore 58d8c2dcc7
Merge pull request #9015 from McSinyx/travis39
Test against Python 3.9 on Travis CI
2020-10-30 09:51:49 +00:00
Pradyun Gedam 6859de08d9
Get the resolver name directly from test CLI 2020-10-30 07:16:25 +05:30
Pradyun Gedam 07ec3013f0
Drop custom logic for new_resolver tests 2020-10-30 07:16:19 +05:30
Pradyun Gedam 2d91950cad
Allow passing legacy-resolver from CLI 2020-10-30 07:16:19 +05:30
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 d012c7d4af
Add a warning to fast-deps with legacy resolver 2020-10-30 07:12:36 +05:30
Pradyun Gedam 385077a944
Factor out logic for determining resolver to use 2020-10-30 07:11:54 +05:30
Pradyun Gedam 8ae1bd607e
Merge pull request #9065 from pradyunsg/add-debugging-reporter
Add a debugging reporter for pip's resolver
2020-10-30 05:17:26 +05:30
Pradyun Gedam 8daece5277
Merge pull request #9056 from brainwane/docs-migration-guide-details
Improve migration guide re: new resolver
2020-10-29 23:47:53 +05:30
Sumana Harihareswara 3f4e15aef0 docs: Emphasize that pip may break existing packages
Related to #7744 .
2020-10-29 13:51:29 -04:00
Sumana Harihareswara fbcdeca91a Clarify constraints overhaul in user guide
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2020-10-29 13:49:08 -04:00
Sumana Harihareswara 395e1ae8e8 Add detail to docs on constraints changes with new resolver
Related to #8307, #8115.
2020-10-29 13:49:08 -04:00
Sumana Harihareswara 27b100e8d1 Explain resolver changes affecting constraints files
Related to #8792, #8076, #9020.
2020-10-29 13:49:08 -04:00