Commit Graph

9279 Commits

Author SHA1 Message Date
Sumana Harihareswara f116e0c4ff Add docs link to resolver improvement blog post
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-03-27 16:25:45 -04:00
Pradyun Gedam 4e81af49eb
Architecture Documentation: Configuration deep dive
Merge pull request #7858 from pradyunsg/docs/deep-dive-configuration
2020-03-28 01:49:55 +05:30
Paul Moore 904d1c8c0a
Merge pull request #7907 from uranusjr/resolver-refactor-factory
Initial refactoring to decouple candidate and requirement modules
2020-03-27 14:18:41 +00:00
Pradyun Gedam 98f1a9576a
Improve description of Configuration.{load_only,isolated} 2020-03-27 17:19:21 +05:30
Pradyun Gedam ba81cc9bd0
Move Configuration.get_value to earlier section 2020-03-27 17:19:20 +05:30
Pradyun Gedam cb7b3af06f
Put the bracketed text in the correct position 2020-03-27 17:19:20 +05:30
Pradyun Gedam b0687a0aa7
Fix the bullets 2020-03-27 17:19:08 +05:30
Pradyun Gedam eb232dc7a7
Merge pull request #7899 from deveshks/remove-emails-from-authors
Only use names in AUTHORS.txt
2020-03-27 16:53:18 +05:30
Tzu-ping Chung 4ae50f9af7 Remove unused preparer from SpecifierRequirement 2020-03-27 19:00:27 +08:00
Tzu-ping Chung f32beda075 Remove unused provider fixture from argumnet lists 2020-03-27 18:57:53 +08:00
Pradyun Gedam dc185a3eaf
Merge pull request #7905 from uranusjr/resolver-progress
Use set operations in tests for readability
2020-03-27 02:43:01 +05:30
Tzu-ping Chung b1272a98f9 Make factory available in tests as a fixture 2020-03-27 03:53:01 +08:00
Tzu-ping Chung 4fd12fbf56 Fix PipProvider signature in test fixture 2020-03-27 03:34:27 +08:00
Tzu-ping Chung 231ce27829 Delete unused improt and test util
This util function is already broken by previous signature changes to
make_requirement() anyway.
2020-03-27 03:25:43 +08:00
Tzu-ping Chung 07563847b0 Decouple candidate and requirement modules
This introduces a new module "factory" that contains all methods dealing
with producing candidates/requirements from an input
requirement/candidate. This allows both models to know nothing about
each other, and simply rely on the intermediate to produce the other.

I *believe* this also helps us reduce merge conflicts due to adding
arguments to those producer functions, since now we only need to modify
the factory, and exactly one of candidate/requirement.

This is only part of a big scheme--the plan is to also move
Candidate.get_dependencies() and Requirement.find_matches() into the
factory class, so they can avoid holding and passing around finder,
preparer, and make_install_req. This is also necessary to change the
return type of Candidate.get_dependencies() to Requirement without
hard-coupling.
2020-03-27 03:14:51 +08:00
Tzu-ping Chung 79f2553228 Use set operations in tests for readability 2020-03-27 02:39:33 +08:00
Paul Moore c3d86200b0
Merge pull request #7897 from pfmoore/new_resolver_extras
New resolver extras implementation
2020-03-26 16:29:50 +00:00
Paul Moore fea9766fa2 Merge branch 'master' into new_resolver_extras 2020-03-26 15:49:43 +00:00
Paul Moore 4f64052676
Merge pull request #7888 from uranusjr/resolver-progress
Implement ignore_dependencies in new resolver
2020-03-26 15:45:21 +00:00
Paul Moore a68345e81c Warn if invalid extras are given 2020-03-26 14:53:24 +00:00
Paul Moore 7e97cf6426 Ignore invalid extras 2020-03-26 11:57:34 +00:00
Paul Moore 67bf5890ea Document the ExtrasCandidate class 2020-03-26 11:56:46 +00:00
Paul Moore ffb56db5dd Allow candidates to not have an associated install requirement 2020-03-26 11:19:10 +00:00
Paul Moore 33f8722826
Merge pull request #7903 from jwodder/fix-pep-link
Change docs link from PEP 301 to PEP 503
2020-03-26 08:05:21 +00:00
John T. Wodder II c42b5d3716 Change docs link from PEP 301 to PEP 503 2020-03-25 23:57:18 -04:00
Devesh Kumar Singh 30d1870cc7 Only use names in AUTHORS.txt 2020-03-25 23:26:53 +05:30
Tzu-ping Chung 6d3a89c992 Add --no-deps test for the new resolver 2020-03-26 01:48:47 +08:00
Tzu-ping Chung 1a210d1c62 Improve utility to test installed env
Make assert_installed actually check the provided entries against the
pip --list output.

Add assert_not_installed to check for the reverse.
2020-03-26 01:47:22 +08:00
Paul Moore d79aacc61c Forgot to run lint before pushing again :-( 2020-03-25 12:39:21 +00:00
Paul Moore bd0f7fe346 Add an ExtrasCandidate class 2020-03-25 12:27:24 +00:00
Paul Moore 76de49bc24 Make a proper get_install_requirement method for candidates 2020-03-25 12:27:24 +00:00
Paul Moore 653bac26c9 Add a test to validate if extras are respected 2020-03-25 12:27:23 +00:00
Paul Moore 69cc55831d
Merge pull request #7878 from onlinejudge95/bug/7683
Rephrases documentation
2020-03-25 08:02:42 +00:00
onlinejudge95 4d0a55ee6f Address minor comments 2020-03-24 19:32:37 +05:30
onlinejudge95 88e4abd66f Removed news file 2020-03-24 19:27:44 +05:30
Pradyun Gedam 8c95de11cc
Merge pull request #7881 from deveshks/add-what-next-section-to-getting-started
Add a "What Next" section to the Getting Started Guide
2020-03-24 15:58:00 +05:30
Pradyun Gedam 9229de9858
Switch to an API-describing format 2020-03-24 15:43:34 +05:30
Devesh Kumar Singh 145c189a49 Add a What Next page in getting started 2020-03-24 15:12:12 +05:30
Xavier Fernandez d43699b111 Move darwin special config dir to pip wrapper 2020-03-23 19:31:07 +01:00
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