Commit Graph

11194 Commits

Author SHA1 Message Date
Jon Dufresne e28badf979 Remove unnecessary type annotation in BlueEmojiBar 2020-12-25 08:54:58 -08:00
Jon Dufresne 17d72b748f Replace utils.compat.lru_cache with stdlib functools.lru_cache
The stdlib version has been available since Python 3.2.
2020-12-25 08:51:15 -08:00
Jon Dufresne 653f12b5e7 Replace vendored ipaddress with stdlib
The vendored copy is unnecessary since dropping Python 2 support. The
module has been available in the stdlib since Python 3.3.
2020-12-25 08:47:38 -08:00
Jon Dufresne ba40f58ecc Remove encoding cookie from Python source files
Unnecessary since dropping Python 2. Python now decodes files as utf-8
by default.
2020-12-25 07:26:07 -08:00
Jon Dufresne 2e38024991 Drop u prefix from str literals
Unnecessary since dropping Python 2 support.

This makes one test case from test_str_to_display a duplicate and so has
been removed.
2020-12-25 07:26:06 -08:00
Pradyun Gedam 1e558d7c1d
Merge pull request #9355 from jdufresne/str-text
Replace typing.Text with str
2020-12-25 10:03:35 +00:00
Jon Dufresne 5e11687cbd Replace typing.Text with str
Using typing.Text is unnecessary since dropping Python 2 support.

In Python 3, typing.Text is a simple alias of str. It exists as a
backward compatibility shim for Python 2.
2020-12-24 16:40:55 -08:00
Jon Dufresne c148bcc1aa Use short Python3 super() syntax 2020-12-24 15:11:51 -08:00
Richard Si a61586cdcf Fix broken email link in docs feedback banners
'docs-feedback+ux/pip.pypa.io@pypa.io' isn't a valid email address, so
I replaced it with the right email address according to this GitHub
comment:

https://github.com/pypa/pip/issues/8783#issuecomment-685823974
2020-12-24 18:07:15 -05:00
Pradyun Gedam f30a02c7c2
Merge pull request #9344 from jdufresne/future-import
Remove __future__ imports
2020-12-24 18:27:22 +00:00
Jon Dufresne f32adaf09b Remove __future__ imports
Unnecessary since dropping Python 2.
2020-12-24 08:38:09 -08:00
Pradyun Gedam 7b3682c923
Merge pull request #9340 from jdufresne/unused-ignore
Remove obsolete "# type: ignore" comments
2020-12-24 08:36:27 +00:00
Jon Dufresne 53234e578f Remove obsolete "# type: ignore" comments
Obsolete since dropping Python 2 support.

Add the mypy setting "warn_unused_ignores = True" to catch these
earlier.
2020-12-23 15:42:48 -08:00
Pradyun Gedam 1eebb12550
Merge pull request #9335 from hugovk/rm-2
Remove redundant Python 2.7 code
2020-12-23 17:49:30 +00:00
Jon Dufresne 1f3b0300df Remove "universal" from "bdist_wheel" configuration
Since dropping Python 2 support, the wheel is no longer universal. See
the wheel docs:
https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels

> If your project … is expected to work on both Python 2 and 3, you will
> want to tell wheel to produce universal wheels by adding this to your
> setup.cfg file:
2020-12-23 08:41:48 -08:00
Stéphane Bidoul 41e4547542
Merge pull request #9333 from sbidoul/pre-commit-speed-sbi
Improve local pre-commit experience
2020-12-23 12:47:20 +01:00
Hugo van Kemenade add5cfa514 Replace compat shim with shutil.get_terminal_size() 2020-12-22 22:41:58 +02:00
Hugo van Kemenade 9db97546b3 os.curdir is already a str
Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
2020-12-22 22:41:58 +02:00
Hugo van Kemenade 209ca8de8f Remove default allow_stderr_warning=False 2020-12-22 16:40:01 +02:00
Hugo van Kemenade 2426744203 "" is clearer than str() 2020-12-22 16:38:25 +02:00
Hugo van Kemenade d509a27ad4 Review updates 2020-12-22 15:21:17 +02:00
Hugo van Kemenade 33f48e2b72 Replace more six 2020-12-22 10:22:20 +02:00
Hugo van Kemenade 817ee23051 Remove redundant Python 2.7 code 2020-12-22 09:06:26 +02:00
Stéphane Bidoul ccbf085095
Improve local pre-commit experience 2020-12-21 20:10:44 +01:00
Pradyun Gedam e6d2bb2341
📰 2020-12-21 19:10:19 +00:00
Pradyun Gedam be9637f7f5
Merge pull request #9189 from pradyunsg/drop-old-python-support
Drop support for Python 2.7 and Python 3.5
2020-12-20 18:57:41 +00:00
Pradyun Gedam c7a72060ba
📰 2020-12-20 12:03:14 +00:00
Pradyun Gedam 4f4cf38c46
Update passage on Python 2 support 2020-12-20 12:03:00 +00:00
Pradyun Gedam 726b66f67f
Merge pull request #9325 from jdufresne/isort-url
Update isort URL: timothycrosley/isort → PyCQA/isort
2020-12-20 02:03:40 +00:00
Jon Dufresne c0a7444de6 Update isort URL: timothycrosley/isort → PyCQA/isort 2020-12-19 15:28:02 -08:00
Pradyun Gedam 79f1b59335
We have no deprecated versions of Python now 2020-12-19 19:55:09 +00:00
Pradyun Gedam 7281ed9d98
No longer print a deprecation warning on 2.7/3.5
These versions are no longer supported.
2020-12-19 19:55:04 +00:00
Pradyun Gedam 0befae128a
Drop CI info about Python 2.7/3.5 2020-12-19 19:55:04 +00:00
Pradyun Gedam b2bcb2611d
Bump to PyPy 3.6 2020-12-19 19:55:04 +00:00
Pradyun Gedam 527550d5a7
Drop Python 2.7 and 3.5 from CI 2020-12-19 19:55:04 +00:00
Pradyun Gedam 872fd658c4
Add `Python 3 :: Only` classifier 2020-12-19 19:55:03 +00:00
Pradyun Gedam aaae3c5c32
Update classifiers to drop Python 2.5,3.5 2020-12-18 18:02:42 +00:00
Pradyun Gedam 7c775c86df
Update python_requires in setup.py
I am really happy to make this nice and short.
2020-12-18 18:02:41 +00:00
Pradyun Gedam 77fa5dfb9e
Present a nicer error in pip search 2020-12-18 17:50:36 +00:00
Pradyun Gedam 89d50dd833
Merge pull request #9305 from nikitos3000/pip-download-ignore-requires-python
Add `--ignore-requires-python` support to pip download.
2020-12-18 15:49:35 +00:00
Nikita Chepanov f8b03eefe2 Add `--ignore-requires-python` support to pip download 2020-12-17 12:40:01 -05:00
Pradyun Gedam 7abd8bd69e
Merge pull request #9302 from pradyunsg/release/20.3.3 2020-12-15 15:43:09 +00:00
Pradyun Gedam fe1fd0a0be
Bump for development 2020-12-15 15:21:16 +00:00
Pradyun Gedam a387de10d8
Bump for release 2020-12-15 15:21:16 +00:00
Pradyun Gedam b4fb710154
Merge pull request #9293 from pypa/revert-9264-new-resolver-dont-abort-on-inconsistent-candidate 2020-12-15 14:19:54 +00:00
Pradyun Gedam 95c3ae32a3
📰 2020-12-15 14:17:29 +00:00
Pradyun Gedam 7165ab8cb9
Revert "Skip candidate not providing valid metadata" 2020-12-15 10:17:20 +00:00
Pradyun Gedam 03d5f56b10
Merge pull request #9291 from uranusjr/skip-search-tests
Skip pip search tests unless explicitly requested
2020-12-15 10:01:36 +00:00
Tzu-ping Chung 145be2eaf2 Skip pip search tests unless explicitly requested 2020-12-15 17:23:20 +08:00
Pradyun Gedam 2b0b426b77
Merge pull request #9281 from pradyunsg/release/20.3.2 2020-12-15 01:48:41 +00:00