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
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
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
630339e577
Add new resolver test for Requires-Python
2020-04-02 18:36:08 +08: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
Ilan Schnell
83ba23989d
remove extra whitespace
2020-03-31 15:55:16 -05:00
Ilan Schnell
9de02c2b41
better naming of constant
2020-03-31 15:47:43 -05:00
Ilan Schnell
2a8f5705b2
combine yaml test functionality into single module
2020-03-31 15:35:29 -05:00
Pradyun Gedam
57cb941645
Merge pull request #7891 from deveshks/ignore-uninstall-error-if-easy-install-missing
...
Don't fail uninstallation if easy-install.pth doesn't exist
2020-03-30 21:42:38 +05:30
Devesh Kumar Singh
0d2954d726
Add test to ensure egg-link is removed after uninstall
2020-03-30 01:31:08 +05:30
Devesh Kumar Singh
0acfdcd719
Check for uninstalled package after deleting pth file
2020-03-28 11:07:52 +05:30
Devesh Kumar Singh
bcb4009688
Add a test case for missing easy-install.pth fix
2020-03-28 02:14:29 +05:30
Tzu-ping Chung
79f2553228
Use set operations in tests for readability
2020-03-27 02:39:33 +08:00
Paul Moore
fea9766fa2
Merge branch 'master' into new_resolver_extras
2020-03-26 15:49:43 +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
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
653bac26c9
Add a test to validate if extras are respected
2020-03-25 12:27:23 +00:00
Paul Moore
0b1306bbf0
I must remember to run lint locally before pushing :-(
2020-03-20 11:12:38 +00:00
Paul Moore
89f4f16e3e
Add some functional tests for the new resolver
2020-03-20 11:00:07 +00:00
Miro Hrončok
eb070d2372
Avoid a test dependency on a C compiler, skip the test on Windows
2020-03-19 23:50:41 +01:00
Miro Hrončok
98aa09cf88
Prevent infinite recursion with pip wheel with $TMPDIR in $PWD
...
During a build of extension module within `pip wheel` the source directory is
recursively copied in a temporary directory.
See https://github.com/pypa/pip/issues/7555
When the temporary directory is inside the source directory
(for example by setting `TMPDIR=$PWD/tmp`) this caused an infinite recursion
that ended in:
[Errno 36] File name too long
We prevent that buy never copying the target to the target in _copy_source_tree.
Fixes https://github.com/pypa/pip/issues/7872
2020-03-19 18:07:56 +01:00
Paul Moore
cec27c747c
Added an end-to-end install test of the new resolver
2020-03-18 14:54:29 +00:00
Pradyun Gedam
4f6bef6eb4
Merge pull request #7792 from pradyunsg/misc/utils-tags
...
Rename pep425tags -> utils.compatibility_tags
2020-03-12 14:46:52 +05:30