|
4 | 4 | import sys |
5 | 5 | from setuptools import setup |
6 | 6 |
|
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') |
10 | 10 | exit(1) |
11 | 11 |
|
12 | 12 | 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+' |
14 | 14 | long_description = '''\ |
15 | 15 | Typing Extensions -- Backported and Experimental Type Hints for Python |
16 | 16 |
|
17 | 17 | The ``typing`` module was added to the standard library in Python 3.5, but |
18 | 18 | 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 |
20 | 20 | able to take advantage of new types added to the ``typing`` module, such as |
21 | 21 | ``typing.Protocol`` or ``typing.TypedDict``. |
22 | 22 |
|
23 | 23 | The ``typing_extensions`` module contains backports of these changes. |
24 | 24 | 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``. |
32 | 26 | ''' |
33 | 27 |
|
34 | 28 | classifiers = [ |
|
38 | 32 | 'License :: OSI Approved :: Python Software Foundation License', |
39 | 33 | 'Operating System :: OS Independent', |
40 | 34 | 'Programming Language :: Python :: 2.7', |
41 | | - 'Programming Language :: Python :: 3.4', |
42 | | - 'Programming Language :: Python :: 3.5', |
43 | 35 | 'Programming Language :: Python :: 3.6', |
44 | 36 | 'Programming Language :: Python :: 3.7', |
45 | 37 | 'Programming Language :: Python :: 3.8', |
|
0 commit comments