From c46e91211f37535cd686c32c2ff1341e61d90117 Mon Sep 17 00:00:00 2001 From: gram Date: Tue, 2 Nov 2021 11:23:53 +0100 Subject: [PATCH] Drop Python 2.7 support --- .travis.yml | 3 +-- docs/contributing.rst | 2 +- setup.py | 4 +--- tox.ini | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2ff0fc06f..64cbf723e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,9 @@ language: python python: - - "2.7" - - "3.5" - "3.6" - "3.7" - "3.8" + - "3.9" - "pypy" - "pypy3" install: diff --git a/docs/contributing.rst b/docs/contributing.rst index 63639a597..3d30e1889 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -36,7 +36,7 @@ You can also run the tests with tox:: $ tox -Tox will run the tests in Pythons 2.5, 2.6, 2.7, 3.2, 3.3, 3.4, and +Tox will run the tests in Pythons 3.6, 3.7, 3.8, 3.9, and PyPy, if they're available. diff --git a/setup.py b/setup.py index 197757f58..d7b3b0ff9 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ author_email='james@mozilla.com', url='https://github.com/jsocol/pystatsd', license='MIT', + python_requires=">=3.6.0", packages=find_packages(), include_package_data=True, package_data={'': ['README.rst']}, @@ -21,10 +22,7 @@ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', diff --git a/tox.ini b/tox.ini index f75a9787b..a3ac83c9f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,pypy,py34,py35,py36,py37 +envlist = pypy,py36,py37,py38,py39 [testenv] deps=