Skip to content

Commit

Permalink
Add support for Python 3.4 up to 3.6.
Browse files Browse the repository at this point in the history
I had to switch to zope.testrunner for running the tests using tox as otherwise
`ImportError: No module named 'zope.interface‘` is raised on Python 3.5+.
  • Loading branch information
Michael Howitz committed May 9, 2017
1 parent c327c01 commit c4bd20d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
before_install:
- CONFIG_FILE=$(sudo -u postgres psql postgres -c "SHOW config_file;" -q -t | head -1)
- 'CONFIG_FILE="${CONFIG_FILE:1}"'
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changes

- Drop support for Python 2.6 and 3.2.

- Add support for Python 3.4 up to 3.6.

- *Attention:* This versions currently does not support ``transaction >= 1.5``. (See https://github.com/zopefoundation/zope.sqlalchemy/issues/20)


Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@
keywords='zope zope3 sqlalchemy',
classifiers=[
"Framework :: Zope3",
"Framework :: Pyramid",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"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",
"License :: OSI Approved :: Zope Public License",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
envlist =
py27,
py33,
py34,
py35,
py36,
# pypy fails because of some weird test error that might be an issue with
# sqlalchemy, pypy, and issues with object identity.

[testenv]
deps =
zope.testing
.[test]
zope.testrunner
commands =
python setup.py test -q
zope-testrunner --test-path=src {posargs:-pvc}

0 comments on commit c4bd20d

Please sign in to comment.