Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Mark as compatible with Python 2 and 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Jun 11, 2017
1 parent d076156 commit 79e77e9
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parts
*.pyo
*.so
.installed.cfg
.tox
develop-eggs/
eggs/
*.egg-info/
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
install:
- python bootstrap.py
- bin/buildout
- pip install -U setuptools==33.1.1
- pip install zc.buildout
- buildout bootstrap
- buildout
script:
- bin/test -v1
notifications:
Expand Down
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Changelog
=========

4.1 (unreleased)
----------------
4.0.1 (unreleased)
------------------

- Mark as compatible with Python 2 and 3.

4.0 (2016-07-23)
----------------
Expand Down
17 changes: 11 additions & 6 deletions buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
[buildout]
extends = https://raw.githubusercontent.com/zopefoundation/Zope/master/versions.cfg

extends =
https://raw.githubusercontent.com/zopefoundation/Zope/master/versions.cfg
develop = .
parts = interpreter test
parts =
interpreter
test

[versions]
Products.OFSP =

[interpreter]
recipe = zc.recipe.egg
interpreter = python
eggs = Products.OFSP
interpreter = py
eggs =
Products.OFSP
tox

[test]
recipe = zc.recipe.testrunner
eggs = Products.OFSP
eggs =
Products.OFSP
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ ignore =
bootstrap.py

[flake8]
ignore = N801,N802,N803,N805,N806,N812,E301
ignore =
exclude = bootstrap.py

[bdist_wheel]
universal = 1

[zest.releaser]
create-wheel = yes
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

from setuptools import setup, find_packages

__version__ = '4.0.1.dev0'


setup(name='Products.OFSP',
version='4.1.dev0',
version=__version__,
url='http://pypi.python.org/pypi/Products.OFSP',
license='ZPL 2.1',
description="General Zope 2 help screens.",
Expand All @@ -33,9 +36,14 @@
"License :: OSI Approved :: Zope Public License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2 :: Only",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"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",
],
install_requires=[
'setuptools',
Expand Down
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tox]
envlist =
py27,
py34,
py35,
py36

[testenv]
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir}
{envbindir}/test -v1
skip_install = true
deps =
setuptools==33.1.1
zc.buildout

0 comments on commit 79e77e9

Please sign in to comment.