Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Add support for Python 3.6 and 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Dec 15, 2018
1 parent b9b88e3 commit 9f98d86
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
language: python
python:
- 2.7
- 3.6
matrix:
include:
- python: 3.7
dist: xenial
install:
- pip install -U pip setuptools
- pip install -U coverage coveralls zope.testrunner
Expand Down
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ Changes
=======


0.6 (unreleased)
1.0 (unreleased)
----------------

- Update tests to `zope.testbrowser >= 5`.

- Add support for Python 3.6 and 3.7.


0.5 (2013-03-09)
----------------
Expand Down
20 changes: 14 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read(path):

setup(
name='z3c.preference',
version='0.6.dev0',
version='1.0.dev0',
author="Michael Howitz",
author_email="zope-dev@zope.org",
description="UI for zope.preference using z3c.pagelet and z3c.form.",
Expand All @@ -40,18 +40,26 @@ def read(path):
license="ZPL 2.1",
keywords="zope3 bluebream z3c preference ui",
classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 3 - Beta',
'Environment :: Web Environment',
'Framework :: Zope :: 3'
'Intended Audience :: Developers',
'License :: OSI Approved',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope :: 3'
],
url='http://pypi.python.org/pypi/z3c.preference',
url='https://github.com/zopefoundation/z3c.preference',
packages=find_packages('src'),
include_package_data=True,
package_dir={'': 'src'},
Expand Down
2 changes: 1 addition & 1 deletion src/z3c/preference/categories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ the preferences are stored in the principal annotations:
The form displays the titles and descriptions of the categories:

>>> browser.open('http://localhost/++preferences++/app')
>>> print browser.contents
>>> print(browser.contents)
<!DOCTYPE ...
...General Settings...
...Settings for the whole app...
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
envlist =
flake8,
py27,
py36,
py37,
coverage,

[testenv]
Expand All @@ -13,7 +15,7 @@ deps =
zope.testrunner

[testenv:coverage]
basepython = python2.7
basepython = python3.7
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report --fail-under=93
Expand Down

0 comments on commit 9f98d86

Please sign in to comment.