Commit Graph

9428 Commits

Author SHA1 Message Date
Ilan Schnell a0fe4112d1 better naming in yaml-files: transaction -> response, install -> state 2020-04-04 14:00:16 -05:00
Paul Moore d7bf2cb84b
Merge pull request #7981 from rngadam/patch-1
Elaborate on type of links supported
2020-04-04 15:56:46 +01:00
Ricky Ng-Adam 45d5b377ab elaborate on type of links supported 2020-04-04 10:22:02 -04:00
Tzu-ping Chung aead201fda No need to think about editable for installed dist 2020-04-04 21:53:04 +08:00
Tzu-ping Chung aaa82cddcc isort 2020-04-04 20:52:39 +08:00
Tzu-ping Chung 05f7dbd0c8 Type hint hacks 2020-04-04 18:15:26 +08:00
Tzu-ping Chung 2430aba879 Implement editable candidate 2020-04-04 17:51:43 +08:00
Pradyun Gedam 73bfea6d28
Merge pull request #7972 from uranusjr/editable
Refactor InstallRequirement-related operations to base class
2020-04-04 04:29:21 +05:30
Tzu-ping Chung 3b06cb6b53 Refactor ireq-related operations to base class 2020-04-03 21:33:16 +08:00
Paul Moore f7c5a69e69
Merge pull request #7970 from pfmoore/sdist_prepare
Avoid preparing candidates when all we need is name or version
2020-04-03 13:59:29 +01:00
Paul Moore d53d3d6b24 Use the name/version from the InstallationCandidate 2020-04-03 11:23:35 +01:00
Paul Moore 037791d170 Add a test demonstrating #7966 2020-04-03 11:18:44 +01:00
Paul Moore 87aaae0e08
Merge pull request #7942 from uranusjr/installed-candidate
New resolver: Installed candidate
2020-04-02 20:04:46 +01:00
Tzu-ping Chung 7511737ee7 AlreadyInstalledCandidate 2020-04-03 01:27:34 +08:00
Tzu-ping Chung f061f3f691 Fetch install dist for a candidate if available
The candidate creation logic is further moved into the factory. The
factory would use pkg_resources.get_distribution() to find a matching
distribution for a givan InstallationCandidate. If found, the Candidate
would be created based on that found distribution, instead of the link.

--ignore-installed is implemented as to always use the link to create
candidates, even if an installed distribution is found.
2020-04-03 00:36:26 +08:00
Paul Moore 6086f71cde
Merge pull request #7960 from uranusjr/requires-python-2
Requires-Python implementation, take 2
2020-04-02 16:26:51 +01:00
Tzu-ping Chung 557f7670ea Typo in comment 2020-04-02 21:44:54 +08:00
Tzu-ping Chung 9ca2240530 More clarification on the name 2020-04-02 21:42:29 +08:00
Paul Moore c88fa395a3
Merge pull request #7884 from uranusjr/new-resolver-ci
Add Travis job against the new resolver
2020-04-02 14:39:02 +01:00
Pradyun Gedam f6457b7bb2
Merge pull request #7954 from pradyunsg/simplify-linting-github-action
Simplify our Linting GitHub Action
2020-04-02 18:16:36 +05:30
Tzu-ping Chung 65ffd338f4 Explain how Requires-Python matching works 2020-04-02 19:02:20 +08:00
Tzu-ping Chung 34c24f6e79 Switch to create_basic_wheel_for_package 2020-04-02 18:40:48 +08:00
Tzu-ping Chung 22f7c883ad Requires-Python support in test helper 2020-04-02 18:38:43 +08:00
Tzu-ping Chung 630339e577 Add new resolver test for Requires-Python 2020-04-02 18:36:08 +08:00
Tzu-ping Chung 190c424b1e Implement Python as a dependency
If a dist contains Requires-Python metadata, it is converted into a
Requirement for the resolver based on whether the Requires-Python
is compatible or not.

If it is compatible, an ExplicitRequirement is returned to hold the
Python information (either sys.version_info, or the user-supplied
--python-version).

If it is incompatible, a special NoMatchRequirement is returned, which
never matches to anything, generating a ResolutionImpossible to report
the Python version incompatibility.

