Skip to content

Commit

Permalink
Add support for Python 3.6.
Browse files Browse the repository at this point in the history
Add coverage analysis and model .travis.yml alike the one of zope.app.schema.
  • Loading branch information
Michael Howitz committed May 11, 2017
1 parent f699a57 commit 30c2f68
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 28 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
@@ -0,0 +1,6 @@
[run]
branch = True
source = zope.authentication

[report]
precision = 2
7 changes: 5 additions & 2 deletions .gitignore
@@ -1,4 +1,7 @@
.tox/
*.pyc
*.egg-info
*.pyc
.coverage
.tox/
coverage.xml
docs/_build
htmlcov/
31 changes: 18 additions & 13 deletions .travis.yml
@@ -1,18 +1,23 @@
language: python
sudo: false
matrix:
include:
- python: 3.5
env: TOXENV=py35
env:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
- TOXENV=pypy3
python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy-5.4.1
- pypy3
install:
- pip install tox
- pip install -U pip setuptools
- pip install -U coveralls coverage
- pip install -U -e ".[test]"
script:
- tox
- coverage run -m zope.testrunner --test-path=src --auto-color
after_success:
- coveralls
notifications:
email: false
email: false
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,7 @@ Changes
4.3.0 (unreleased)
------------------

- Add support for Python 3.5.
- Add support for Python 3.5 and 3.6.

- Drop support for Python 2.6 and 3.2.

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -61,6 +61,7 @@ def alltests():
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
Expand Down
43 changes: 31 additions & 12 deletions tox.ini
@@ -1,27 +1,46 @@
[tox]
envlist =
py27,py33,py34,py35,pypy,pypy3,docs
py27,
py33,
py34,
py35,
py36,
pypy,
pypy3,
docs,
coverage-report,

[testenv]
usedevelop = true
commands =
python setup.py -q test -q
# without explicit deps, setup.py test will download a bunch of eggs into $PWD
# (and it seems I can't use zope.dottedname[testing] here, so forget DRY)
coverage run {envbindir}/zope-testrunner --test-path=src {posargs:-vc}
deps =
zope.browser
zope.component
zope.i18nmessageid
zope.interface
zope.schema
zope.security
zope.testing
.[test]
zope.testrunner
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:docs]
basepython = python2.7
commands =
sphinx-build -ab html -d docs/_build/doctrees docs/ docs/_build/html
sphinx-build -ab doctest -d docs/_build/doctrees docs/ docs/_build/doctest
coverage run {envbindir}/sphinx-build -ab doctest -d docs/_build/doctrees docs/ docs/_build/doctest
deps =
{[testenv]deps}
Sphinx
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage-report]
basepython = python2.7
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage erase
coverage combine
coverage html
coverage xml
coverage report --show-missing

0 comments on commit 30c2f68

Please sign in to comment.