Commit Graph

95 Commits

Author SHA1 Message Date
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
Yuan Jing Vincent Yan 4ccea7e67a Improve documentation in misc.py 2018-10-29 22:40:16 +01:00
wim glenn 3a6a1c06a9 Remove dead code: `import_or_raise` utility function (#5876)
* Remove dead code import_or_raise utility function

* add news marker
2018-10-21 22:15:27 +02:00
Dave Jones 62c27dee45 Use ZipFile.open instead of ZipFile.read (#5848)
To avoid huge memory usage in unusual situations (e.g. a TensorFlow
wheel on a Raspberry Pi), use ZipFile.open and shutil.copyfileobj
instead of reading all the decompressed data into a byte-string.
2018-10-19 10:32:30 -07:00
Tom Forbes 78371cc950 Redact basic authentication passwords from log messages (#5773)
Redact basic authentication passwords from URLs.
2018-10-19 02:06:10 -07:00
Benoit Pierre 0a58159571 drop workaround for Python<=2.5 2018-10-07 14:26:34 +02:00
Chris Jerdonek 520df5356f Add misc.make_vcs_requirement_url(). 2018-09-25 01:31:34 -07:00
Paul Moore b9df39dbed Fix some formatting 2018-07-31 16:21:19 +01:00
Paul Moore 055b5a726e A project is installable if it has either setup.py or pyproject.toml 2018-07-31 16:21:19 +01:00
Pradyun Gedam 4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Chris Jerdonek 58b21d18dc Add split_auth_from_netloc() to misc.py. 2018-07-25 10:35:50 -07:00
Stephan Erb cbc21a5957 Speed up printing of installed package versions (#5127)
The installed set of packages is already fixed and no longer changing.
It is therefore safe to reuse a single `pkg_resources.WorkingSet` for
all invocations of `get_installed_version`.
2018-06-19 12:20:58 +05:30
Pradyun Gedam 2a061c2d5e
Restrict the Windows name check to only "pip[major[.minor]].exe" names 2018-05-30 16:01:37 +05:30
Pradyun Gedam 369061b535
Move Windows protection check to specific commands 2018-05-30 15:57:06 +05:30
Jeremy Zafran 5bc94f3348 Move remove_auth_from_url and test from Subversion class to pip._internal.utils.misc 2018-04-27 00:41:54 -04:00
Anubhav Patel 33cc74427f merge master branch into pull request. 2018-01-24 22:55:09 +05:30
Anubhav Patel dea8892768 Move get_terminal_size to pip._internal.compat 2018-01-24 22:34:05 +05:30
Anubhav Patel cd2e4e9bde
Updated get_terminal_size to check for shutil.get_terminal_size first.
Updated get_terminal_size to check for existence of shutil.get_terminal_size function first.
2018-01-22 20:52:58 +05:30
Pradyun Gedam 1c36fbc6c1
Handle stdin correctly when calling subprocesses 2018-01-21 16:47:00 +05:30
GOTO Hayato 4f8541972f The parameter include_editables of pip.get_installed_distributions() is desribed as editables in the docstring (#4975)
Fix the mismatched parameter name in get_installed_distributions().
2018-01-20 11:18:37 +00:00
Pradyun Gedam 729990c986
Round 1 of Cleanups (#4844)
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Anthony Sottile 9762eb02e3 Upgrade syntax in src/pip/_internal
Changes were automated via https://github.com/asottile/pyupgrade

See #4921
2017-12-14 21:59:22 -08:00
Pradyun Gedam 353a13ddff
isort: Include trailing commas 2017-11-21 13:23:59 +05:30
Dustin Ingram ff5b2013a0 Use correct executable name for completion command (#4755) 2017-10-12 10:59:53 +05:30
Chris Jerdonek 3498b19a8b Address issue #1130: make pip ignore GIT_DIR and GIT_WORK_TREE. 2017-10-02 15:35:30 -07:00
Pradyun S. Gedam 11451c54ec Merge branch 'master' into mypy/infrastructure 2017-09-02 16:06:48 +05:30
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/utils/__init__.py (Browse further)