The --ignore-requires-python flag is implemented as to not return a
Requirement for Requires-Python at all.
2020-04-02 18:36:08 +08:00
Paul Moore 2a1f3c22a6
Merge pull request #7910 from uranusjr/resolver-refactor-factory
Second round of resolver refactor factory
2020-04-02 11:27:04 +01:00
Paul Moore ac26f1bc33
Merge pull request #7934 from uranusjr/create_basic_wheel_for_package_improve
Rewrite tests.lib.create_basic_wheel_for_package
2020-04-02 11:25:36 +01:00
Ilan Schnell 3f2129e040 make flake8 happy 2020-04-02 00:34:55 -05:00
Ilan Schnell 4a0dd98534 add ability to run pip with options for yaml tests 2020-04-02 00:09:24 -05:00
Pradyun Gedam 4b159c5420
Merge pull request #7612 from sbidoul/pip609-v2-sbi
Better freeze of distributions installed from direct URL references
2020-04-02 03:42:07 +05:30
Stéphane Bidoul 196706d305
Better freeze using direct_url.json 2020-04-01 22:57:00 +02:00
Stéphane Bidoul a0ed759fb3
Add direct_url support to InstallRequirement
pass it to install_wheel via install
2020-04-01 22:57:00 +02:00
Stéphane Bidoul 94b77130aa
Add WheelCache method to inform which cache was used
Return whether the link was found in the persistent or ephemeral cache.
2020-04-01 22:57:00 +02:00
Stéphane Bidoul f77944733d
Add DirectUrl support to install_wheel 2020-04-01 22:56:59 +02:00
Stéphane Bidoul bd4d52b09c
Add helper to get DirectUrl metadata from Distrribution 2020-04-01 22:56:59 +02:00
Stéphane Bidoul 88582c2564
Add helper to create a DirectUrl from a Link 2020-04-01 22:56:59 +02:00
Stéphane Bidoul 6f689f61db
Add helper to convert DirectUrl to PEP 440 direct reference 2020-04-01 22:56:59 +02:00
Stéphane Bidoul 6b7f4ce81b
Add DirectUrl model, implementing PEP 610 2020-04-01 22:56:59 +02:00
Pradyun Gedam 28389e8338
Simplify our Linting GitHub Action 2020-04-02 01:55:09 +05:30
Tzu-ping Chung 09f4d0004b Use extra_files to write package files instead 2020-04-02 01:25:05 +08:00
Paul Moore 657cf2515b
Merge pull request #7929 from McSinyx/tmp-file
Use better temporary files mechanism
2020-04-01 16:47:30 +01:00
Pradyun Gedam 43f82c27f5
Merge pull request #7938 from deveshks/remove-obsolete-git-urls
Remove VCS urls pertaining to git protocol from docs
2020-04-01 21:05:27 +05:30
Nguyễn Gia Phong 209c74f690 Use better temporary files mechanism 2020-04-01 22:02:34 +07:00
Devesh Kumar Singh 8f0dbec573 Updated clarification on unsafe urls 2020-04-01 19:38:41 +05:30
Devesh Kumar Singh d166adaee5 Merge branch 'master' into remove-obsolete-git-urls 2020-04-01 19:36:31 +05:30
Pradyun Gedam 7b02273f3e
Merge pull request #7927 from deveshks/raise-exception-if-rev-empty-git-url
Raise an exception if revision is empty in git url
2020-04-01 18:17:36 +05:30
Pradyun Gedam 0c30b45ce2
Merge pull request #7947 from pradyunsg/docs/nicer-formatting-vcs-support
Use a code block for denoting directory structure
2020-04-01 18:15:03 +05:30
Tzu-ping Chung d29c86af98 Add method to create requirement from spec 2020-04-01 16:53:39 +08:00
Tzu-ping Chung 32c46403c5 Fix factory fixture for wheel_cache refactoring 2020-04-01 16:00:48 +08:00
Tzu-ping Chung 4491f38047 Return Requirement directly from get_dependencies
This is possible now we have the factory construct.
2020-04-01 15:31:52 +08:00