Skip to content

Commit

Permalink
Add support for Python 3.6
Browse files Browse the repository at this point in the history
Also add support for pip caching on Travis, and DRY with dependencies
in tox.ini.
  • Loading branch information
jamadden committed Apr 21, 2017
1 parent 0ecab6f commit c9bd7aa
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 31 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Expand Up @@ -5,11 +5,18 @@ python:
- 3.3
- 3.4
- 3.5
- pypy
- 3.6
- pypy-5.4.1
- pypy3
install:
- pip install tox-travis
- pip install -U pip setuptools
- pip install -U -e .[test]
script:
- tox
- zope-testrunner --test-path=src --auto-color --auto-progress
notifications:
email: false
after_success:
- coveralls
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
6 changes: 5 additions & 1 deletion CHANGES.rst
Expand Up @@ -4,6 +4,8 @@ Changes
4.3.1 (unreleased)
------------------

- Add support for Python 3.6.

- Accept both new and old locations for ``__code__`` in
``zope.publisher.publisher.unwrapMethod``. This restores compatibility with
Products.PythonScripts, where parameters were not extracted.
Expand All @@ -14,12 +16,14 @@ Changes

* http://bugs.python.org/issue18394
* https://hg.python.org/cpython/rev/c0e9ba7b26d5
* https://github.com/zopefoundation/zope.publisher/pull/13

We now keep a reference to the FieldStorage till we are finished
processing the request.

- Fix POST with large values on Python 3. Related to cgi.FieldStorage
doing the decoding in Python 3.
doing the decoding in Python 3. See `pull 16
<https://github.com/zopefoundation/zope.publisher/pull/16>`_.

4.3.0 (2016-07-04)
------------------
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -64,6 +64,7 @@ def read(*rnames):
'Programming Language :: Python :: 3.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',
'Natural Language :: English',
Expand Down
31 changes: 4 additions & 27 deletions tox.ini
@@ -1,26 +1,13 @@
[tox]
envlist =
py27,py33,py34,py35,pypy,pypy3
py27,py33,py34,py35,py36,pypy,pypy3

[testenv]
commands =
zope-testrunner --test-path=src {posargs:-pvc}
# without explicit deps, setup.py test will download a bunch of eggs into $PWD
deps =
six
zope.testing
zope.testrunner
zope.browser
zope.component
zope.configuration
zope.contenttype >= 3.5
zope.event
zope.exceptions
zope.i18n
zope.interface
zope.location
zope.proxy
zope.security
.[test]

[testenv:pypy3]
# On certain platforms, at least OS X, pypy3 does not correctly read
Expand All @@ -38,20 +25,10 @@ commands =
# So, we uninstall that from the environment, and then install the editable
# version, before running nosetests.
pip uninstall -y zope.publisher
pip install -e .
pip install -e .[test]
nosetests --with-xunit --with-xcoverage
deps =
nose
coverage
nosexcover
zope.browser
zope.component
zope.configuration
zope.contenttype >= 3.5
zope.event
zope.exceptions
zope.i18n
zope.interface
zope.location
zope.proxy
zope.security
.[test]

0 comments on commit c9bd7aa

Please sign in to comment.