Skip to content

Commit

Permalink
Configuring for pure-python-without-pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Feb 14, 2020
1 parent 45478e0 commit 3175647
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 27 deletions.
28 changes: 10 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
bin
build
/develop-eggs/
/eggs
dist
lib
parts
/src/zope.testrunner
.eggs
.tox
*.egg-info
*.pyc
*.pyo
.coverage
.installed.cfg
.mr.developer.cfg
.tox/
bin/
coverage.xml
nosetests.xml
htmlcov

*.dll
*.pyc
*.pyo
*.so
*.egg-info
develop-eggs/
dist/
htmlcov/
lib/
parts/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version: ~> 1.0
language: python
import: zopefoundation/meta:travis-ci-config/minimal-no-pypy.yml
import: zopefoundation/meta:config/pure-python-without-pypy/travis.yml
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[zest.releaser]
create-wheel = yes

[flake8]
doctests = 1
28 changes: 20 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,28 @@ commands =
zope-testrunner --test-path=src []
extras = test

[testenv:coverage]
basepython = python3
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report --fail-under=100
deps =
coverage

[testenv:flake8]
basepython = python3
skip_install = true
deps = flake8
commands = flake8 src setup.py

[testenv:coverage]
basepython = python3
deps =
coverage
commands =
coverage run -m zope.testrunner --test-path=src []
coverage html
coverage report

[coverage:run]
branch = True
source = src

[coverage:report]
precision = 2
exclude_lines = pragma: no cover

[coverage:html]
directory = htmlcov

0 comments on commit 3175647

Please sign in to comment.