Skip to content

Commit

Permalink
Add support for Python 3.6, 3.7 and PyPy3.
Browse files Browse the repository at this point in the history
Drop support for Python 2.6 and 3.3.
  • Loading branch information
Michael Howitz committed Oct 18, 2018
1 parent be45bff commit 5d1311a
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[run]
source = z3c.batching
branch = True

[report]
precision = 2
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
language: python
sudo: false
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- pip install tox-travis
- pip install -U pip setuptools
- pip install -U coveralls coverage
- pip install -U -e .[test]
script:
- tox
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip
4 changes: 3 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ CHANGES
2.1.1 (unreleased)
------------------

- Nothing changed yet.
- Add support for Python 3.6, 3.7 and PyPy3.

- Drop support for Python 2.6 and 3.3.


2.1.0 (2016-06-05)
Expand Down
1 change: 0 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[buildout]
index = http://download.zope.org/zope3.4
develop = .
parts = test

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,21 @@ def read(*rnames):
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
url='https://pypi.org/project/z3c.batching',
'Framework :: Zope',
'Framework :: Zope :: 3',
],
url='https://github.com/zopefoundation/z3c.batching',
license='ZPL 2.1',
packages=find_packages('src'),
package_dir={'': 'src'},
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
[tox]
envlist = py26,py27,py33,py34,py35,pypy
envlist = py27,py34,py35,py36,py37,pypy,pypy3,coverage3

[testenv]
deps =
zope.testrunner
commands =
zope-testrunner --test-path=src {posargs:-pvc}
zope-testrunner --test-path=src {posargs:-vc}

[testenv:coverage2]
usedevelop = true
basepython = python2
basepython = python2.7
deps =
{[testenv]deps}
coverage
commands =
coverage run -m zope.testrunner --test-path=src {posargs:-pvc}
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
coverage report -m

[testenv:coverage3]
usedevelop = true
basepython = python3
basepython = python3.6
deps =
{[testenv]deps}
coverage
commands =
coverage run -m zope.testrunner --test-path=src {posargs:-pvc}
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
coverage report -m

0 comments on commit 5d1311a

Please sign in to comment.