Commit Graph

76 Commits

Author SHA1 Message Date
A_Rog 70027b2f50 Address #6876: Make command output go through a single function (#6881) 2019-08-22 17:29:22 -07:00
Chris Jerdonek 7783c47131
Hide security-sensitive strings in VCS command log messages (#6890) 2019-08-21 03:22:57 -07:00
Pradyun Gedam 9332803089
Merge pull request #6729 from asottile/3_10_fixes
sys.version fixes for python 3.10
2019-08-18 09:27:09 +09:00
Chris Jerdonek bbae384d5b Make some final tweaks to the PR. 2019-08-14 22:13:26 -07:00
Frost Ming 3f9136f885 Make trusted host w/o port work for HTTPS 2019-08-14 22:13:18 -07:00
Chris Hunt a0418719b0 Clean up import in moved module. 2019-08-10 13:54:35 -04:00
Pradyun Gedam f377148f6d
Use mypy's inline configuration syntax for opt-outs 2019-07-30 12:39:51 +05:30
Pradyun Gedam 2a5c23b3d5
Simplify the handling of "typing.cast" 2019-07-30 10:17:19 +05:30
Pradyun Gedam 3b98423981
Work around mypy quirks 2019-07-29 23:21:24 +05:30
Chris Jerdonek 6f638eb591 Add get_major_minor_version(). 2019-07-27 20:01:52 -07:00
Anthony Sottile c3fb5cbff0 sys.version fixes for python 3.10 2019-07-27 19:59:18 -07:00
Pradyun Gedam 537b0fca12
Change isort multi_line_output to 3 2019-07-22 10:15:27 +05:30
Xavier Fernandez fc618bf3b1 Move virtualenv detection functions into their own module 2019-07-19 10:03:22 +02:00
Xavier Fernandez 34092d3234 Move pip marker related constant & function in their own module
It didn't seem related with the rest of the locations module
2019-07-18 22:53:05 +02:00
Chris Jerdonek 1a7f76fe1c Remove strict_optional=False for vcs/subversion.py. 2019-07-14 23:07:48 -07:00
Chris Jerdonek 957756ac36 Remove strict_optional=False for models/target_python.py. 2019-07-14 23:07:45 -07:00
Chris Jerdonek 77ad4764ef Support non-ascii cwds in make_subprocess_output_error(). 2019-07-06 00:26:36 -07:00
Chris Jerdonek 0d5a98390e
Merge pull request #6671 from cjerdonek/make-subprocess-error-non-ascii-cmd
Handle non-ascii commands in Python 2 in make_subprocess_output_error()
2019-07-04 15:43:25 -07:00
Chris Jerdonek a6020e8553 Handle non-ascii commands in Python 2 in make_subprocess_output_error(). 2019-07-04 00:54:15 -07:00
Chris Jerdonek a8510bc5e6
Merge pull request #6638 from cjerdonek/debug-command
Add a "pip debug" command
2019-07-02 02:00:02 -07:00
Chris Jerdonek 9eab3526a8 Improve error message formatting when a subprocess command errors out. 2019-06-27 03:05:06 -07:00
Chris Jerdonek 9117cccc7e Refactor out a get_pip_version() function into misc.py. 2019-06-23 09:28:50 -07:00
Chris Jerdonek e6b1070e14 Add normalize_version_info() with tests. 2019-06-06 13:20:26 -07:00
Chris Jerdonek ce46f8524e
Merge pull request #6545 from cjerdonek/vcs-imports
Remove from pip/_internal/__init__.py the vcs module imports
2019-06-03 02:10:43 -07:00
László Kiss Kollár 929fefdbae Add --path to pip freeze to support --target installations (#6450)
* Add support for --path in pip freeze
2019-05-28 02:28:18 -07:00
Chris Jerdonek 2d450936c6 Move path_to_url() from download.py to misc.py. 2019-05-26 22:51:00 -07:00
Donald Stufft 3596ad5cd8
Merge pull request #5952 from zooba/issue-5948
Fixes #5948 Adds keyring support
2019-05-10 08:13:55 -04:00
Steve Dower c63ee61027 Issue #5948: Enable keyring support
This requires keyring and any backends to be installed separately.
Once discovered, it will be used to retrieve credentials by index URL
and netloc before prompting. If the user is prompted and the
credentials work, they will (optionally) be saved to keyring against
the netloc of the requested URL.
2019-05-07 09:55:02 -04:00
Chris Jerdonek 0ea639d644 Remove url as an instance attribute of the VersionControl class. 2019-05-06 22:59:18 -04:00
Chris Jerdonek e0505bb152 Prevent subprocess stdout and stderr from cluttering pip's stdout. 2019-03-25 00:21:20 -07:00
Chris Jerdonek 7f6edbd252
Merge pull request #6130 from cjerdonek/move-get-src-requirement-to-base-class
Move get_src_requirement() to the VersionControl base class
2019-03-14 15:22:54 -07:00
Chris Jerdonek fe793722b1 Fix a couple spinner edge cases. 2019-03-03 11:05:39 -08:00
Chris Jerdonek 632896d70b Move make_vcs_requirement_url() to vcs/__init__.py. 2019-03-01 11:06:24 -08:00
Chris Jerdonek b88239918b
Merge pull request #6290 from cjerdonek/add-format-command
Add format_command_args().
2019-02-24 13:23:51 -08:00
Pradyun Gedam d4217f0cc3
Merge pull request #6129 from asottile/dead
delete some dead code
2019-02-24 22:08:16 +05:30
Maxim Kurnikov f77b8ca051 remove #noqa: F401 2019-02-22 14:17:07 +03:00
Chris Jerdonek 0f6776388c Change format_command() to use shlex.quote(). 2019-02-22 02:52:06 -08:00
Chris Jerdonek 1d0645e86f Add format_command_args() with tests. 2019-02-22 02:52:02 -08:00
Chris Jerdonek aec72bd0cd Add log divider variable. 2019-02-22 00:14:58 -08:00
Anthony Sottile f388ccf1c3 Remove read_text_file
last reference removed in 52d87f2e30
2019-02-20 11:50:59 -08:00
Chris Jerdonek d2051f14bb Change the default of call_subprocess()'s show_stdout from True to False. 2019-02-12 05:11:51 -08:00
Chris Jerdonek e6d0127985 Add failing tests. 2019-01-20 15:49:49 -08:00
Chris Jerdonek 929c95833d Address review comments. 2018-12-20 17:39:08 -08:00
Chris Jerdonek 1e903eab5a Improve branch detection to work if a tag exists with the same name. 2018-12-16 12:00:42 -08:00
Maxim Kurnikov 5e5904e61c Add type annotations for pip._internal.utils and pip._internal.vcs.__init__ (#6061) 2018-12-08 08:47:24 +05:30
Pradyun Gedam fc62b5b677
Move wheel extension information to remove cycle imports 2018-11-30 12:46:08 +05:30
Chris Jerdonek 07900ed732 Change VersionControl.get_src_requirement() to accept the project name. 2018-11-08 04:24:05 -08:00
Pradyun Gedam 2ed581c79f
Merge pull request #5968 from cjerdonek/dry-up-parse-credentials
Use split_auth_from_netloc() inside MultiDomainBasicAuth
2018-10-30 18:45:35 +00:00
Chris Jerdonek 0aa301c60e Percent-encode the username in redact_netloc(). 2018-10-29 22:13:55 -07:00
Chris Jerdonek 8166eb6c32 Percent-decode special characters in SVN URL credentials. 2018-10-29 22:12:51 -07:00