Commit Graph

1486 Commits

Author SHA1 Message Date
Chris Hunt a0b75cc460 Remove intermediate pip-wheel-metadata dir
Previously this was located in the source directory itself, but now
that we're using a temporary directory, there's no need for
pip-wheel-metadata.
2019-10-13 22:20:58 +02:00
Pradyun Gedam 1c3f31ce14
Merge pull request #7072 from TonyBeswick/master
Fix pip freeze not showing correct entry for mercurial packages that use subdirectories.
2019-10-12 18:23:20 +05:30
tbeswick 7ebc54171c Fixed missing return statement in `Mercurial.controls_location()`, it
only got found after reverting `VersionControl.controls_location()`
2019-10-11 17:15:35 +13:00
tbeswick 24a2be8af6 Reverting `VersionControl.controls_location()` to pre PR state. Its an optimization that belongs in another PR. 2019-10-11 16:44:45 +13:00
tbeswick f197479dc8 Fixed LF getting converted to CRLF in last commit. 2019-10-11 14:30:30 +13:00
tbeswick f81f3c902c Removed `get_repo_root_dir()`, this functionality is now included in `Git.get_subdirectory()` and `Mercurial.get_subdirectory()`.
Added `find_path_to_setup_from_repo_root()` function to perform the
common parts of `get_subdirectory()`.
2019-10-11 12:27:17 +13:00
Christopher Hunt f3f396fd79
Merge pull request #7102 from mayeut/manylinux2014
Add manylinux2014 support
2019-10-10 18:07:51 -04:00
Xavier Fernandez d9e27f0030 Bump vendored libraries 2019-10-10 12:33:38 +02:00
Xavier Fernandez 0cb85d5734 Bump contextlib2 to latest version 0.6.0 2019-10-10 00:06:55 +02:00
Pradyun Gedam af3062af41 Remove the deprecated pip config --venv option (#7163) 2019-10-09 23:28:00 +02:00
Xavier Fernandez 79b48aab6e Fix contextlib2 vendoring 2019-10-09 22:45:19 +02:00
Xavier Fernandez 3b22ce2fa4 Launch vendoring.update 2019-10-09 22:45:19 +02:00
mayeut d3d3ccad47
Detect armv7l hard-float ABI for manylinux2014
PEP 599 defines manylinux2014 armv7l to be compatible with centos7 altarch armv7 i.e. armhf using the gnueabihf ABI
2019-10-09 22:09:29 +02:00
mayeut 62d84a5aae
Add manylinux2014 support
Per PEP 599:
https://www.python.org/dev/peps/pep-0599/
2019-10-09 22:09:28 +02:00
tbeswick f7b44a82fe Removed unused import. 2019-10-09 09:45:41 +13:00
tbeswick a0cbe4c440 Fixing bad merge. 2019-10-09 09:11:58 +13:00
Christopher Hunt 90aeec97f1
Merge pull request #7147 from chrahunt/refactor/move-requests-init
Move some initialization out of __init__
2019-10-08 08:27:02 -04:00
Krishna Oza 74972037b5 Simplify an interestingly written conditional (#7161) 2019-10-08 12:52:00 +05:30
TonyBeswick bcbaee7aa5
Merge branch 'master' into master 2019-10-08 18:39:08 +13:00
tbeswick c6906f1a38 - Abstracted out common `get_subdirectory()` code in `Git` and `Mercurial`, adding `get_repo_root_dir()` for the vcs specific code.
- Reverted behaviour of `Git.controls_location()` and `Mercurial.controls_location()` to call the vcs command if the base `VersionControl.controls_location()` doesn't detect the vcs directory.
- Added `log_failed_cmd` argument `VcsSupport.run_command()` to allow vcs commands to be tried without logging errors if they aren't present.
- Corrected indentation.
- Removed `expect_stderr=True` in `test_freeze_mercurial_clone_srcdir` as its not required.
2019-10-08 18:15:22 +13:00
Chris Hunt 3eda51fd34 Conditionally import ssl
Saves >=10ms on irrelevant platforms.
2019-10-08 00:50:22 -04:00
Pradyun Gedam d82874c417
Revert "Optimize upgrade of already-satisfied pinned requirement" 2019-10-07 21:29:40 +05:30
Pradyun Gedam f718a8f34c
Optimize upgrade of already-satisfied pinned requirement (#7132) 2019-10-07 11:17:31 +05:30
Chris Hunt f315671572 Move urllib3 warning suppression to network.session
This is only relevant for our usage of --trusted-host, so it is enough
to initialize it in network.session.
2019-10-06 22:31:49 -04:00
Christopher Hunt 5a997b7509
Merge pull request #7065 from chrahunt/pr-5955
Explicit support for hg+file
2019-10-06 09:39:42 -04:00
Albert Tugushev 10b9421193 Fix a typo 2019-10-06 01:10:59 +07:00
Anders Kaseorg 0492e80816 Optimize upgrade of already-satisfied pinned requirement
Example: after installing six 1.12.0, `pip install -Uv six==1.12.0`
now returns immediately, instead of going to the index to check for a
version that can’t possibly be considered better.

This optimization is most significant when upgrading via a
requirements file with many pinned versions and some non-pinned
versions.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-04 20:14:56 -07:00
Pradyun Gedam 1bdb702b7e
Merge pull request #7115 from pradyunsg/refactor/move-find_egg_info
Move find_egg_info to operations.generate_metadata
2019-10-04 10:21:32 +05:30
Pradyun Gedam e6f69fadd8
Fix crash when `sys.stdin` is `None` (#7118) 2019-10-02 13:47:46 +05:30
Emil Burzo c7e239c47c fix linter 2019-10-02 08:51:14 +03:00
Emil Burzo 004103c0f5 fix code quality issues 2019-10-02 08:33:41 +03:00
Emil Burzo 60d2ade74c remove no longer used import 2019-10-01 19:00:03 +03:00
Emil Burzo 7e50674393 extract function to misc 2019-10-01 18:55:13 +03:00
gpiks f006a7b262 Clarify `--no-binary` when enumerating packages and add an example
Minor tweak to `--no-binary` documentation to specify that when
enumerating packages, the colons are not needed. Additionally,
add an example to demonstrate building a wheel from source.
2019-09-30 22:22:35 -04:00
Emil Burzo 05a48404ca
fix crash when sys.stdin is None 2019-09-30 16:25:25 +03:00
Pradyun Gedam b21f4c95eb
Add a documentation string 2019-09-30 16:13:42 +05:30
Pradyun Gedam 3f46081c54
Add an underscore, find_egg_info is an internal 2019-09-30 16:13:42 +05:30
Pradyun Gedam 6d2ce844f5
find_egg_info no longer needs InstallRequirement 2019-09-30 16:13:42 +05:30
Pradyun Gedam 5307ed0c10
Don't use install_req.source_dir directly
Why: This enables a simplification in a follow up and AFAICT, they'll be
the same here.
2019-09-30 16:13:41 +05:30
Pradyun Gedam 628dfd9fab
Add type annotations in find_egg_info 2019-09-30 16:13:41 +05:30
Pradyun Gedam e600aebe7d
Move find_egg_info to operations.generate_metadata 2019-09-30 16:13:29 +05:30
Pradyun Gedam 7d523f3219
Use pep517's new subprocess_runner API (#7111) 2019-09-30 16:09:08 +05:30
Christopher Hunt b0ea6059fe
Merge pull request #7112 from JohnPaton/rename-outdated-check
Move _internal.utils.outdated to _internal.self_outdated_check
2019-09-30 06:25:49 -04:00
John Paton 6b57c1f5df Move outdated outside utils and rename (pypa/pip#6532) 2019-09-30 09:56:44 +02:00
Pradyun Gedam 1ad0495fdd
Rename {run -> runner}_with_spinner_message 2019-09-30 12:17:07 +05:30
Pradyun Gedam 65621002fc
Use run_with_spinner_message() for "setup.py install" 2019-09-30 12:16:50 +05:30
Pradyun Gedam 489312e4d9
Stop monkeypatching InstallRequirement.pep517_backend 2019-09-30 12:16:50 +05:30
Pradyun Gedam 46bd454e3e
Use pep517.Pep517HookCaller.subprocess_runner
Also, create a new utility function for showing a spinner when running
a subprocess.

Why: The subprocess_runner API was specifically added to make it
possible for pip to stop monkey-patching Pep517HookCaller, while still
maintaining its output style. The relevant monkeypatch will be removed
in a follow up commit.
2019-09-30 12:16:45 +05:30
Pradyun Gedam 27fdffbab6
Remove dependency of utils.logging on utils.suprocess 2019-09-30 12:00:13 +05:30
Pradyun Gedam 2eafb0218b
Update all the imports as needed 2019-09-30 11:15:24 +05:30