Tzu-ping Chung
56e065f956
Move dist preparation to its own method
2020-04-09 02:27:37 +08:00
Tzu-ping Chung
a7d17f8da6
Make sure candidates are prepared after resolution
2020-04-08 23:38:10 +08:00
Tzu-ping Chung
be60eaaa4f
Uninstall existing dist before reinstallation
2020-04-08 17:17:25 +08:00
Tzu-ping Chung
90ce7c9edd
Refactor to prepare for upgrade procedures
2020-04-08 17:17:25 +08:00
Tzu-ping Chung
e714b5cf84
Add failing tests for reinstall and upgrade
2020-04-08 17:16:47 +08:00
Tzu-ping Chung
591d476fca
Note on why we don't implement equality
2020-04-08 16:38:47 +08:00
Tzu-ping Chung
018c051a8e
Implement equality on candidate classes
2020-04-08 16:38:47 +08:00
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
Devesh Kumar Singh
fe6920bc2f
Addressed review comments
2020-04-08 13:59:33 +05:30
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
Stéphane Bidoul
030578ef04
Remove unused argument from generate_metadata
2020-04-07 17:01:08 +02:00
Stéphane Bidoul
34adf0a258
Simplify make_setuptools_egg_info_args
2020-04-07 17:01:08 +02:00
Stéphane Bidoul
da2ab6b829
Simplify legacy metadata generation
...
Always generate legacy metadata in a
temporary directory, even in the editable
case. Generating it in the source directory
did not add value, because setup.py develop
always regenerates the .egg-info directory.
2020-04-07 17:01:08 +02: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
a73ad91c8b
Running test_check for pkg_path
2020-04-07 09:06:13 +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
Devesh Kumar Singh
84baf2110f
Fixed issue in test_freeze for failing test
2020-04-06 01:26:33 +05:30
Devesh Kumar Singh
29b4ec79ed
Fixed issue in test_show for failing test
2020-04-06 00:27:30 +05:30
Devesh Kumar Singh
2324ae422e
Add unit tests for pip commands not using cwd
2020-04-05 23:17:03 +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
Stéphane Bidoul
bf8e6bc785
Generate legacy metadata in temporary directory
...
Before it was generated in a pip-egg-info
subdirectory of the source dir. This will avoid
polluting source dir when we build in place.
2020-04-05 11:23:57 +02:00
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
Nikolay Korolev
e454181ba6
Fix coding style
2020-04-04 22:30:57 +03:00
Nikolay Korolev
f8bb362fef
Fix Python 2 compatibility in tests
2020-04-04 22:26:03 +03:00
Nikolay Korolev
3bc3cee5ae
Add logging thread-safety tests
2020-04-04 22:18:12 +03: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