Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python3 support, testcoverage and bugfixes (#10)
* Bypass bootstrap * Add tox config with coverage; initial python3 compatibility fixes * Namespace "set" doctest queries to bring them in line with the "value" doctests * Bringing testcoverage on `set` to 100% surfaces multiple bugs. Just goes to show: untested code is buggy code. * Increase doctest coverage on query.Result and query.NoResult * Turn tests into a package to make space for more test modules * Reproduce doctest fixture in unittest land * Test cover query.And 100%, remove unreachable code * Test cover query.Or 100% * Test cover query.Difference 100% * Test cover query.In 100% * Test cover query.Term 100% * Test cover query.Timer 100% * Test cover query.TimingAwareCache 100% * Remove unused transaction cache * Test cover query.Query 100%, clarify `timing` arg type * Update changelog * Add pypy to tox runs * Support python 3.4, 3.5, 3.6 in addition to python 2.7
- Loading branch information
1 parent
30c4aaf
commit 70e4c7b
Showing
13 changed files
with
766 additions
and
130 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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
*.egg-info/ | ||
*.py[co] | ||
.coverage* | ||
.installed.cfg | ||
.tox/ | ||
__pycache__/ | ||
bin/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
*.egg-info/ | ||
.tox/ | ||
bin/ | ||
eggs/ | ||
develop-eggs/ | ||
htmlcov/ | ||
include/ | ||
lib/ | ||
parts/ | ||
.installed.cfg | ||
pip-selfcheck.json | ||
pyvenv.cfg | ||
share/ |
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,8 +1,20 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3 | ||
install: | ||
- python bootstrap.py | ||
- bin/buildout | ||
- pip install -U pip setuptools | ||
- pip install -U zope.testrunner coverage coveralls | ||
- pip install -U -e .[test] | ||
script: | ||
- bin/test -pvc | ||
- 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,4 @@ | ||
# NOTE: setuptools and zc.buildout versions must be in sync with: | ||
# ztk-versions.cfg | ||
setuptools==38.2.4 | ||
zc.buildout==2.10.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
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
Oops, something went wrong.