Paul Moore
3288d902e6
Touch command may not be available on Windows
2020-01-15 15:14:22 +00: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
Pradyun Gedam
b411cdbdf5
Azure Pipelines: Test Windows on Python 3.8 ( #7320 )
2020-01-13 12:33:43 +00: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
Christopher Hunt
9cb9dc6b86
Merge pull request #7582 from uranusjr/uninstall-test-refactor
...
Minor uninstall test refactoring
2020-01-13 09:40:26 +08:00
Chris Hunt
a5f5d8fa81
Add Python 3.8 Windows Azure tests to CI docs
2020-01-12 19:54:47 -05:00
Chris Hunt
8d92e40c1f
Use USERPROFILE in expanduser test
...
In Python 3.8, expanduser on Windows no longer respects HOME, per
https://bugs.python.org/issue36264 .
2020-01-12 19:44:43 -05:00
Tzu-ping Chung
8e72502118
Add test for uppercase script name
2020-01-12 17:16:52 +08:00
Tzu-ping Chung
602b0de040
News
2020-01-12 17:14:24 +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
Christopher Hunt
6b51ee1a39
Merge pull request #7580 from hugovk/patch-1
...
Add docs and repo to project_urls metadata
2020-01-12 07:48:20 +08:00
Hugo van Kemenade
99f582185e
Add docs and repo to project_urls metadata
2020-01-10 23:33:05 +02:00
Chris Hunt
0a57e4e9f2
Manage temp directory deletion centrally
...
This gives us a global toggle that we can use to control whether
temporary directories get deleted from one place (ideally, in the
commands taking --no-clean).
2020-01-10 11:08:05 +01:00
Pradyun Gedam
e0b2d96fb2
Merge pull request #7577 from uranusjr/unicode-path-fixes-2
2020-01-10 03:52:41 +00:00
Christopher Hunt
e06a12ef1d
Merge pull request #7575 from chrahunt/refactor/clean-up-source-dir-handling-1
...
Minor cleanups in source dir handling
2020-01-10 09:25:40 +08:00
Tzu-ping Chung
ff4ee68470
News
2020-01-09 13:15:35 +05:30
Tzu-ping Chung
facf5c8894
Add comments to unicode workarounds
2020-01-09 13:11:30 +05:30
Tzu-ping Chung
7a80acaf44
Tell shutil.make_archive to use Unicode paths
...
By default, make_archive uses str paths on Python 2, which causes it to
skip files with unencodable names. By passing in a unicode base_dir
explicitly, it is smart enough to use unicode all the way down instead.
2020-01-09 13:01:31 +05:30
Tzu-ping Chung
37f97140af
Also use rmtree to remove tmpdir_factory
...
Same as e2c3451001
2020-01-09 13:00:49 +05:30
Chris Hunt
3fac3d74ac
Inline _make_build_dir in InstallRequirement
...
This untested function was only used in one place. Inlining it makes it
easier to see the symmetry between the writing of the delete marker file
in `ensure_build_location` and checking for it in
`remove_temporary_source`.
2020-01-08 20:34:28 -05:00
Chris Hunt
71e0ea19af
Assert req.source_dir is None during linked requirement preparation
...
req.source_dir is only set by:
1. `InstallRequirement.__init__`
2. `InstallRequirement.ensure_has_source_dir`
`InstallRequirement.__init__` is only called with source_dir for
editable requirements, for which we would not call
`RequirementPreparer.prepare_linked_requirement` (only
`prepare_editable_requirement`).
We will use this assertion for justifying later refactoring.
2020-01-08 20:11:28 -05:00
Xavier Fernandez
fe3e892a93
Merge pull request #7354 from chrahunt/maint/use-packaging-tags
...
Use packaging.tags for doing compatible wheel tag calculation
2020-01-08 22:41:35 +01:00
Pradyun Gedam
0eaf0e6f5a
Delete tmpdir with rmtree to handle Unicode paths ( #7572 )
2020-01-08 13:36:52 +00:00
Tzu-ping Chung
e2c3451001
Delete tmpdir with rmtree to handle Unicode paths
...
pytest (rather py.path.local) does not handle non-ASCII paths properly
on Windows with Python 2, but Python's builtin shutil.rmtree() does.
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2020-01-08 18:26:42 +05:30
Christopher Hunt
5529bacc1f
Merge pull request #7569 from uranusjr/req-uninstall-logger
...
Use logger to log instead of logging
2020-01-08 11:05:40 +08:00
Christopher Hunt
eeeecbe856
Merge pull request #7543 from sbidoul/deprecate-gitgitarobase-sbi
...
Deprecate git+git@ form of VCS requirements
2020-01-08 11:04:12 +08:00
Hugo
f08dc673a7
Upgrade virtualenv
2020-01-07 21:44:44 -05:00
Hugo
8c28cda679
Test Windows on Python 3.8
2020-01-07 21:44:44 -05:00
Chris Hunt
d7fda717ac
Add news
2020-01-07 19:01:19 -05:00
Chris Hunt
ae21af701d
Remove unused version functions
2020-01-07 19:01:14 -05:00
Chris Hunt
2b1b60f6db
Remove unused get_platform function
...
Now handled internally in `packaging.tags` (in `_platform_tags`).
2020-01-07 19:01:09 -05:00
Chris Hunt
896317d13d
Remove unused abi functions
...
Previously, these were used when the user did not provide an explicit
ABI. Now this is handled internally in `packaging.tags` (by
`_cpython_abi` and `_generic_abi`).
2020-01-07 19:01:05 -05:00
Chris Hunt
7aaa705c15
Remove unused glibc functions
...
The remaining glibc-related functions are required to allow us to put
the libc version in the pip user agent (for stats).
2020-01-07 19:01:00 -05:00
Chris Hunt
2455977bc8
Remove unused manylinux auto-deduction functions
2020-01-07 19:00:55 -05:00
Chris Hunt
9b3443583e
Simplify _get_custom_platforms
...
Since we only call this function when platform is not None, we can drop
one of the branches. This is the only place using our manylinux
auto-deduction functions, so those can be removed next.
2020-01-07 19:00:51 -05:00
Chris Hunt
ad546b5e8d
Remove unnecessary conversion in get_supported
...
Now that we're fully using packaging.tags, everything in the supported
list is already Tag.
Further, since each function is responsible for its own set of
non-overlapping tags, we can also remove the de-duplication.
2020-01-07 19:00:46 -05:00
Chris Hunt
3e66ab0918
Inline packaging.tags.generic_tags
2020-01-07 19:00:41 -05:00
Chris Hunt
72dcd34eb2
Make packaging.tags.generic_tags unconditional
2020-01-07 19:00:37 -05:00
Chris Hunt
293b778374
Customize platforms for packaging.tags.generic_tags
2020-01-07 19:00:32 -05:00
Chris Hunt
0bebeb66e6
Customize abis for packaging.tags.generic_tags
2020-01-07 19:00:28 -05:00
Chris Hunt
77dbd27703
Customize interpreter for packaging.tags.generic_tags
2020-01-07 19:00:23 -05:00
Chris Hunt
281273dac3
Use packaging.tags.generic_tags
...
As with cpython_tags and compatible_tags, we assume this function covers
our use cases in the no-argument case and will customize our arguments
for it in a few steps.
2020-01-07 19:00:18 -05:00
Chris Hunt
fa1ec40ce0
Remove unused abi3 branch in _generic_tags
...
Since this function is only called for non-CPython interpreters, the
abi3-related branches are not relevant.
2020-01-07 19:00:14 -05:00
Chris Hunt
1574872162
Inline packaging.tags.cpython_tags
2020-01-07 19:00:09 -05:00
Chris Hunt
56840c30c5
Make packaging.tags.cpython_tags unconditional
2020-01-07 19:00:04 -05:00
Chris Hunt
fecfadb810
Customize platforms for packaging.tags.cpython_tags
2020-01-07 19:00:00 -05:00