From 363e417e37daeb97439bcc34f0a9a50c336ce5f6 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Fri, 13 Jul 2018 21:09:29 -0700 Subject: [PATCH] Add testing and document support for Python 3.7 Python 3.7 was released on June 27, 2018. --- .travis.yml | 7 +++---- setup.py | 1 + tox.ini | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3c7e989..9ce0cdf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,10 +33,12 @@ matrix: - python: pypy env: - TOXENV=pypy - - python: 3.7-dev + - python: 3.7 env: - TOXENV=py37 - WITH_GCOV=1 + dist: xenial + sudo: true - python: 2.7 env: - TOXENV=py2-nosasltls @@ -51,9 +53,6 @@ matrix: - python: 3.6 env: TOXENV=doc allow_failures: - - env: - - TOXENV=py37 - - WITH_GCOV=1 - env: - TOXENV=pypy diff --git a/setup.py b/setup.py index e1914aa..e66ecbd 100644 --- a/setup.py +++ b/setup.py @@ -94,6 +94,7 @@ class OpenLDAP2: 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', # Note: when updating Python versions, also change .travis.yml and tox.ini 'Topic :: Database', diff --git a/tox.ini b/tox.ini index f7751d0..7dee491 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ [tox] # Note: when updating Python versions, also change setup.py and .travis.yml -envlist = py27,py34,py35,py36,{py2,py3}-nosasltls,doc,py3-trace,coverage-report +envlist = py27,py34,py35,py36,py37,{py2,py3}-nosasltls,doc,py3-trace,coverage-report minver = 1.8 [testenv] @@ -19,6 +19,7 @@ passenv = WITH_GCOV commands = {envpython} -bb -Werror \ "-Wignore:the imp module is deprecated:DeprecationWarning" \ "-Wignore:the imp module is deprecated:PendingDeprecationWarning" \ + "-Wignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working:DeprecationWarning" \ -m coverage run --parallel setup.py \ clean --all \ test