Skip to content

Commit 0a9ee8f

Browse files
typing_extensions: Drop support for Python 3.4 & 3.5 (#881)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 1d8fb26 commit 0a9ee8f

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

typing_extensions/setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[metadata]
22
license-file = LICENSE
3+
4+
[options]
5+
python_version = >=3.6

typing_extensions/setup.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,25 @@
44
import sys
55
from setuptools import setup
66

7-
if sys.version_info < (2, 7, 0) or (3, 0, 0) <= sys.version_info < (3, 4, 0):
8-
sys.stderr.write('ERROR: You need Python 2.7 or 3.4+ '
9-
'to install the typing package.\n')
7+
if sys.version_info < (2, 7, 0) or (3, 0, 0) <= sys.version_info < (3, 6, 0):
8+
sys.stderr.write('ERROR: You need Python 2.7 or 3.6+ '
9+
'to install typing_extensions.\n')
1010
exit(1)
1111

1212
version = '3.10.0.2'
13-
description = 'Backported and Experimental Type Hints for Python 3.5+'
13+
description = 'Backported and Experimental Type Hints for Python 3.6+'
1414
long_description = '''\
1515
Typing Extensions -- Backported and Experimental Type Hints for Python
1616
1717
The ``typing`` module was added to the standard library in Python 3.5, but
1818
many new features have been added to the module since then.
19-
This means users of Python 3.5 - 3.6 who are unable to upgrade will not be
19+
This means users of older Python versions who are unable to upgrade will not be
2020
able to take advantage of new types added to the ``typing`` module, such as
2121
``typing.Protocol`` or ``typing.TypedDict``.
2222
2323
The ``typing_extensions`` module contains backports of these changes.
2424
Experimental types that will eventually be added to the ``typing``
25-
module are also included in ``typing_extensions``, such as
26-
``typing.ParamSpec`` and ``typing.TypeGuard``.
27-
28-
Users of Python versions before 3.5 should install and use
29-
the ``typing`` module from PyPI instead of using this one, unless specifically
30-
writing code that must be compatible with multiple Python versions or requires
31-
experimental types.
25+
module are also included in ``typing_extensions``.
3226
'''
3327

3428
classifiers = [
@@ -38,8 +32,6 @@
3832
'License :: OSI Approved :: Python Software Foundation License',
3933
'Operating System :: OS Independent',
4034
'Programming Language :: Python :: 2.7',
41-
'Programming Language :: Python :: 3.4',
42-
'Programming Language :: Python :: 3.5',
4335
'Programming Language :: Python :: 3.6',
4436
'Programming Language :: Python :: 3.7',
4537
'Programming Language :: Python :: 3.8',

0 commit comments

Comments
 (0)