From 7221bee7cb30e33df31e1abd13fa934f21be3aa9 Mon Sep 17 00:00:00 2001 From: Jon Banafato Date: Mon, 18 May 2020 20:16:22 -0400 Subject: [PATCH] Update supported Python versions list Per https://python-release-cycle.glitch.me/, Python 3.5 - 3.8 (and soon to be 3.9) are the only currently supported Python versions. This change updates the tox and travis configs, setup.py classifiers, and the contributing guide to reflect those versions. Most notably, Python 2.7 reached end of life in April of this year and will no longer see any new releases. --- .travis.yml | 12 ++++++------ CONTRIBUTING.rst | 2 +- setup.py | 5 ++--- tox.ini | 4 ++-- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 324b044..4379243 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,21 +4,21 @@ language: python matrix: include: + - python: 3.8 + env: TOX_ENV=py38 + - python: 3.7 + env: TOX_ENV=py37 - python: 3.6 env: TOX_ENV=py36 - python: 3.5 env: TOX_ENV=py35 - - python: 3.4 - env: TOX_ENV=py34 - - python: 2.7 - env: TOX_ENV=py27 - python: pypy env: TOX_ENV=pypy - - python: 3.6 + - python: 3.8 env: TOX_ENV=flake8 # Use tox to run tests on Travis-CI to keep one unified method of running tests in any environment -install: +install: - pip install coverage coveralls tox # Command to run tests, e.g. python setup.py test diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index e6ae58a..092e73a 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -99,7 +99,7 @@ Before you submit a pull request, check that it meets these guidelines: 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. -3. The pull request should work for Python 2.7, 3.4, 3.5, 3.6, and PyPy. Check +3. The pull request should work for Python 3.5, 3.6, 3.7, 3.8 and PyPy. Check https://travis-ci.org/bndr/pipreqs/pull_requests and make sure that the tests pass for all supported Python versions. diff --git a/setup.py b/setup.py index 1afa42f..171f2c5 100755 --- a/setup.py +++ b/setup.py @@ -44,12 +44,11 @@ setup( 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - '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', ], test_suite='tests', entry_points={ diff --git a/tox.ini b/tox.ini index 28a1dfa..a9bd69e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py34, py35, py36, pypy, flake8 +envlist = py35, py36, py37, py38, pypy, flake8 [testenv] setenv = @@ -9,7 +9,7 @@ deps = -r{toxinidir}/requirements.txt [testenv:flake8] -basepython = python3.6 +basepython = python3.8 commands = flake8 pipreqs deps = -r{toxinidir}/requirements.txt