Commit Graph

9962 Commits

Author SHA1 Message Date
Ilan Schnell 17103e8d1a add new test example mentioned in issue #988 2020-04-25 00:07:57 -05:00
Ilan Schnell f8fa3f8c4f add comment 2020-04-24 23:11:35 -05:00
Ilan Schnell da99c14790 add test contructed from blog post, see notes within file 2020-04-24 23:09:42 -05:00
Pradyun Gedam 6a7bf94776
Merge pull request #8124 from NoahGorny/abort-cache-when-no-cache-dir 2020-04-25 04:30:55 +05:30
Pradyun Gedam 58e2057f1a
Optimize "in path" lookups
O(n) list lookups to O(1) set lookups
2020-04-25 04:20:20 +05:30
Pradyun Gedam ea52559cf8
Add tests for get_topological_weights 2020-04-25 04:09:28 +05:30
Pradyun Gedam 9ae99b6d2b
Factor out test logic for graph generation 2020-04-25 04:09:28 +05:30
Pradyun Gedam ebc0e33378
Amend tests, by fixing typos 2020-04-25 04:09:28 +05:30
Pradyun Gedam d236004138
Rewrite `get_topological_weights` to allow cycles
We take the length for the longest path to any node from root, ignoring
any paths that contain any node twice (i.e. cycles).
2020-04-25 04:09:14 +05:30
Tzu-ping Chung 367e6617bd Move yanked message unit tests to use resolver 2020-04-25 03:53:53 +08:00
Tzu-ping Chung 806067f09f Move yanked link warning into the legacy resolver 2020-04-25 02:28:43 +08:00
Tzu-ping Chung f35f37ef72 Add find_requirement() wrapper in legacy resolver 2020-04-25 02:28:43 +08:00
Paul Moore bdf56a0303 Fix really, really dumb mistake 2020-04-24 17:52:51 +01:00
Paul Moore 2a66ad1e2d Add an assertion to ensure we don't reuse the factory 2020-04-24 16:44:02 +01:00
Pradyun Gedam e6853336fe
Revert "Drop code for nicer diffs later"
This reverts commit f927f9ae39.
2020-04-24 19:57:58 +05:30
Paul Moore 7a54b2b3a8 Use is_direct rather than an explicit root parameter 2020-04-24 14:30:34 +01:00
Paul Moore 04bf571521 Ensure root requirement name is canonicalised 2020-04-24 14:30:34 +01:00
Pradyun Gedam 746f47cc3a
Factor out logic for getting weights 2020-04-24 17:27:40 +05:30
Tzu-ping Chung e03614fe6d Use req to populate candidate line instead of link
This ensures a candidate built from a "found" link (from e.g. index) is
categorized as specifier-based, not URL-based. This is important to
avoid a specifier-based candidate to be 'pip freeze'-ed in the direct
URL form due to PEP 610 (direct-url.json).
2020-04-24 19:14:00 +08:00
Paul Moore df3b440f7b Fix the factory fixture to supply the new upgrade_strategy argument 2020-04-24 12:03:29 +01:00
Noah Gorny 8c28b8173a tests: commands: cache: Add no-cache-dir test case 2020-04-24 13:08:59 +03:00
Paul Moore d605530b44 Implement upgrade strategies for the new resolver 2020-04-24 11:08:06 +01:00
Noah Gorny e212f66575 commands: cache: Abort early if cache is disabled 2020-04-24 12:57:13 +03:00
Ilan Schnell 08aecfb41c add test for https://github.com/python-poetry/poetry/issues/2298 2020-04-23 22:40:53 -05:00
Ilan Schnell 3ba506fd53 update work on yaml readme 2020-04-22 23:05:51 -05:00
Pradyun Gedam f927f9ae39
Drop code for nicer diffs later 2020-04-23 07:04:28 +05:30
Pradyun Gedam 3fe1eab593
Reword get_installation_order docstring 2020-04-23 07:02:53 +05:30
Ilan Schnell 8780a80c4d make flake8 happy 2020-04-22 18:23:24 -05:00
Ilan Schnell 1d1b7a674e simplify assertion for valid skip values 2020-04-22 17:57:20 -05:00
Ilan Schnell 05babbcb68 improve test name 2020-04-22 17:50:01 -05:00
Ilan Schnell 5af919c475 yaml test extras-2 passws with new resolver 2020-04-22 17:45:08 -05:00
Ilan Schnell 9ef15bc012 run tests with old and new resolver, and add ability to skip for either 2020-04-22 17:33:12 -05:00
Ilan Schnell 769ac3e59e Merge branch 'master' into test_skip 2020-04-22 15:27:08 -05:00
Ilan Schnell 07845f8c97 move yaml test files up one level 2020-04-22 15:23:35 -05:00
Ilan Schnell 2daedca9c4 add new_resolver option to handle_request() 2020-04-22 15:20:59 -05:00
Pradyun Gedam daff81124a
Merge pull request #8087 from pradyunsg/document-python-2-drop-date 2020-04-23 00:43:26 +05:30
Devesh Kumar Singh e84699fe0e Remove appveyor CI references from docs 2020-04-23 00:33:28 +05:30
Pradyun Gedam c244314318
Merge pull request #8106 from brainwane/resolver-testing-documentation 2020-04-23 00:29:50 +05:30
Pradyun Gedam f4d3cbce4c
Merge pull request #8107 from brainwane/polish-contributor-docs 2020-04-23 00:22:18 +05:30
Pradyun Gedam c06fb5e69e
Merge pull request #8101 from pradyunsg/automated-releases-3 2020-04-22 22:16:29 +05:30
Pradyun Gedam 8e6ec9f5c1
Merge pull request #8108 from stefanor/vendored-certifi
Mark certifi as bundled, it's used in the debug command
2020-04-22 02:58:17 +05:30
Stefano Rivera 7fb9a9dbc5 Mark certifi as bundled, it's used in the debug command 2020-04-21 09:07:50 -07:00
Sumana Harihareswara 2cdde76954 Slightly polish contributor documentation
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-04-21 11:20:42 -04:00
Sumana Harihareswara b56de93bc9 Add resolver testing doc link
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-04-21 11:07:21 -04:00
Pradyun Gedam c46e16794d
Include month and year for pip 21.0
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-04-21 08:22:47 +05:30
Pradyun Gedam 4d42b89713
Fix copying distribution files from checkout 2020-04-21 07:49:09 +05:30
Pradyun Gedam 814c54f5d7
Merge pull request #8100 from pradyunsg/release/20.1b1 2020-04-21 07:22:04 +05:30
Pradyun Gedam 4502aba799
Bump for development 2020-04-21 00:31:45 +05:30
Pradyun Gedam 1626bb917b
Bump for release 2020-04-21 00:31:45 +05:30
Pradyun Gedam 012f69ecbd
Update AUTHORS.txt 2020-04-21 00:31:40 +05:30