Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing_extensions: Drop support for Python 3.4 & 3.5 #881

Merged
merged 13 commits into from Sep 15, 2021
3 changes: 3 additions & 0 deletions typing_extensions/setup.cfg
@@ -1,2 +1,5 @@
[metadata]
license-file = LICENSE

[options]
python_version = >=3.6
18 changes: 5 additions & 13 deletions typing_extensions/setup.py
Expand Up @@ -4,31 +4,25 @@
import sys
from setuptools import setup

if sys.version_info < (2, 7, 0) or (3, 0, 0) <= sys.version_info < (3, 4, 0):
sys.stderr.write('ERROR: You need Python 2.7 or 3.4+ '
if sys.version_info < (2, 7, 0) or (3, 0, 0) <= sys.version_info < (3, 6, 0):
sys.stderr.write('ERROR: You need Python 2.7 or 3.6+ '
'to install the typing package.\n')
JelleZijlstra marked this conversation as resolved.
Show resolved Hide resolved
exit(1)

version = '3.10.0.2'
description = 'Backported and Experimental Type Hints for Python 3.5+'
description = 'Backported and Experimental Type Hints for Python 3.6+'
long_description = '''\
Typing Extensions -- Backported and Experimental Type Hints for Python

The ``typing`` module was added to the standard library in Python 3.5, but
many new features have been added to the module since then.
This means users of Python 3.5 - 3.6 who are unable to upgrade will not be
This means users of older Python versions who are unable to upgrade will not be
able to take advantage of new types added to the ``typing`` module, such as
``typing.Protocol`` or ``typing.TypedDict``.

The ``typing_extensions`` module contains backports of these changes.
Experimental types that will eventually be added to the ``typing``
module are also included in ``typing_extensions``, such as
``typing.ParamSpec`` and ``typing.TypeGuard``.

Users of Python versions before 3.5 should install and use
the ``typing`` module from PyPI instead of using this one, unless specifically
writing code that must be compatible with multiple Python versions or requires
experimental types.
module are also included in ``typing_extensions``.
'''

classifiers = [
Expand All @@ -38,8 +32,6 @@
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand Down