Skip to content

Commit

Permalink
Setup tox/travis to run Python 3 tests, use Py3 branches of dependenc…
Browse files Browse the repository at this point in the history
…ies.
  • Loading branch information
hannosch committed Jan 22, 2017
1 parent 15ad55e commit d9fbcee
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: python
sudo: false
python:
- 2.7
# - 3.3
# - 3.4
# - 3.5
# - pypy
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
install:
- pip install zc.buildout
- buildout bootstrap
Expand Down
8 changes: 8 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ parts = interpreter test coverage

sources-dir = develop
auto-checkout =
AccessControl
Persistence
RestrictedPython

[sources]
AccessControl = git ${remotes:github}/AccessControl pushurl=${remotes:github_push}/AccessControl branch=py3-pure-python
Persistence = git ${remotes:github}/Persistence pushurl=${remotes:github_push}/Persistence branch=py3-c-extension-2
RestrictedPython = git ${remotes:github}/RestrictedPython pushurl=${remotes:github_push}/RestrictedPython branch=Python3_update

[versions]
DocumentTemplate =
# Use newer ExtensionClass with C Extension compatible with Python 3
ExtensionClass = 4.2.0

[interpreter]
recipe = zc.recipe.egg
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
# "Programming Language :: Python :: 3.3",
# "Programming Language :: Python :: 3.4",
# "Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
# "Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: PyPy",
],
install_requires=[
'AccessControl',
Expand Down
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
[tox]
envlist =
py27
# py33,py34,py35,pypy
py27,py34,py35,py36,pypy

[testenv]
install_command = pip install --no-cache-dir --no-binary=:all: {opts} {packages}
commands =
zope-testrunner --test-path={envsitepackagesdir} -s DocumentTemplate -s TreeDisplay
deps =
zope.testrunner
./develop/RestrictedPython
./develop/Persistence
./develop/AccessControl
setenv =
PIP_NO_CACHE = 1

0 comments on commit d9fbcee

Please sign in to comment.