Pradyun Gedam
58c594c06b
Prepare isort for black
2020-09-23 21:47:47 +05:30
Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Tzu-ping Chung
8491ce7723
Refactor and clarify get_distribution() behavior
...
The call to get_installed_distributions() now passes all flags
excplicitly so they are more obvious and less likely to be misunderstood
in the future. The behavior also documented in the function docstring.
The search_distribution() helper function is renamed with a leading
underscore to make it clear that it is intended as a helper function to
get_distribution().
2020-08-05 03:07:07 +08:00
Tzu-ping Chung
e459763d81
Also look for non-local when searching for dists
...
This matches the behavior of pkg_resources.get_distribution(), which
this function intends to replace.
2020-08-05 03:07:07 +08:00
Chris Hunt
d241f0d30a
Add partition from itertools recipes
...
From https://docs.python.org/3/library/itertools.html ,
adapted for Python 2 and with types added.
This will be used in the next commit.
2020-07-09 18:23:17 -04:00
Devesh Kumar Singh
fb05730898
Align write_output types with logger.info
2020-07-07 15:23:05 +05:30
Devesh Kumar Singh
6c1030ca95
Fix comment order for retrying module
2020-07-06 19:17:26 +05:30
Devesh Kumar Singh
04fedfe53c
Create custom get_distribution function
2020-07-06 13:42:05 +05:30
Devesh Kumar Singh
021eddcb70
Remove try/catch and use next
2020-06-10 00:36:03 +05:30
Devesh Kumar Singh
76a130105c
Fix src/pip with flake8-bugbear
2020-06-10 00:36:03 +05:30
Devesh Kumar Singh
ae2f9c645a
Remove unused cached_property
2020-06-05 22:11:15 +05:30
Tzu-ping Chung
dd50a03f10
Use unicode for filesystem stuff on Python 2
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
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
Nguyễn Gia Phong
26b76f6f11
Move tabulate to utils.misc and test it
2020-04-07 17:35:47 +07:00
Jason R. Coombs
3511d3d493
Convert the remaining '%' formatters to '.format'. Fixes #6973 .
2020-03-06 12:43:03 -05:00
Pradyun Gedam
cdae7277ef
Merge pull request #7596 from uranusjr/6446-link-url-quoting
...
Fix incorrect quoting Link.url
2020-02-14 16:00:43 +05:30
Deepak Sharma
d31cf696e8
string_formatting
2020-01-30 20:33:00 +05:30
Tzu-ping Chung
cdd7821d92
Fix incorrect quoting Link.url
...
Cherry-picked manually from atugushev:fix-issue-6446.
Co-Authored-By: Albert Tugushev <albert@tugushev.ru>
2020-01-14 16:12:11 +08:00
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
Pradyun Gedam
6c515125c2
Merge pradyunsg:revert/6864 into master ( #7557 )
...
Revert addition of un-suffixed pip CLI entry points for invocation check on Windows
2020-01-07 08:16:38 +00:00
Pradyun Gedam
d9d801f818
Drop no-suffix checks for pip-from-PATH
2020-01-06 19:29:56 +05:30
Stéphane Bidoul (ACSONE)
3ae13f7d28
Move is_wheel_installed to utils
2020-01-05 23:52:40 +01:00
Maxim Kurnikov
38fd95aa6a
update to mypy==0.750
2019-12-12 11:08:36 +01:00
BorisZZZ
4659fe16bd
#6426 Cannot install packages on Docker in Ubuntu in WSL (Windows). ( #6427 )
2019-11-28 12:05:17 +08:00
Xavier Fernandez
95576102c5
Tweak format_size utility function to include a space ( #7399 )
2019-11-25 22:09:10 +01:00
Pradyun Gedam
898d105649
Clean up distutils_scheme types ( #7300 )
2019-11-06 12:02:01 +05:30
Chris Hunt
912f5763c6
Move utils.misc.cast to avoid circular import
2019-11-04 20:16:36 -05:00
Pradyun Gedam
647d30ec77
Move hash_file to utils.misc
...
Why: Allows for better code reuse, without introducing dependency
between wheel->wheel_builder.
2019-11-04 11:51:08 +05:30
Krishna Oza
74972037b5
Simplify an interestingly written conditional ( #7161 )
2019-10-08 12:52:00 +05:30
Emil Burzo
7e50674393
extract function to misc
2019-10-01 18:55:13 +03:00
Pradyun Gedam
d1bfeec18a
Move subprocessing related utilities to utils.subprocess
2019-09-30 11:15:06 +05:30
Maxim Kurnikov
3692097cca
add per-file disallow_untyped_defs=False, and set it to True globally
2019-09-29 23:31:15 +02:00
Chris Jerdonek
0435316fde
Move path_to_url() to utils/urls.py.
2019-09-24 02:01:52 -07:00
Chris Hunt
5656364112
Move supporting functions to utils.unpacking.
2019-09-17 23:40:02 -04:00
Chris Hunt
6a8b47d20b
Move file type info to utils.filetypes.
2019-09-17 23:40:02 -04:00
Chris Hunt
6a5bd723ec
Move unpack_* from utils.misc to utils.unpacking.
2019-09-17 23:40:02 -04:00
Christopher Hunt
47293435bb
Merge pull request #6976 from atugushev/fix-issue-4910
...
Fix rmtree_errorhandler to skip nonexistent dirs
2019-09-17 22:40:46 -04:00
Christopher Hunt
b1bc41b2c3
Merge pull request #6914 from sbidoul/pip6892-sbi
...
uninstall: remove symlinks created by flit install --symlink
2019-09-17 21:14:28 -04:00
Pradyun Gedam
a39e881479
Fix pip.exe upgrade pip fails on Windows
...
Merge pull request #6928 from atugushev/fix-issue-6924
2019-09-07 14:14:29 +05:30
Albert Tugushev
cdcacff8a1
Address review comments
...
Fix some comments and variable names.
Execute rmtree_errorhandler in an except block to test whether
it reraises an exception.
2019-09-06 10:55:40 +03:00
Albert Tugushev
b5c1c76203
Fix failing test and revisit is_readonly flag
2019-09-05 17:49:58 +03:00
Albert Tugushev
85a5ae12d2
Fix rmtree_errorhandler to skip non-existing dirs
2019-09-05 00:25:35 +03:00
Albert Tugushev
3c9770d9b2
Redact single-part login credentials from URLs ( #6921 )
2019-08-26 15:50:07 -07:00
Albert Tugushev
d8b6296227
Fix pip.exe upgrade pip fails on Windows
...
It fails if it already satisfies the requirement, when
pip has been modifying via `pip.exe install ...` command.
2019-08-26 16:05:48 +03:00
Frost Ming
8ac22141c2
Support including port part in trusted-host ( #6909 )
2019-08-25 16:26:01 -07:00
Pradyun Gedam
d2b7082932
Fix bypassed pip upgrade warning on Windows
...
Merge pull request #6864 from atugushev/fix-issue-6841
2019-08-25 19:08:28 +05:30
Stéphane Bidoul (ACSONE)
885fdc3754
Correctly uninstall symlinks
2019-08-24 23:04:47 +02:00
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