-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python 3.4/5/6, drop 3.3 and 2.6
Fixes #2 - Rename .txt -> .rst - Universal wheels - Modern tox.ini and .travis.yml - Add coverage environment and coveralls - Use zope.testrunner for the namespace path issue.
- Loading branch information
Showing
14 changed files
with
115 additions
and
77 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 = z3c.macro | ||
|
||
[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 |
---|---|---|
|
@@ -9,3 +9,5 @@ bin | |
develop-eggs | ||
docs | ||
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,11 +1,20 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.6 | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3 | ||
install: | ||
- pip install . | ||
- pip install -U pip setuptools | ||
- pip install -U coverage coveralls | ||
- pip install -U -e .[test] | ||
script: | ||
- python setup.py test -q | ||
- 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. image:: https://img.shields.io/pypi/v/z3c.macro.svg | ||
:target: https://pypi.python.org/pypi/z3c.macro/ | ||
:alt: Latest release | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/z3c.macro.svg | ||
:target: https://pypi.org/project/z3c.macro/ | ||
:alt: Supported Python versions | ||
|
||
.. image:: https://travis-ci.org/zopefoundation/z3c.macro.svg?branch=master | ||
:target: https://travis-ci.org/zopefoundation/z3c.macro | ||
|
||
.. image:: https://coveralls.io/repos/github/zopefoundation/z3c.macro/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zopefoundation/z3c.macro?branch=master | ||
|
||
This package provides an adapter and a TALES expression for a more explicit and | ||
more flexible macro handling using the adapter registry for macros. |
This file was deleted.
Oops, something went wrong.
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,7 +1 @@ | ||
# this is a namespace package | ||
try: | ||
import pkg_resources | ||
pkg_resources.declare_namespace(__name__) | ||
except ImportError: | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) | ||
__import__('pkg_resources').declare_namespace(__name__) |
File renamed without changes.
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
File renamed without changes.
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,21 +1,20 @@ | ||
[tox] | ||
envlist = | ||
py26,py27,py33 | ||
py27,py34,py35,py36,pypy,pypy3,coverage | ||
|
||
[testenv] | ||
commands = | ||
python setup.py test -q | ||
zope-testrunner --test-path=src [] | ||
deps = | ||
setuptools | ||
zope.component | ||
zope.configuration | ||
zope.interface | ||
zope.pagetemplate | ||
zope.publisher | ||
zope.schema | ||
zope.tales | ||
z3c.pt | ||
z3c.ptcompat | ||
z3c.template | ||
zope.browserpage | ||
zope.testing | ||
.[test] | ||
|
||
[testenv:coverage] | ||
usedevelop = true | ||
basepython = | ||
python2.7 | ||
commands = | ||
coverage run -m zope.testrunner --test-path=src [] | ||
coverage report --fail-under=95 | ||
deps = | ||
{[testenv]deps} | ||
coverage |