Pradyun Gedam
688e488376
Merge pull request #8306 from pfmoore/nr_double_install
2020-05-23 05:34:13 +05:30
Paul Moore
c5e2cfc3f7
Give up on trying to be clever
2020-05-22 16:15:24 +01:00
Paul Moore
7fa571e076
Fix test_double_install_fail for new resolver
2020-05-22 16:07:29 +01:00
Paul Moore
48334aeb80
New resolver not raising DistributionNotFound
2020-05-22 15:36:10 +01:00
Paul Moore
16d45b607e
Revert "Account for package casing in new resolver"
...
This reverts commit 52c48a49ab
.
2020-05-22 14:10:41 +01:00
Paul Moore
5b35203bab
Merge pull request #8298 from uranusjr/different-messages
...
Fix different package casing in tests
2020-05-22 12:00:29 +01:00
Tzu-ping Chung
52c48a49ab
Account for package casing in new resolver
2020-05-22 18:22:09 +08:00
Tzu-ping Chung
e85a099511
Remove test_install_include_work_dir_pkg
2020-05-22 17:16:43 +08:00
Pradyun Gedam
50c9ea2fe0
This works now!
2020-05-21 21:47:42 +05:30
Paul Moore
a14f9aa8ca
Merge pull request #8276 from pfmoore/test_marker
...
Add a mark for tests that fail on the new resolver
2020-05-21 16:52:33 +01:00
Paul Moore
278ac2d67f
Merge pull request #8286 from uranusjr/read-root-extras-correctly
...
Always read InstallRequirement.extras
2020-05-21 16:05:35 +01:00
Paul Moore
66f323a53e
Fix a marker typo that the new registration of markers picked up :-)
2020-05-21 15:59:25 +01:00
Paul Moore
c2fa0dd997
Add a mark for tests that fail on the new resolver
2020-05-21 15:39:00 +01:00
Paul Moore
90168f0b24
Merge pull request #8230 from uranusjr/markers-in-deps
...
Only include dependencies if the markers match
2020-05-21 15:26:38 +01:00
Devesh Kumar Singh
b4d8523b1f
Remove tests_install_cleanup tests using static build dir
2020-05-21 19:38:47 +05:30
Devesh Kumar Singh
714a6c5469
Added unit tests
2020-05-21 19:37:45 +05:30
Tzu-ping Chung
19db59747a
Use a temp requirements file to avoid shell syntax
2020-05-21 21:37:19 +08:00
Tzu-ping Chung
4d17d932c5
Add test for picking up non-PEP-508 extrax
2020-05-21 21:01:08 +08:00
Paul Moore
80c640b5a8
Merge pull request #8067 from deveshks/fix-create-basic-wheel-bug
...
Canonicalise package name in tests.lib.create_basic_wheel_for_package
2020-05-21 13:54:01 +01:00
Tzu-ping Chung
a7b643004c
Add reprod for pre-existing build dir failure
2020-05-21 17:22:54 +08:00
Tzu-ping Chung
0a4629febb
Add test for marker that should fail for now
2020-05-21 15:42:58 +08:00
Tzu-ping Chung
1056681686
Non-ASCII names are not weird
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
dc4171c213
Python 2 works but not tested
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
2339a7a859
Fix installation of wheel with non-ASCII entries
...
This mainly deals with correctly recording the wheel content in the
RECORD metadata. This metadata file must be written in UTF-8, but the
actual files need to be installed to the filesystem, the encoding of
which is not (always) UTF-8. So we need to carefully handle file name
encoding/decoding when comparing RECORD entries to the actual file.
The fix here makes sure we always use the correct encoding by adding
strict type hints. The entries in RECORD is decoded/encoded with UTF-8
on the read/write boundaries to make sure we always deal with text
types. A type-hint-only type RecordPath is introduced to make sure this
is enforced (because Python 2 "helpfully" coerces str to unicode with
the wrong encoding).
2020-05-19 16:03:51 +08:00
Devesh Kumar Singh
60f00b837a
Upgrade flake8 to 3.8.1
...
Co-Authored-By: Anthony Sottile <asottile@umich.edu>
2020-05-18 21:58:26 +05:30
Paul Moore
c74577e18e
Merge pull request #8186 from uranusjr/install-req-from-dist-line-rewrite
...
Build ireq line from parent for installed dist
2020-05-15 22:33:03 +01:00
Paul Moore
e28b388c73
Merge pull request #7997 from uranusjr/resolver-use-user-site
...
New resolver: implement --user
2020-05-15 20:01:50 +01:00
Paul Moore
d53e880cfe
Merge pull request #8229 from uranusjr/one-constraint-test
...
Add one more constraint test
2020-05-15 16:37:00 +01:00
Paul Moore
4c599edc5b
Merge pull request #8243 from pfmoore/message_fixes
...
Fix some test failures related to message differences
2020-05-15 15:25:31 +01:00
Paul Moore
adfb70a309
Merge pull request #8239 from pfmoore/constraints_fixes
...
Tidy up handling of unexpected forms of constraint
2020-05-15 14:58:29 +01:00
Paul Moore
041f83f76a
Doh, I forgot to update our own tests...
2020-05-15 14:45:44 +01:00
Paul Moore
c258a1f517
Fix some test failures related to message differences
2020-05-15 14:17:47 +01:00
Paul Moore
6fcaf49cb0
Tidy up handling of unexpected forms of constraint
2020-05-14 17:04:18 +01:00
Pradyun Gedam
a879bc448a
Merge pull request #8236 from uranusjr/test-skip-reason
...
Add a reason why we're xfail-ing this test
2020-05-14 17:05:47 +05:30
Tzu-ping Chung
56d53cd60b
Add a reason why we're xfail-ing this test
...
This test uses xfail to test the negation of what's described in the
test, i.e. the assertion should "fail" if the command does what we
expect. I think this is a terrible way to write a test, but don't bother
to rewrite. This commit message is left here to tell future maintainers
what the test is all about by git blame.
2020-05-14 15:15:57 +08:00
Tzu-ping Chung
713645a554
Add one more constraint test
2020-05-13 07:13:19 +08:00
Pradyun Gedam
1b90e1bccf
Revert "remove _copy_source_tree and friends"
...
This reverts commit 873f1e6332
.
2020-05-13 02:50:10 +05:30
Pradyun Gedam
c0641464df
Revert "fix test_entrypoints_work test"
...
This reverts commit ace0c16531
.
2020-05-13 02:50:10 +05:30
Pradyun Gedam
4297b8d9b7
Revert "fix test_uninstall_console_scripts"
...
This reverts commit 877e1ccc77
.
2020-05-13 02:50:07 +05:30
Tzu-ping Chung
6ab42a86b8
Add tests for --user installs
...
Tests are based on equivalents from test_install_user.py with
modifications to appropriately monkey-patch things in the new resolver
module.
2020-05-06 03:48:34 +08:00
Tzu-ping Chung
9eb47650b0
Please don't use shell=True :(
2020-05-05 20:29:21 +08:00
Tzu-ping Chung
1f32d8dfc6
Refine output check to accomodate specifier change
2020-05-05 18:42:53 +08:00
Paul Moore
8664218164
Merge branch 'master' into nr_constraints2
2020-05-05 11:41:09 +01:00
Pradyun Gedam
cbfbc29b63
Merge pull request #8118 from ilanschnell/yaml_updates
2020-05-04 19:30:50 +05:30
Paul Moore
1599cc2a36
Merge branch 'master' into nr_upgrade_strategy
2020-05-03 11:01:27 +01:00
Paul Moore
218e7d830d
Merge pull request #8146 from uranusjr/new-resolver-extra-in-explicit-requirement
...
New resolver: Carry extras info in ExplicitRequirement
2020-05-03 10:57:48 +01:00
Paul Moore
d3847e3071
Merge pull request #8059 from pelson/extra_requirements
...
Add xfail tests for case where specifications added as an extra are not honoured
2020-05-03 10:07:40 +01:00
Paul Moore
0058bb5212
Improve test
2020-04-29 14:55:15 +01:00
Paul Moore
5186f05bd7
Add tests for constraints
2020-04-29 12:16:09 +01:00
Ilan Schnell
1f6ff0cc6e
make flake8 happy
2020-04-28 23:43:00 -05:00
Ilan Schnell
8b4a4c469a
add ability to install list of requirements - with example in simple.yml
2020-04-28 23:32:55 -05:00
Ilan Schnell
c14c92d9cd
simplify handle_request() - improve error checking
2020-04-28 23:15:57 -05:00
Pradyun Gedam
22bd8add95
Merge pull request #8095 from hugovk/pip-cache-dir2
2020-04-28 00:57:10 +05:30
Hugo
6b640d1254
Add test for 'pip cache dir 123' with too many arguments
2020-04-27 11:02:18 +03:00
Tzu-ping Chung
06d9ea0952
Mark local install as xfail
2020-04-27 14:36:59 +08:00
Tzu-ping Chung
0104adb037
Add failing test for explicit requirement extras
2020-04-26 16:39:31 +08:00
Paul Moore
04bf571521
Ensure root requirement name is canonicalised
2020-04-24 14:30:34 +01:00
Noah Gorny
8c28b8173a
tests: commands: cache: Add no-cache-dir test case
2020-04-24 13:08:59 +03:00
Paul Moore
d605530b44
Implement upgrade strategies for the new resolver
2020-04-24 11:08:06 +01:00
Ilan Schnell
8780a80c4d
make flake8 happy
2020-04-22 18:23:24 -05:00
Ilan Schnell
1d1b7a674e
simplify assertion for valid skip values
2020-04-22 17:57:20 -05:00
Ilan Schnell
05babbcb68
improve test name
2020-04-22 17:50:01 -05:00
Ilan Schnell
9ef15bc012
run tests with old and new resolver, and add ability to skip for either
2020-04-22 17:33:12 -05:00
Ilan Schnell
769ac3e59e
Merge branch 'master' into test_skip
2020-04-22 15:27:08 -05:00
Ilan Schnell
07845f8c97
move yaml test files up one level
2020-04-22 15:23:35 -05:00
Ilan Schnell
2daedca9c4
add new_resolver option to handle_request()
2020-04-22 15:20:59 -05:00
Hugo
cebac6aa6c
Add 'pip cache dir' command to show the path to pip's cache directory
2020-04-20 11:48:36 +03:00
Tzu-ping Chung
4fb7687fa7
Add failing tests
2020-04-18 22:47:44 +08:00
Pradyun Gedam
97f639057e
Merge pull request #8014 from uranusjr/always-return-installed-candidate
2020-04-18 16:15:14 +05:30
Devesh Kumar Singh
22878a827b
Added unit tests to verify correct normalization of package name
2020-04-18 11:03:56 +05:30
Phil Elson
bdc886be40
Add xfail tests for case where specifications added as an extra are not honoured.
2020-04-16 05:17:01 +02:00
Paul Moore
2f3a1be118
Merge pull request #8033 from pfmoore/messages
...
Make message more user friendly when unable to resolve
2020-04-15 19:43:53 +01:00
Paul Moore
8c118c8f3a
Fix the test to check for canonical name
2020-04-14 15:18:24 +01:00
Paul Moore
ea391b2aab
Merge with master
2020-04-14 11:27:10 +01:00
Pradyun Gedam
78f16daa27
Switch pip's use of pytoml -> toml
2020-04-14 13:07:17 +05:30
Pradyun Gedam
f458573de6
Merge pull request #7882 from sbidoul/build-in-place-7555-sbi
...
Build local directories in place
2020-04-13 21:33:02 +05:30
Pradyun Gedam
bdff935570
Merge pull request #6391 from duckinator/pip-cache
...
Add 'pip cache' command
2020-04-13 19:53:05 +05:30
Pradyun Gedam
92c9f8136a
Merge pull request #8004 from uranusjr/requires-python-error
...
New Resolver: Raise UnsupportedPythonVersion for Requires-Python mismatch
2020-04-13 19:42:51 +05:30
Pradyun Gedam
15f8a35e4b
Merge pull request #7887 from NoahGorny/pip-debug-print-vendored-versions
...
pip debug: Add versions of vendored libraries to output
2020-04-13 19:29:27 +05:30
Paul Moore
3642589903
Make message more user friendly when unable to resolve
2020-04-13 11:32:21 +01:00
Pradyun Gedam
fc24a17899
Merge pull request #8022 from sbidoul/simplify-install-req-source-dir-sbi
...
Remove InstallRequirement source_dir parameter
2020-04-13 05:00:06 +05:30
Stéphane Bidoul
877e1ccc77
fix test_uninstall_console_scripts
...
This particular test checks which files are
created. Since we now build in place, expect the .egg-info directory to be created.
2020-04-12 12:00:58 +02:00
Stéphane Bidoul
ace0c16531
fix test_entrypoints_work test
...
Since we now build in place, pip install
calls setup.py in place which in turn creates
fake_pkg.egg-info. Since in this test the package we are installing is in script.temp_path,
we must tell script to expect temporary
files to be created.
2020-04-12 12:00:57 +02:00
Stéphane Bidoul
873f1e6332
remove _copy_source_tree and friends
2020-04-12 12:00:57 +02:00
Stéphane Bidoul
076d1a8ed8
Fix tests that build fake InstallRequirements with source_dir
2020-04-12 11:39:09 +02:00
Noah Gorny
bfd17cbd97
tests: functional: Add new test_debug vendored version test
2020-04-11 01:54:57 +03:00
Noah Gorny
4efd8af14b
tests: functional: Add new cases to the simple test_debug
2020-04-11 01:54:57 +03:00
Pradyun Gedam
5c9e83a3aa
Merge pull request #8012 from deveshks/fix-comments-in-test-install
...
Fix incorrect comment in tests in test_install
2020-04-10 21:36:28 +05:30
Tzu-ping Chung
d2028e9538
Implement RequiresPythonRequirement with context
...
This specialized class is able to carry more context information than
the previous implementation (which reuses ExplicitRequirement). Error
reports can thus provide better messages by introspecting.
2020-04-10 23:17:29 +08:00
Devesh Kumar Singh
528a193dda
Fix incorrect comment in tests
2020-04-10 19:02:57 +05:30
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
Tzu-ping Chung
cfac6aebdd
Always return an install candidate last if matches
...
This rewrites how a SpecifierRequirement generates candidates, so it
* Always return an AlreadyInstalledCandidate (as long as the version
satisfies the specifier), even if PackageFinder does not return a
candidate for the same version.
* Always put the AlreadyInstalledCandidate last, so it's preferred over
LinkCandidate, preventing version changes if possible.
2020-04-10 20:51:06 +08:00
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
Ellen Marie Dash
b988417b4f
[tests/functional/test_cache] Use os.path.join() instead of hard-coding the path separator.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
0c4eafad62
[tests/functional/test_cache] Fix test on Python 2.7.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
b7239f5dee
[tests/functional/test_cache] Remove unused import.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
8858237903
[tests/functional/test_cache] Refactor list_matches_wheel() and remove_matches_wheel().
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
a20b28d008
[tests/functional/test_cache] Split apart tests for `pip cache purge`.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
ba7c3ac9ec
[tests/functional/test_cache] Add test `pip cache list` with an empty cache.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
32ce3bacbe
[tests/functional/cache] Rewrite all of the pip cache {list,remove} tests.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
c6b5a52a5a
[tests/functional/test_cache] Always call normcase on cache dir; fix line length problems.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
274b295bd8
[tests/functional/cache] Make fixtures feel less magical.
...
It bothered me that _whether or not a function had a certain argument_
dictated the contents of a directory. Pytest fixtures are inherently
kinda magical, but that was a bit much for me.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
6e425d8009
[tests/functional/cache] Refactor to be less redundant.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
8b518b258d
[commands/cache] Make filenames more realistic in tests.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
f8b67c8bf1
[commands/cache] Fix test_cache_info test.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
d74895a224
[commands/cache] Normalize path in test.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
2d978309a2
[commands/cache] Minor clean-up.
...
- Consistently use singular 'cache' (not plural 'caches').
- Remove unnecessary uses of the word 'currently'.
- Use 'file(s)' instead of 'files', to account for case of only one file.
- Use .format() when appropriate.
- Minor cleanup of `pip cache`-related files in docs/.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
6fb1ee7a3d
[commands/cache] fix linting error.
2020-04-01 16:54:04 -04:00
Ellen Marie Dash
50604be6c4
[commands/cache] Raise errors if wrong number of args.
...
Also add tests for purge_cache, since I apparently forgot those before.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
b9b29b8c10
[commands/cache] fix 'pip cache info'; don't hide python/abi/platform tags.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
b0e7b66326
[commands/cache] Refactor + fix linting failures.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
04c0b0e6eb
Add 'pip cache' command.
2020-04-01 16:54:03 -04: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
Jason R. Coombs
6282a307dc
👹 Feed the hobgoblins (delint).
2020-03-06 12:43:10 -05:00
Jason R. Coombs
3511d3d493
Convert the remaining '%' formatters to '.format'. Fixes #6973 .
2020-03-06 12:43:03 -05:00
sinscary
716c9202ee
Raise error if --user and --target arguments are used together
2020-02-27 12:22:56 +05:30
Pradyun Gedam
3fa356a772
Update references to pep425tags
2020-02-26 10:24:43 -08:00
Pradyun Gedam
e648e00dc0
pip is spelt all-lowercase
2020-02-18 10:55:16 +05:30
Pradyun Gedam
313740f6ee
Merge pull request #7593 from uranusjr/hg-under-git
...
Detect all registered VCS and choose inner-most
2020-02-08 17:34:31 +05:30
Chris Hunt
98cd193727
Remove delete_marker_file writing in tests
...
Nothing checks for this file, so no need to write it.
2020-02-05 20:14:44 -05:00
Chris Hunt
667dc392e5
Remove unused futurewheel fixture
2020-01-31 19:33:51 -05:00
Chris Hunt
e83e134f5f
Use wheel_builder for future wheel functional test
2020-01-31 19:33:48 -05:00
Chris Hunt
dd8753cdee
Mitigate Windows test failures due to PAX-format wheel release
2020-01-29 08:53:23 -05:00
Deepak Sharma
b242c3979a
String formatting updated
2020-01-23 18:09:59 +05:30
Pradyun Gedam
8bc1024a13
Touch command may not be available on Windows ( #7601 )
2020-01-15 16:08:17 +00:00
Paul Moore
3288d902e6
Touch command may not be available on Windows
2020-01-15 15:14:22 +00:00
Tzu-ping Chung
2dc061d960
Normailze case in tests
2020-01-15 17:50:41 +08:00
Christopher Hunt
f2bb7c4e57
Merge pull request #7588 from uranusjr/reinstall-test
...
Delete a file to let --force-reinstall fix it
2020-01-15 11:48:27 +08:00
Tzu-ping Chung
8b1f4d80c1
Modify test to unify site_packages path usages
2020-01-14 21:56:23 +08:00
Tzu-ping Chung
d301cbeb4e
Add marker to Mercurial test
2020-01-14 18:00:49 +08:00
Tzu-ping Chung
284352a42c
Add test to verify freeze output
2020-01-14 17:54:54 +08:00
Tzu-ping Chung
e5c43ed6af
Add tests for get_repository_root
2020-01-14 16:45:28 +08:00
Christopher Hunt
cf722df4f9
Merge pull request #7581 from chrahunt/refactor/split-install-tests
...
Split relative requirement install tests
2020-01-14 01:40:29 +08:00
Tzu-ping Chung
2d3f2cdba5
Delete a file to let --force-reinstall fix it
2020-01-13 18:04:52 +08:00
Christopher Hunt
7e65a5a40f
Merge pull request #7578 from uranusjr/test-uppercase-console-scripts
...
Add test for uppercase script name
2020-01-13 09:42:38 +08:00
Tzu-ping Chung
8e72502118
Add test for uppercase script name
2020-01-12 17:16:52 +08:00
Tzu-ping Chung
4def73ca3a
Refactor test to remove unneeded network dep
2020-01-12 17:12:08 +08:00
Tzu-ping Chung
10022df906
Rename test to make its intention clearer
2020-01-12 17:03:28 +08:00
Chris Hunt
e53d10db01
Remove unnecessary uninstall
...
Since a new temporary script path is used for each test, no need to do
uninstall.
2020-01-11 19:39:12 -05:00
Chris Hunt
f89013daa4
Parametrize editable for relative install tests
2020-01-11 19:37:10 -05:00
Chris Hunt
2801de5825
Parametrize long relative install tests
...
This lets us make better use of parallelization and will let us remove
the unnecessary uninstallation from these individual tests.
2020-01-11 19:32:44 -05:00
Pradyun Gedam
4ee779f79e
Drop no longer valid tests
2020-01-07 12:25:11 +05:30
Pradyun Gedam
d9d801f818
Drop no-suffix checks for pip-from-PATH
2020-01-06 19:29:56 +05:30
Chris Hunt
33043ba22f
Use pkg_resources.Distribution derived from wheel directly
...
We now extract all metadata files from the wheel directly into memory
and make them available to the wrapping pkg_resources.Distribution via
the DictMetadata introduced earlier.
2020-01-05 10:57:14 -05:00
Christopher Hunt
c3ab0a0b13
Merge pull request #7552 from chrahunt/refactor/cleanup-wheel-install-tests
...
Make wheel install test packages more explicit
2020-01-05 08:46:07 +08:00
Chris Hunt
b58205ea01
Use valid wheel for functional download tests
...
Previously we were copying an existing wheel to a file with a
different distribution name. When using stricter metadata parsing this
would fail, so now we use a more conformant dummy wheel function.
2020-01-04 23:08:43 +01:00
Chris Hunt
f9bf1a7004
Make explicit argument for git commit --allow-empty
2020-01-03 19:19:18 -05:00
Chris Hunt
f5684ed7ae
Use shared_data fixture in wheel install tests
...
shared_data avoids copying the entire data directory, so use it in cases
where we know pip won't have any opportunity to edit the data files
(where we're passing tmpdir for --find-links).
2020-01-03 18:25:02 -05:00
Chris Hunt
d468da2796
Explicitly copy required packages to tmpdir for wheel install tests
...
Any test using --find-links data.packages is potentially using several
packages. By copying specifically the packages we need, we can more
easily see the packages that each test depends on and avoid using the
`data` fixture.
2020-01-03 18:23:48 -05:00
Chris Hunt
4e5d854456
Normalize --find-links argument format in wheel install tests
2020-01-03 17:58:40 -05:00
Chris Hunt
7af9371176
Remove redundant expect_error=False in tests
...
This is the default, so there is no need to specify it explicitly.
2020-01-03 14:25:36 +01:00
Stéphane Bidoul (ACSONE)
c93acfb20b
Test legacy clean not attempt after PEP 517 build failure
2020-01-02 12:14:03 +01:00
Christopher Hunt
8c888a2287
Simplify getting info directories for wheel installation ( #7526 )
...
* Edit subdirs of top-level instead of checking in each directory
Previously, we were checking whether the top of the relative path ended
with .data. Now, we do not recurse into those directories, so there's no
need to check every time.
* Store info_dir in separate variable
Instead of working with a list everywhere, we use the single info_dir.
* Separate variables for info_dir and the destination path
* Use destination .dist-info dir only when needed
By initially storing just the name of the folder we ensure our code is
agnostic to the destination, so it'll be easier to install from a zip
later.
* Use os.listdir instead of os.walk for wheel dir population
Since we only execute any code when basedir == '', we only need the
top-level directories.
* Inline data_dirs calculation
* Inline info_dirs calculation
2019-12-30 23:59:23 +08:00