Skip to content

Commit

Permalink
Add support for Python 3.6.
Browse files Browse the repository at this point in the history
Additionally:
- add flake8 check (with currently many issues displayed)
- check for coverage (does not work well because subprocesses are used in the test runs)
  • Loading branch information
Michael Howitz committed Nov 7, 2017
1 parent 4bb0f90 commit c6b2ab0
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
branch = True
source = plone.recipe.zope2instance

[report]
precision = 2
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ include/
lib/
parts
pip-selfcheck.json
/.coverage
/.installed.cfg
/.tox
/coverage.xml
/htmlcov
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: python
python:
- 2.7
- 3.5
- 3.6
install:
- pip install setuptools==33.1.1 zc.buildout==2.5.3
- buildout bootstrap
Expand Down
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Breaking changes:

- Require at least ZODB 5 and Zope 4.0b1.


- Python 3 compatibility.
- Drop support for Plone 4.3 and 5.0.

New features:

- Add wsgi support
[tschorr]

- Add support for Python 3.5 and 3.6.

Bug fixes:

- Python 3 compatibility with sixer
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"Framework :: Buildout",
"Framework :: Plone",
"Framework :: Plone :: 5.1",
"Framework :: Zope2",
"Framework :: Zope :: 4",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
],
packages=find_packages('src'),
Expand Down
39 changes: 39 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[tox]
envlist =
flake8,
py27,
py35,
py36,
coverage,

skip_missing_interpreters = False

[testenv]
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} -n install test
coverage run {envbindir}/test --all {posargs:-vc}
skip_install = true
deps =
setuptools==33.1.1
zc.buildout
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage]
basepython = python2.7
deps = coverage
setenv =
COVERAGE_FILE=.coverage
commands =
coverage erase
coverage combine
coverage html
coverage xml
coverage report

[testenv:flake8]
basepython = python2.7
deps = flake8
commands = flake8 --doctests src setup.py

0 comments on commit c6b2ab0

Please sign in to comment.