From 6f11f5ec5bdfe751e600a42a7c1e6ed6bec16ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=92=BB=20=F0=9F=92=AA=20=F0=9F=98=89=20James=20Hood?= Date: Tue, 11 Jun 2019 11:08:22 -0700 Subject: [PATCH 1/3] docs: update supported python versions Also updates Travis build to test against Python 3.7. --- .travis.yml | 3 +++ DEVELOPMENT_GUIDE.rst | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41bc941e79..d9974e8ac1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ language: python matrix: include: + - python: 3.7 + env: + - TOXENV=py37 - python: 3.6 env: - TOXENV=py36 diff --git a/DEVELOPMENT_GUIDE.rst b/DEVELOPMENT_GUIDE.rst index 0c9c4fadab..c9f0d0294f 100755 --- a/DEVELOPMENT_GUIDE.rst +++ b/DEVELOPMENT_GUIDE.rst @@ -17,10 +17,8 @@ steps manually. 1. Install Python Versions ~~~~~~~~~~~~~~~~~~~~~~~~~~ -Python 2.7 is our officially supported Python version. We have a future goal to support to Python3.6 but the code base -currently does not work with Python3. To make future migration easier, any new code we write must be compatible with -Python3. Follow the idioms from this `excellent cheatsheet`_ to make sure your code is compatible with both Python -versions. +Our officially supported Python versions are 2.7, 3.6, and 3.7. Follow the idioms from this `excellent cheatsheet`_ to +make sure your code is compatible with both Python 2.7 and 3 versions. Setup Python locally using `pyenv`_ From 94c63d7ae0d01e689e703ca8d0f77ea4365e28af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=92=BB=20=F0=9F=92=AA=20=F0=9F=98=89=20James=20Hood?= Date: Tue, 11 Jun 2019 12:28:27 -0700 Subject: [PATCH 2/3] travis fix --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d9974e8ac1..68e50f0a65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ # Enable container based builds sudo: false +dist: xenial # required for Python >= 3.7 language: python matrix: From bbd4a72d1ea9ed85a27bbae3c4f6ea18894b85ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=92=BB=20=F0=9F=92=AA=20=F0=9F=98=89=20James=20Hood?= Date: Tue, 11 Jun 2019 13:27:31 -0700 Subject: [PATCH 3/3] update tox.ini --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 637b5707ac..7a4d5af96e 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py27, py36 +envlist = py27, py36, py37 [testenv:py27] # Set this environment variable **only** for Python2.7. In Py >= 3.3, the hash seed property was set to a random