1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

24 commits

Author SHA1 Message Date
Tzu-ping Chung 1135ac041d Move lru_cache to utils for reuse 2020-09-26 15:26:05 +08:00
Pradyun Gedam 25ab172b55
Update linter: isort 2020-09-23 19:52:28 +05:30
Pradyun Gedam 6fa4a9a0a7 Clean up code style changes
Toward minimizing style changes in the overall PR diff, or toward
consistency with the future use of black (in cases where I wasn't sure
of a good way to minimize the diff).
2020-07-17 14:33:19 +07:00
Nguyễn Gia Phong cb8d81d135 Nitpick logging calls 2020-07-17 14:33:19 +07:00
Jason R. Coombs 3511d3d493 Convert the remaining '%' formatters to '.format'. Fixes #6973. 2020-03-06 12:43:03 -05:00
Deepak Sharma d31cf696e8 string_formatting 2020-01-30 20:33:00 +05:30
Chris Hunt 8dc6919875 Fix mypy checks on Windows
Previously we were making unguarded calls to non-Windows-only APIs. Mypy
only automatically excludes these from platform-specific checks when
inside conditions.
2019-12-29 00:33:28 -05:00
Chris Hunt 355c303e12 Lazy evaluate has_tls result
This avoids an unnecessary unconditional import of ssl and urllib3 in
compat.
2019-12-09 20:48:58 +08:00
Chris Hunt f4e40d7a09 Wrap HAS_TLS in a function
Next we'll refactor the value to be computed lazily.
2019-12-09 20:48:58 +08:00
Christopher Hunt b802331fd2
Simplify abi3 usage in pep425tags (#7367)
abi3 refers to the CPython stable ABI, so we should only ensure it
applies in that particular case.

This simplifies the logic in get_platforms() and makes us more
compatible with the behavior of packaging.tags, which only includes abi3
for cpython_tags() and only the literal "abi3".
2019-11-19 08:24:04 +08:00
Chris Hunt 0a6305a398 Remove unused compat.native_str 2019-11-10 18:06:24 -05:00
Maxim Kurnikov 3692097cca add per-file disallow_untyped_defs=False, and set it to True globally 2019-09-29 23:31:15 +02:00
Hugo 97f719cee2 Explicitly refer to Python 2.7 instead of <=3.4 2019-09-08 19:39:50 +03:00
Hugo fd5ffb6346 Fix for Python 4: replace unsafe six.PY3 with PY2 2019-09-08 14:47:19 +03:00
Hugo 11ec2a3b17 Remove redundant check 2019-09-08 11:53:58 +03:00
Hugo 5f40c21f29 Simplify using PY2 and PY3 constants 2019-07-25 10:10:04 +03:00
Hugo 8f32b8f425 Drop support for EOL Python 3.4 2019-07-23 22:49:21 +03: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 761b2064f4 Remove models/search_scope.py's dependency on download.py. 2019-06-21 14:41:45 -07:00
Maxim Kurnikov f77b8ca051 remove #noqa: F401 2019-02-22 14:17:07 +03:00
Pradyun Gedam 22fe45d462
Fix new issues found in mypy 0.620 -> 0.650 2018-12-18 11:20:14 +05:30
cytolentino ecf90d4792 Add typing to compat.py 2018-11-05 12:12:03 +00:00
Mickaël Schoentgen 860deed7db Fix DeprecationWarning: the imp module is deprecated in favour of importlib in pep425tags.py 2018-08-16 21:08:23 +02:00
Pradyun Gedam 3ecd1f17c5
Move pip._internal.compat to pip._internal.utils.compat 2018-07-29 16:46:26 +05:30
Renamed from src/pip/_internal/compat.py (Browse further)