Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Badge readme - Add coveralls and tox coverage environment - Install ZCML deps as test deps for 100% coverage and to test configure.zcml on CI.
- Loading branch information
Showing
11 changed files
with
119 additions
and
65 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,9 @@ | ||
[run] | ||
source = zope.size | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
if __name__ == '__main__': | ||
raise NotImplementedError | ||
self.fail |
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,5 +10,6 @@ bin | |
build | ||
develop-eggs | ||
parts | ||
|
||
.coverage | ||
htmlcov/ | ||
docs/_build/ |
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,2 +1,15 @@ | ||
include *.txt bootstrap.py buildout.cfg tox.ini | ||
recursive-include src *.py *.txt *.zcml | ||
include *.txt | ||
include *.rst | ||
include bootstrap.py | ||
include buildout.cfg | ||
include tox.ini | ||
include .travis.yml | ||
include .coveragerc | ||
|
||
recursive-include src *.py | ||
recursive-include src *.txt | ||
recursive-include src *.zcml | ||
|
||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs Makefile |
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,30 @@ | ||
``zope.size`` | ||
============= | ||
=============== | ||
``zope.size`` | ||
=============== | ||
|
||
.. image:: https://img.shields.io/pypi/v/zope.size.svg | ||
:target: https://pypi.python.org/pypi/zope.size/ | ||
:alt: Latest release | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/zope.size.svg | ||
:target: https://pypi.org/project/zope.size/ | ||
:alt: Supported Python versions | ||
|
||
.. image:: https://travis-ci.org/zopefoundation/zope.size.png?branch=master | ||
:target: https://travis-ci.org/zopefoundation/zope.size | ||
|
||
.. image:: https://readthedocs.org/projects/zopesize/badge/?version=latest | ||
:target: http://zopesize.readthedocs.io/en/latest/?badge=latest | ||
:target: https://zopesize.readthedocs.io/en/latest/ | ||
:alt: Documentation Status | ||
|
||
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.size/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zopefoundation/zope.size?branch=master | ||
|
||
This package provides a definition of simple interface that allows | ||
applications to retrieve the size of the object for displaying and for sorting. | ||
|
||
The default adapter is also provided. It expects objects to have the ``getSize`` | ||
method that returns size in bytes. However, the adapter won't crash if an | ||
object doesn't have one and will show size as "not available" instead. | ||
|
||
Development is hosted at https://github.com/zopefoundation/zope.size | ||
Development is hosted at https://zopesize.readthedocs.io |
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 +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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
[tox] | ||
envlist = py27,py33,py34,py35,pypy,pypy3 | ||
envlist = py27,py34,py35,py36,pypy,pypy3 | ||
|
||
[testenv] | ||
commands = python setup.py -q test -q | ||
deps = zope.testrunner | ||
commands = | ||
python setup.py -q test -q | ||
deps = | ||
.[test] | ||
|
||
[testenv:coverage] | ||
usedevelop = true | ||
basepython = | ||
python2.7 | ||
commands = | ||
coverage run setup.py -q test -q | ||
coverage report --fail-under=100 | ||
deps = | ||
{[testenv]deps} | ||
coverage |