Expand support for testing with python 3.5

As that's the state of the art.

For travis we install python 3.5 as the base python and then test
from there. This gets around some limitations in travis.
This commit is contained in:
Chris Dent 2015-12-28 12:07:56 +00:00
parent b726dd8d8e
commit 8339e86025
4 changed files with 12 additions and 8 deletions

View File

@ -1,5 +1,7 @@
sudo: false sudo: false
language: python language: python
python:
- "3.5"
install: install:
- pip install tox - pip install tox
script: script:
@ -9,12 +11,13 @@ env:
- TOXENV=py32 - TOXENV=py32
- TOXENV=py33 - TOXENV=py33
- TOXENV=py34 - TOXENV=py34
- TOXENV=py35
- TOXENV=pypy - TOXENV=pypy
- TOXENV=pypy3 - TOXENV=pypy3
- TOXENV=pep8 - TOXENV=pep8
- TOXENV=py34-failskip - TOXENV=py35-failskip
- TOXENV=py34-limit - TOXENV=py35-limit
- TOXENV=py34-prefix - TOXENV=py35-prefix
notifications: notifications:
irc: "chat.freenode.net#gabbi" irc: "chat.freenode.net#gabbi"

View File

@ -11,7 +11,7 @@ Gabbi is a tool for running HTTP tests where requests and responses
are represented in a declarative YAML-based form. See the docs_ for are represented in a declarative YAML-based form. See the docs_ for
more details on features and formats. more details on features and formats.
Gabbi is tested with Python 2.7, 3.4 and pypy and pypy3. Gabbi is tested with Python 2.7, 3.4, 3.5 and pypy and pypy3.
Tests can be run using `unittest`_ style test runners or from the Tests can be run using `unittest`_ style test runners or from the
command line with a `gabbi-run`_ script. command line with a `gabbi-run`_ script.

View File

@ -18,6 +18,7 @@ classifier =
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Topic :: Internet :: WWW/HTTP :: WSGI Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Software Development :: Testing Topic :: Software Development :: Testing

View File

@ -1,7 +1,7 @@
[tox] [tox]
minversion = 1.6 minversion = 1.6
skipsdist = True skipsdist = True
envlist = py27,py33,py34,py35,pypy,pypy3,pep8,limit,failskip,docs,py34-prefix,py34-limit,py34-failskip envlist = py27,py33,py34,py35,pypy,pypy3,pep8,limit,failskip,docs,py35-prefix,py35-limit,py35-failskip
[testenv] [testenv]
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
@ -15,7 +15,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = {posargs} commands = {posargs}
[testenv:py34-prefix] [testenv:py35-prefix]
setenv = GABBI_PREFIX=/snoopy setenv = GABBI_PREFIX=/snoopy
[testenv:pep8] [testenv:pep8]
@ -29,10 +29,10 @@ commands = {toxinidir}/test-limit.sh
[testenv:failskip] [testenv:failskip]
commands = {toxinidir}/test-failskip.sh commands = {toxinidir}/test-failskip.sh
[testenv:py34-limit] [testenv:py35-limit]
commands = {toxinidir}/test-limit.sh commands = {toxinidir}/test-limit.sh
[testenv:py34-failskip] [testenv:py35-failskip]
commands = {toxinidir}/test-failskip.sh commands = {toxinidir}/test-failskip.sh
[testenv:cover] [testenv:cover]