-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also be sure that the doctests are run on CI and in tox. Make them work for all versions of Python. Use modern badge locations in README.rst since the old one was broken.
- Loading branch information
Showing
9 changed files
with
103 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[run] | ||
source = zope.dublincore | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
if __name__ == '__main__': | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,30 @@ | ||
[tox] | ||
envlist = | ||
py27,py33,py34,py35,pypy,pypy3,coverage,docs | ||
py27,py34,py35,py36,pypy,pypy3,docs | ||
|
||
[testenv] | ||
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) | ||
zope-testrunner --test-path=src [] | ||
sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest | ||
deps = | ||
persistent | ||
pytz | ||
six | ||
zope.annotation | ||
zope.component[zcml] | ||
zope.configuration | ||
zope.datetime | ||
zope.interface | ||
zope.lifecycleevent | ||
zope.location | ||
zope.schema | ||
zope.security[zcml] | ||
zope.testing | ||
zope.testrunner | ||
.[test,docs] | ||
|
||
[testenv:coverage] | ||
usedevelop = true | ||
basepython = | ||
python2.7 | ||
commands = | ||
nosetests --with-xunit --with-xcoverage | ||
commands = | ||
coverage run -m zope.testrunner --test-path=src [] | ||
coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest | ||
coverage report | ||
deps = | ||
{[testenv]deps} | ||
nose | ||
coverage | ||
nosexcover | ||
|
||
|
||
[testenv:docs] | ||
basepython = | ||
python2.7 | ||
commands = | ||
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html | ||
sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest | ||
deps = | ||
{[testenv]deps} | ||
Sphinx | ||
repoze.sphinx.autointerface |