-
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.
* Remove no longer needed buildout.cfg. It only used to generate the `bin/test` script.
- Loading branch information
Showing
15 changed files
with
166 additions
and
50 deletions.
There are no files selected for viewing
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,39 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
# | ||
# EditorConfig Configuration file, for more details see: | ||
# http://EditorConfig.org | ||
# EditorConfig is a convention description, that could be interpreted | ||
# by multiple editors to enforce common coding conventions for specific | ||
# file types | ||
|
||
# top-most EditorConfig file: | ||
# Will ignore other EditorConfig files in Home directory or upper tree level. | ||
root = true | ||
|
||
|
||
[*] # For All Files | ||
# Unix-style newlines with a newline ending every file | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
# Set default charset | ||
charset = utf-8 | ||
# Indent style default | ||
indent_style = space | ||
# Max Line Length - a hard line wrap, should be disabled | ||
max_line_length = off | ||
|
||
[*.{py,cfg,ini}] | ||
# 4 space indentation | ||
indent_size = 4 | ||
|
||
[*.{yml,zpt,pt,dtml}] | ||
# 2 space indentation | ||
indent_size = 2 | ||
|
||
[{Makefile,.gitmodules}] | ||
# Tab indentation (no size specified, but view as 4 spaces) | ||
indent_style = tab | ||
indent_size = unset | ||
tab_width = unset |
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,13 +1,24 @@ | ||
bin/ | ||
eggs/ | ||
develop-eggs/ | ||
parts/ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
*.egg-info/ | ||
*.profraw | ||
*.pyc | ||
*.pyo | ||
.coverage | ||
.coverage.* | ||
.installed.cfg | ||
*.py[co] | ||
.mr.developer.cfg | ||
.tox/ | ||
__pycache__/ | ||
bin/ | ||
build/ | ||
coverage.xml | ||
develop-eggs/ | ||
dist/ | ||
*.egg-info/ | ||
.tox/ | ||
.coverage | ||
docs/_build | ||
eggs/ | ||
htmlcov/ | ||
lib/ | ||
lib64 | ||
parts/ | ||
pyvenv.cfg |
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,7 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
[meta] | ||
template = pure-python | ||
commit-id = 6880d297483d0c3206e8ba275b01d93cd0fa4d72 | ||
fail-under = 0 | ||
|
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,29 +1,34 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- pypy | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- pypy | ||
- pypy3 | ||
|
||
matrix: | ||
include: | ||
- name: "lint" | ||
python: 3.7 | ||
env: TOXENV="lint" | ||
- name: "coverage" | ||
python: 3.7 | ||
env: TOXENV="coverage" | ||
after_success: | ||
- coveralls | ||
|
||
install: | ||
- pip install -U pip | ||
- pip install -U tox-travis coveralls | ||
|
||
script: | ||
- coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress | ||
- tox | ||
|
||
after_success: | ||
- coveralls | ||
notifications: | ||
email: false | ||
|
||
install: | ||
- pip install -U pip setuptools | ||
- pip install -U coveralls coverage | ||
- pip install -U -e ".[test]" | ||
|
||
|
||
cache: pip | ||
|
||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log |
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 @@ | ||
include *.py | ||
include *.txt | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
include *.rst | ||
include *.txt | ||
include buildout.cfg | ||
include .travis.yml | ||
include tox.ini | ||
include .coveragerc | ||
exclude .coverage | ||
|
||
exclude MANIFEST.in | ||
|
||
recursive-include docs *.bat | ||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs Makefile | ||
|
||
recursive-include src *.gif | ||
recursive-include src *.pt | ||
recursive-include src *.rst | ||
recursive-include src *.txt | ||
recursive-include src *.xml | ||
recursive-include src *.zcml |
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 |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[flake8] | ||
doctests = 1 | ||
|
||
[check-manifest] | ||
ignore = | ||
.editorconfig | ||
.meta.cfg | ||
.travis.yml |
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__) # pragma: no cover | ||
__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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover | ||
__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
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,16 +1,60 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
[tox] | ||
envlist = | ||
lint, | ||
py27, | ||
pypy, | ||
py35, | ||
py36, | ||
py37, | ||
py38, | ||
pypy, | ||
pypy3, | ||
coverage | ||
|
||
[testenv] | ||
usedevelop = true | ||
deps = | ||
zope.testrunner | ||
commands = | ||
zope-testrunner --test-path=src [] | ||
extras = test | ||
|
||
[testenv:lint] | ||
basepython = python3 | ||
skip_install = true | ||
deps = | ||
py27,pypy: mock | ||
flake8 | ||
check-manifest | ||
check-python-versions | ||
commands = | ||
flake8 src setup.py | ||
check-manifest | ||
check-python-versions . | ||
|
||
[testenv:coverage] | ||
basepython = python3 | ||
deps = | ||
coverage | ||
coverage-python-version | ||
zope.testrunner | ||
commands = | ||
coverage run -m zope.testrunner --test-path=src [] | ||
coverage html | ||
coverage report -m --fail-under=0 | ||
|
||
[coverage:run] | ||
branch = True | ||
plugins = coverage_python_version | ||
source = src | ||
|
||
[coverage:report] | ||
precision = 2 | ||
exclude_lines = | ||
pragma: nocover | ||
except ImportError: | ||
raise NotImplementedError | ||
if __name__ == '__main__': | ||
|
||
[coverage:html] | ||
directory = htmlcov |