Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The usual project gardening: - Badges - Use zope.testrunner for namespace path issue (drop setup.py test) - Modern tox.ini/travis.yml - Universal wheels - Enable coverage environment and coveralls - Coverage is at 88%. There's a lot to do, I'll follow up with a separate PR.
- Loading branch information
Showing
9 changed files
with
88 additions
and
66 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,12 @@ | ||
[run] | ||
source = zope.tales | ||
|
||
[report] | ||
precision = 2 | ||
exclude_lines = | ||
pragma: no cover | ||
if __name__ == '__main__': | ||
raise NotImplementedError | ||
self.fail | ||
raise AssertionError | ||
raise unittest.Skip |
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 |
---|---|---|
|
@@ -10,3 +10,5 @@ bin | |
build | ||
develop-eggs | ||
parts | ||
.coverage | ||
htmlcov/ |
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,12 +1,24 @@ | ||
``zope.tales`` | ||
============== | ||
================ | ||
``zope.tales`` | ||
================ | ||
|
||
.. image:: https://img.shields.io/pypi/v/zope.tales.svg | ||
:target: https://pypi.python.org/pypi/zope.tales/ | ||
:alt: Latest release | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/zope.tales.svg | ||
:target: https://pypi.org/project/zope.tales/ | ||
:alt: Supported Python versions | ||
|
||
.. image:: https://travis-ci.org/zopefoundation/zope.tales.png?branch=master | ||
:target: https://travis-ci.org/zopefoundation/zope.tales | ||
|
||
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.tales/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zopefoundation/zope.tales?branch=master | ||
|
||
Template Attribute Language - Expression Syntax | ||
|
||
See | ||
See | ||
|
||
* http://web.archive.org/web/20120814103624/http://wiki.zope.org:80/ZPT/TALESSpecification13 | ||
* https://docs.zope.org/zope2/zope2book/AppendixC.html#tales-overview |
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,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
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,31 +1,20 @@ | ||
[tox] | ||
envlist = | ||
py27,py33,py34,py35,pypy,pypy3 | ||
py27,py34,py35,py36,pypy,pypy3,coverage | ||
|
||
[testenv] | ||
commands = | ||
python setup.py -q test -q | ||
# without explicit deps, setup.py test will download a bunch of eggs into $PWD | ||
zope-testrunner --test-path=src [] | ||
deps = | ||
zope.interface | ||
zope.testing | ||
zope.testrunner | ||
|
||
.[test] | ||
|
||
[testenv:coverage] | ||
usedevelop = true | ||
basepython = | ||
python2.7 | ||
commands = | ||
# The installed version messes up nose's test discovery / coverage reporting | ||
# So, we uninstall that from the environment, and then install the editable | ||
# version, before running nosetests. | ||
pip uninstall -y zope.tales | ||
pip install -e . | ||
nosetests --with-xunit --with-xcoverage | ||
coverage run -m zope.testrunner --test-path=src [] | ||
coverage report --fail-under=88 | ||
deps = | ||
nose | ||
{[testenv]deps} | ||
coverage | ||
nosexcover | ||
zope.interface | ||
zope.testing | ||
zope.testrunner |