From fcdd14dacc813c2dc2034f4aff651af4ea8df80a Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 6 Dec 2018 16:02:15 -0800 Subject: [PATCH] Use 'dist: xenial' in Travis to simplify configuration Allows using Python version 3.7 without sudo declarations. Travis officially added support for Xenial on 2018-11-08. https://blog.travis-ci.com/2018-11-08-xenial-release Add Python 3.7 to tox.ini and setup.py as well. --- .travis.yml | 15 ++++----------- setup.py | 1 + tox.ini | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 10070e5976..4d6add447d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ +dist: xenial +sudo: false language: python cache: pip python: + - 3.7 - 3.6 - 3.5 - 3.4 @@ -20,15 +23,5 @@ matrix: include: - python: 2.7 env: TEST_PYCODESTYLE=1 - - python: 3.6 - env: TEST_PYCODESTYLE=1 - # python 3.7 has to be specified manually in the matrix - # https://github.com/travis-ci/travis-ci/issues/9815 - - python: 3.7 - dist: xenial - sudo: true - env: TEST_HIREDIS=0 - python: 3.7 - dist: xenial - sudo: true - env: TEST_HIREDIS=1 + env: TEST_PYCODESTYLE=1 diff --git a/setup.py b/setup.py index a4ee39e3ac..efe09ba364 100644 --- a/setup.py +++ b/setup.py @@ -69,5 +69,6 @@ def PyTest(x): 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ] ) diff --git a/tox.ini b/tox.ini index 8b851de28d..82f897657c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.8 -envlist = {py27,py34,py35,py36}-{plain,hiredis}, pycodestyle +envlist = {py27,py34,py35,py36,py37}-{plain,hiredis}, pycodestyle [testenv] deps =