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

9340 commits

Author SHA1 Message Date
Tzu-ping Chung 3cb7a08f0d Implement ignore_dependencies in new resolver
If this flag is set, simply report every candidate has no dependencies.
2020-03-24 02:02:36 +08:00
Tzu-ping Chung 5af542ccac Use named arguments for clarity 2020-03-24 02:00:08 +08:00
Pradyun Gedam 8eb33303fc
Document the two lifecycles of Configuration 2020-03-23 17:47:00 +05:30
Pradyun Gedam 96ea512de1
WIP: Add better overview for configuration deep dive 2020-03-23 17:46:44 +05:30
Pradyun Gedam a83ea610d2
WIP: Add initial draft of configuration deep dive 2020-03-23 17:46:36 +05:30
Tzu-ping Chung ff35f7f26a Remove stale TODO comment 2020-03-23 17:15:55 +08:00
onlinejudge95 4d6a982976 Addresses PR comments 2020-03-21 14:28:34 +05:30
onlinejudge95 adf3dc8572 Fixes linting checks 2020-03-21 13:43:54 +05:30
onlinejudge95 3cadfd2e80 Addresses PR comments 2020-03-21 13:30:26 +05:30
onlinejudge95 c387d8e766 Adds news 2020-03-21 12:52:06 +05:30
onlinejudge95 e42929dcf6 Rephrases documentation 2020-03-21 12:49:15 +05:30
Paul Moore c83505b848 Remove an obsolete comment 2020-03-20 13:57:45 +00:00
Paul Moore f6b5b40549
Merge pull request #7876 from pfmoore/new_resolver_tests
Add some functional tests for the new resolver
2020-03-20 13:54:43 +00:00
Paul Moore 0b1306bbf0 I must remember to run lint locally before pushing :-( 2020-03-20 11:12:38 +00:00
Paul Moore 89f4f16e3e Add some functional tests for the new resolver 2020-03-20 11:00:07 +00:00
Paul Moore 104b6650c8
Merge pull request #7851 from pfmoore/resolvelib_provider
Implement PipProvider
2020-03-19 14:48:02 +00:00
Paul Moore ffe553638c Address review requirements 2020-03-19 10:55:33 +00:00
Paul Moore cec27c747c Added an end-to-end install test of the new resolver 2020-03-18 14:54:29 +00:00
Paul Moore a23e936bc7 Ensure candidate name is canonicalised 2020-03-18 14:54:15 +00:00
Paul Moore f1b4be892a Fix bug in get_dependencies() passing Requirement object rather than string 2020-03-18 14:53:04 +00:00
Paul Moore 1ebe1e0935 Integrate the new provider with --unstable-feature=resolver 2020-03-18 14:49:49 +00:00
Paul Moore 098d00d8c3 Add a test that runs the full resolver 2020-03-18 14:42:20 +00:00
Paul Moore 7d2eb544b5 Implement PipProvider 2020-03-18 14:42:16 +00:00
Pradyun Gedam 9e15cd49f2
Merge pull request #7767 from RDIL/copyright-docs
Added copyright doc
2020-03-18 16:31:24 +05:30
Pradyun Gedam 06a3406a22
Merge pull request #7861 from uranusjr/resolver-implement
Implement resolver methods on provider interface
2020-03-18 03:20:38 +05:30
Tzu-ping Chung dad77a9e4d Better handle root vetices in graph
ResolveLib *should* always produce a graph with only one root vertice,
which is None. But we don't really need to rely on that implementation
detail. Vertices without any parents can be assigned 0 in all cases.
2020-03-15 23:01:58 +08:00
Tzu-ping Chung ffb3692e00 Add simple tests for get_installation_order()
The implementation is improved a bit to make the sorting result more
predictable for easier testing.
2020-03-15 23:01:57 +08:00
Tzu-ping Chung 53775279c4 Fix graph-walking terminal condition
The weight mapping should have size `len(packages) + 1` because it needs
to contain a "sentinel" node (None).
2020-03-15 22:25:26 +08:00
Tzu-ping Chung a3f6c17d36 Implement resolver methods on provider interface
This is using a temporary PipProvider class, which should be replaced by
the actual implementation after it is merged.
2020-03-15 15:25:38 +08:00
Pradyun Gedam e5375afffd
Merge pull request #7857 from pradyunsg/docs/misc-changes
Miscellanous Documentation-related changes
2020-03-14 04:05:05 +05:30
Pradyun Gedam bbd439898b
Better indentation for pip config description 2020-03-14 00:29:41 +05:30
Pradyun Gedam 9351c61b82
Fix typo in package-finding.rst 2020-03-14 00:29:19 +05:30
Pradyun Gedam a8058fe9e9
Speed up nox -s docs 2020-03-14 00:29:04 +05:30
Paul Moore 98b3221fd4
Merge pull request #7850 from uranusjr/resolvelib-vendor
Vendor ResolveLib from Git
2020-03-13 13:44:21 +00:00
Tzu-ping Chung 36065cf2e0 Vendor ResolveLib from Git
We are vendoring from the Git source for now, so the bug fix turnover
can be quicker if there's anything wrong in the resolution logic.

HEAD up-to-date as of 2020-03-12.
2020-03-12 22:37:30 +08:00
Pradyun Gedam 4f6bef6eb4
Merge pull request #7792 from pradyunsg/misc/utils-tags
Rename pep425tags -> utils.compatibility_tags
2020-03-12 14:46:52 +05:30
Paul Moore 10f41571b1
Merge pull request #7843 from pfmoore/resolvelib_requirement
Implement the new resolver's Requirement class
2020-03-11 13:18:21 +00:00
Paul Moore 9b10b93503 Implement the resolvelib Requirement class 2020-03-11 11:37:56 +00:00
Paul Moore f981facb70
Merge pull request #7845 from uranusjr/resolver-flag
Add --unstable-feature=resolver
2020-03-11 11:34:07 +00:00
Tzu-ping Chung fc810d7353 Add --unstable-feature=resolver
This introduces a new general option --unstable-feature that can be used
to opt into "preview" features in pip not enabled by default. Currently
the only available feature is "resolver".

A stub resolver interface (which would fail on invocation) is provided
to respond to the flag.

The --unstable-feature option is hidden from --help since the resolver
does not yet work. This suppression should be removed when we release
the resolver for general/public testing.
2020-03-11 18:51:01 +08:00
Pradyun Gedam e15ef595dd
Merge pull request #7840 from xavfernandez/revert_progress_bar_format_change
cli: revert format() related changes
2020-03-11 01:36:31 +05:30
Xavier Fernandez a096d4cd76 cli: revert format() related changes
Since the progress bar API is % related, it seems simpler to stick with
it.
2020-03-10 13:21:53 +01:00
Pradyun Gedam 4d1932fcdd
Merge pull request #7826 from jaraco/bugfix/6973-format-method
Convert the remaining '%' formatters to '.format'.
2020-03-10 14:58:25 +05:30
Christopher Hunt 4653cde977
Merge pull request #7834 from chrahunt/refactor/simplify-download-copy
Remove pip._internal.operations.prepare._copy_file
2020-03-09 22:50:09 -04:00
Prashant Sharma 115a83698f
fix(tests/lib/path): Remove duplicate resolve method (#7837) 2020-03-09 23:29:27 +01:00
Xavier Fernandez dfd6a163bd
GitHub Actions: update cache key to include interpreter path (#7835)
And make it more portable by using python
2020-03-09 15:17:17 +01:00
Jason R. Coombs 047e249767
Update src/pip/_internal/cli/progress_bars.py
Co-Authored-By: Xavier Fernandez <xav.fernandez@gmail.com>
2020-03-08 18:36:01 -04:00
Jason R. Coombs 9669c0b312
Update src/pip/_internal/cli/progress_bars.py
Co-Authored-By: Xavier Fernandez <xav.fernandez@gmail.com>
2020-03-08 18:35:53 -04:00
Chris Hunt fad99dce4a Inline _copy_file 2020-03-08 18:10:17 -04:00
Chris Hunt cd5d8b7865 Inline unconditional block 2020-03-08 18:10:17 -04:00