Skip to content
This repository has been archived by the owner on May 13, 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
This project no longer contains any code, so it is really compatible ;)
  • Loading branch information
hannosch committed Jun 11, 2017
1 parent 4cb4336 commit 8f9713b
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.pyo
*.egg-info
.installed.cfg
.tox
bin/
develop-eggs/
dist/
Expand Down
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
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
4.0.2 (unreleased)
------------------

- Mark as compatible with Python 2 and 3.

4.0.1 (2016-08-30)
------------------
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
versions = versions
parts =
interpreter
test

[versions]
Products.ZCTextIndex =

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

[test]
recipe = zc.recipe.testrunner
eggs = Products.ZCTextIndex
eggs =
Products.ZCTextIndex
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.2.dev0'


setup(name='Products.ZCTextIndex',
version='4.0.2.dev0',
version=__version__,
url='https://github.com/zopefoundation/Products.ZCTextIndex',
license='ZPL 2.1',
description='Obsolete distribution, use Products.ZCatalog.',
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 8f9713b

Please sign in to comment.