Pradyun Gedam
81f1054865
Merge pull request #7873 from hroncok/no_copy_self
...
Prevent infinite recursion with pip wheel with $TMPDIR in $PWD
2020-04-10 18:56:31 +05:30
Pradyun Gedam
9360793a6c
Merge pull request #7987 from deveshks/add-tests-for-pip-cmds-ignoring-cwd
...
Add unit tests for pip commands not using cwd
2020-04-10 14:29:06 +05:30
Paul Moore
c7bde5bf88
Merge pull request #7990 from uranusjr/resolver-installed-2
...
New Resolver: Correctly uninstall existing distribution before installing
2020-04-09 20:58:17 +01:00
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
Tzu-ping Chung
be60eaaa4f
Uninstall existing dist before reinstallation
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
Devesh Kumar Singh
fe6920bc2f
Addressed review comments
2020-04-08 13:59:33 +05:30
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
Nguyễn Gia Phong
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
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
Ilan Schnell
2b883d5d8a
add ability to test uninstall - and simple uninstall test
2020-04-05 00:05:43 -05:00
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
Tzu-ping Chung
aaa82cddcc
isort
2020-04-04 20:52:39 +08:00
Tzu-ping Chung
2430aba879
Implement editable candidate
2020-04-04 17:51:43 +08:00
Paul Moore
037791d170
Add a test demonstrating #7966
2020-04-03 11:18:44 +01: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
Tzu-ping Chung
557f7670ea
Typo in comment
2020-04-02 21:44:54 +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
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
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
Nguyễn Gia Phong
209c74f690
Use better temporary files mechanism
2020-04-01 22:02:34 +07:00
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
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
Ilan Schnell
83ba23989d
remove extra whitespace
2020-03-31 15:55:16 -05:00