Skip to content

Commit

Permalink
[Test] Py3 vs zcatalog branch (#7)
Browse files Browse the repository at this point in the history
* Add support for Python 3.5 and 3.6.
  • Loading branch information
ale-rt authored and Michael Howitz committed Jul 5, 2018
1 parent f6150fe commit 6f15dc4
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ language: python
sudo: false
python:
- 2.7
- 3.5
- 3.6
install:
- pip install coveralls coverage
- pip install -U setuptools==33.1.1
Expand Down
3 changes: 1 addition & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Products.CMFUid Changelog

- Require `Zope >= 4`.

- Prepare for Python 2 / 3 compatibility.
[pbauer]
- Add support for Python 3.5 and 3.6.

- Adapt tests to the new indexing operations queueing.
Part of PLIP 1343: https://github.com/plone/Products.CMFPlone/issues/1343
Expand Down
6 changes: 3 additions & 3 deletions Products/CMFUid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def initialize(context):

from Products.CMFCore import utils

import UniqueIdAnnotationTool
import UniqueIdGeneratorTool
import UniqueIdHandlerTool
from . import UniqueIdAnnotationTool
from . import UniqueIdGeneratorTool
from . import UniqueIdHandlerTool

tools = (
UniqueIdAnnotationTool.UniqueIdAnnotationTool,
Expand Down
8 changes: 8 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
extends = https://raw.githubusercontent.com/zopefoundation/Zope/master/versions.cfg
develop = .
parts = test
extensions = mr.developer
auto-checkout =

[sources]
Products.ZCatalog = git https://github.com/zopefoundation/Products.ZCatalog.git branch=master

[versions]
Products.ZCatalog = >= 4.1.1

[test]
recipe = zc.recipe.testrunner
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def _read(name):
"Framework :: Zope :: 4",
"Intended Audience :: Developers",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
Expand All @@ -44,7 +48,8 @@ def _read(name):
'eggtestinfo',
],
install_requires=[
'Products.CMFCore >= 2.4.0b3',
'Products.CMFCore >= 2.4.0dev',
'Products.ZCatalog >= 4.1.1',
'Zope',
'setuptools',
],
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[tox]
envlist =
py27,
py35,
py36,
coverage-report,

[testenv]
Expand All @@ -10,7 +12,8 @@ commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir}
coverage run {envbindir}/test --all {posargs:-vc}
deps =
zc.buildout
setuptools >= 39
zc.buildout >= 2.11
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}
Expand Down

0 comments on commit 6f15dc4

Please sign in to comment.