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

9400 commits

Author SHA1 Message Date
Pradyun Gedam
c8e4afac57
Merge pull request #7977 from deveshks/add-mypy-annotations-commands
Added type annotations to pip._internal.commands.check
2020-04-09 17:15:59 +05:30
Pradyun Gedam
ea1295b720
Merge pull request #7965 from deveshks/warn-on-invalid-index-url
Warn if an invalid URL is passed with --index-url
2020-04-09 17:15:47 +05:30
Xavier Fernandez
ea9cb06c49
Merge pull request #7988 from McSinyx/tabulate
Fix tabulate col size in case of empty cell
2020-04-09 13:35:16 +02:00
Pradyun Gedam
c110953703
Merge pull request #7958 from ilanschnell/add-yaml-options
Add ability to run pip with options for yaml tests
2020-04-09 10:20:37 +05:30
Xavier Fernandez
327a31536f
Merge pull request #7729 from cosmicexplorer/cache-parse-links
Cache parse_links() by --find-links html page url
2020-04-08 10:33:24 +02:00
Paul Moore
bd912cf0de
Merge pull request #7993 from uranusjr/new-resolver-normal-test-progress
Canonicalise project name from InstallationCandidate
2020-04-08 09:12:50 +01:00
Danny McClanahan
6e7b16cec4
add failing test ; apply the fix ; add template NEWS entry
add failing test

apply the fix

add template NEWS entry according to https://pip.pypa.io/en/latest/development/contributing/#news-entries (wrong PR #)

rename news entry to the current PR #

respond to review comments

fix test failures

fix tests by adding uuid salt in urls

cache html page fetching by link

make CI pass (?)

make the types much better

finally listen to the maintainer and cache parse_links() by url :)

avoid caching parse_links() when the url is an index url

cleanup

add testing for uncachable marking

only conditionally vendor _lru_cache for py2

bugfix => feature

python 2 does not cache!

Do away with type: ignore with getattr()

respond to review comments
2020-04-07 12:01:43 -07:00
Paul Moore
451f5d9f37
Merge pull request #7994 from uranusjr/new-resolver-model-repr
Add __repr__ to requirement/candidate models
2020-04-07 14:42:47 +01:00
Tzu-ping Chung
6d40804b12 Add __repr__ to requirement/candidate models 2020-04-07 20:53:25 +08:00
Tzu-ping Chung
b89e1c2fb4 Canonicalize InstallationCandidate name
Caught by test_single_download_from_requirements_file etc.
2020-04-07 19:05:26 +08:00
Tzu-ping Chung
2f36ac7587 Add assertion message for easier debugging 2020-04-07 19:02:17 +08:00
26b76f6f11 Move tabulate to utils.misc and test it 2020-04-07 17:35:47 +07:00
Devesh Kumar Singh
efd6dd28d0 Address review comments 2020-04-07 09:44:36 +05:30
Devesh Kumar Singh
ac65f136fd Add tests to verify --index-url behaviour 2020-04-06 20:19:11 +05:30
Paul Moore
2b3d0a5cc0
Merge pull request #7983 from uranusjr/install-req-editable-type-fix
Accept InstallRequirement as comes_from
2020-04-06 14:48:26 +01:00
c2aa573107 Fix tabulate col size in case of empty cell
Previously, the size is no less than len(str(None)) == 4.
This commit also add type hint and docstring to the function.
2020-04-06 17:56:49 +07:00
Devesh Kumar Singh
4c70c6d350 Warn if an invalid URL is passed with --index-url 2020-04-06 10:57:50 +05:30
Pradyun Gedam
eb865b4e10
Merge pull request #7955 from deveshks/pip-list-not-contain-pkg-work-dir
Don't list packages in current directory
2020-04-05 21:13:14 +05:30
Devesh Kumar Singh
feac595446 Don't use cwd in python -m pip command 2020-04-05 19:59:05 +05:30
Ilan Schnell
2b883d5d8a add ability to test uninstall - and simple uninstall test 2020-04-05 00:05:43 -05:00
Tzu-ping Chung
74c5042052 Accept InsatllRequirement as comes_from 2020-04-05 12:17:25 +08:00
Paul Moore
d9b3a7cc32
Merge pull request #7979 from uranusjr/editable
Implement editable candidate
2020-04-04 23:22:55 +01:00
Devesh Kumar Singh
c2fdf4a35b Add mypy annotations to pip._internal.commands.check 2020-04-05 01:56:05 +05:30
Ilan Schnell
0c3bc448e1 always check for files in site-packages - add simple test for installing twice 2020-04-04 14:33:28 -05:00
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