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

Drop Python 2 support #29

Merged
merged 1 commit into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ env:

jobs:
include:
- python: 2.7
- python: 3.4
- python: 3.5.0
- python: 3.5.1
- python: 3.5.2
Expand Down
4 changes: 1 addition & 3 deletions mypy_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

from typing import Any

# NOTE: This module must support Python 2.7 in addition to Python 3.x

import sys
# _type_check is NOT a part of public typing API, it is used here only to mimic
# the (convenient) behavior of types provided by typing module.
Expand Down Expand Up @@ -98,7 +96,7 @@ class Point2D(TypedDict):
label: str

The latter syntax is only supported in Python 3.6+, while two other
syntax forms work for Python 2.7 and 3.2+
syntax forms work for 3.2+
"""

# Argument constructors for making more-detailed Callables. These all just
Expand Down
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# NOTE: This package must support Python 2.7 in addition to Python 3.x

from setuptools import setup

version = '0.5.0-dev'
Expand All @@ -17,8 +15,6 @@
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Expand All @@ -41,7 +37,4 @@
license='MIT License',
py_modules=['mypy_extensions'],
classifiers=classifiers,
install_requires=[
'typing >= 3.5.3; python_version < "3.5"',
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 2.9.1
skip_missing_interpreters = true
envlist = py27, py35, py36, py37, py38, py39, py310, py311
envlist = py35, py36, py37, py38, py39, py310, py311

[testenv]
description = run the test driver with {basepython}
Expand Down