summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-06 16:02:15 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-06 16:02:15 -0800
commitfcdd14dacc813c2dc2034f4aff651af4ea8df80a (patch)
treee2fba4c9a95cd99fafcd93b1b44f7d2a6a8f5a0b
parentfdd40a58db6e6d6b6b929f52eab91c49be411a98 (diff)
downloadredis-py-fcdd14dacc813c2dc2034f4aff651af4ea8df80a.tar.gz
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.
-rw-r--r--.travis.yml15
-rw-r--r--setup.py1
-rw-r--r--tox.ini2
3 files changed, 6 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index 10070e5..4d6add4 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 a4ee39e..efe09ba 100644
--- a/setup.py
+++ b/setup.py
@@ -69,5 +69,6 @@ setup(
'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 8b851de..82f8976 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 =