Skip to content

Commit

Permalink
Add testing and document support for Python 3.7
Browse files Browse the repository at this point in the history
Python 3.7 was released on June 27, 2018.
  • Loading branch information
Jon Dufresne committed Jul 14, 2018
1 parent 97379aa commit 363e417
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,9 +53,6 @@ matrix:
- python: 3.6
env: TOXENV=doc
allow_failures:
- env:
- TOXENV=py37
- WITH_GCOV=1
- env:
- TOXENV=pypy

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 363e417

Please sign in to comment.