Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Badges - coveralls and coverage environment - 100% coverage - Ensure configure.zcml can be loaded with a test.
- Loading branch information
Showing
11 changed files
with
147 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,11 @@ | ||
[run] | ||
source = zope.ptresource | ||
|
||
[report] | ||
precision = 2 | ||
exclude_lines = | ||
pragma: no cover | ||
if __name__ == '__main__': | ||
raise NotImplementedError | ||
self.fail | ||
raise AssertionError |
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 |
---|---|---|
|
@@ -8,3 +8,5 @@ bin/ | |
develop-eggs/ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- pypy | ||
- pypy3 | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3.5-5.8.0 | ||
install: | ||
- pip install tox-travis | ||
- pip install -U setuptools pip | ||
- pip install -U coveralls coverage | ||
- pip install -U -e .[test] | ||
script: | ||
- tox | ||
- coverage run -m zope.testrunner --test-path=src | ||
after_success: | ||
- coveralls | ||
notifications: | ||
email: false | ||
cache: pip |
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,18 +1,33 @@ | ||
``zope.ptresource`` | ||
=================== | ||
===================== | ||
``zope.ptresource`` | ||
===================== | ||
|
||
.. image:: https://img.shields.io/pypi/v/zope.ptresource.svg | ||
:target: https://pypi.python.org/pypi/zope.ptresource/ | ||
:alt: Latest release | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/zope.ptresource.svg | ||
:target: https://pypi.org/project/zope.ptresource/ | ||
:alt: Supported Python versions | ||
|
||
.. image:: https://travis-ci.org/zopefoundation/zope.ptresource.png?branch=master | ||
:target: https://travis-ci.org/zopefoundation/zope.ptresource | ||
|
||
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.ptresource/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zopefoundation/zope.ptresource?branch=master | ||
|
||
|
||
.. note:: | ||
|
||
This package is at present not reusable without depending on a large | ||
chunk of the Zope Toolkit and its assumptions. It is maintained by the | ||
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_. | ||
|
||
This package provides a "page template" resource class, a resource which | ||
content is processed with Zope Page Templates engine before returning to | ||
client. | ||
This package provides a "page template" `resource class | ||
<https://pypi.python.org/pypi/zope.browserresource>`_, a resource | ||
whose content is processed with the `Zope Page Templates | ||
<https://pypi.python.org/pypi/zope.pagetemplate>`_ engine before | ||
being returned to client. | ||
|
||
The resource factory class is registered for "pt", "zpt" and "html" file | ||
extensions in package's ``configure.zcml`` file. | ||
extensions in the package's ``configure.zcml`` file. |
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 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover |
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,14 +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 | ||
zope-testrunner --test-path=src [] | ||
deps = | ||
zope.browserresource | ||
zope.interface | ||
zope.pagetemplate | ||
zope.publisher | ||
zope.security | ||
zope.testing | ||
.[test] | ||
|
||
[testenv:coverage] | ||
usedevelop = true | ||
basepython = | ||
python2.7 | ||
commands = | ||
coverage run -m zope.testrunner --test-path=src [] | ||
coverage report --fail-under=100 | ||
deps = | ||
{[testenv]deps} | ||
coverage |