From 482a7ef9101f4ea9bb3d4c14ec69c2c91ff2895b Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 19 Dec 2019 13:18:35 -0700 Subject: [PATCH 1/3] build: test against py3+ --- noxfile.py | 2 +- setup.py | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/noxfile.py b/noxfile.py index e6fa230a..088ce82c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,6 @@ import nox -SUPPORTED_PY_VERSIONS = ["2.7", "3.5", "3.6", "3.7"] +SUPPORTED_PY_VERSIONS = ["3.5", "3.6", "3.7", "3.8"] def _install_dev_packages(session): diff --git a/setup.py b/setup.py index 4fc840b2..d5880608 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,6 @@ from setuptools import setup -if sys.version_info <= (2, 4): - error = "Requires Python Version 2.5 or above... exiting." - print >>sys.stderr, error - sys.exit(1) - - requirements = ["requests>=2.20.0,<3.0"] # use io.open until python2.7 support is dropped @@ -38,10 +32,10 @@ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Topic :: Internet", ], ) From a1905c8450ec6c90ceb133c3b14aa36624073f0e Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 19 Dec 2019 13:21:55 -0700 Subject: [PATCH 2/3] build: adjust travis matrix for python3 instead of python 2 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 75d8e4c4..dc90fb60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,6 @@ dist: xenial matrix: include: - - python: '2.7' - env: NOXSESSION="tests-2.7" - python: '3.5' env: NOXSESSION="tests-3.5" - python: '3.6' @@ -12,7 +10,9 @@ matrix: - python: '3.7' env: NOXSESSION="tests-3.7" sudo: required # required for Python 3.7 (github.com/travis-ci/travis-ci#9069) - - python: '2.7' + - python: '3.8' + env: NOXSESSION="tests-3.8" + - python: '3.6' env: NOXSESSION="docs" install: From d267712c69f262596ef0e0c597bd7f82ecf4c1ed Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 19 Dec 2019 13:25:09 -0700 Subject: [PATCH 3/3] docs: document change to python 2 support --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f4d9f0e..8607f4ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Removed +- Python 2 is no longer supported + ## [v3.1.4] ### Changed - `APIError.__str__` should always return a str (#328)