Skip to content

Commit

Permalink
Add Python 3.6, drop Python 3.3
Browse files Browse the repository at this point in the history
Also run coveralls on Travis.
  • Loading branch information
jamadden committed Jul 26, 2017
1 parent a9ec74b commit eb5fe5e
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 27 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ language: python
sudo: false
python:
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
- pypy3.3-5.2-alpha1
- 3.6
- pypy-5.6.0
- pypy3.3-5.5-alpha
install:
- pip install -U pip setuptools # need updated pip for caching
- pip install .[test]
- pip install -U coverage coveralls
- pip install -U -e .[test]
script:
- python -m zope.intid.tests
- coverage run -m zope.intid.tests
after_success:
- coveralls
notifications:
email: false

Expand Down
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Changes
=======

4.2.1 (unreleased)
4.3.0 (unreleased)
------------------

- Nothing changed yet.
- Add support for Python 3.6.

- Drop support for Python 3.3.


4.2.0 (2016-12-08)
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
:target: http://zopeintid.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.intid/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.intid?branch=master
:alt: Code Coverage


This package provides an API to create integer ids for any object. Later
objects can be looked up by their id as well. This functionality is commonly
used in situations where dealing with objects is undesirable, such as in
Expand Down
39 changes: 22 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
import os
from setuptools import setup, find_packages


def read(*rnames):
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
return f.read()


TESTS_REQUIRE = [
'ZODB',
'zope.testing',
Expand All @@ -33,19 +35,20 @@ def read(*rnames):
'zope.container',
]

setup(name = 'zope.intid',
setup(name='zope.intid',
version=read('version.txt').strip(),
author='Albertas Agejevas and Gintautas Miliauskas',
author_email='zope-dev@zope.org',
maintainer='Zope developers',
maintainer_email='zope-dev@zope.org',
description='Integer Id Utility',
long_description=(
read('README.rst')
+ '\n\n' +
read('CHANGES.rst')
),
keywords = "zope3 integer id utility",
classifiers = [
),
keywords="zope3 integer id utility",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
Expand All @@ -54,23 +57,25 @@ def read(*rnames):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'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',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
url='http://pypi.python.org/pypi/zope.intid',
'Framework :: Zope3',
],
url='http://github.com/zopefoundation/zope.intid',
license='ZPL 2.1',
packages=find_packages('src'),
package_dir = {'': 'src'},
package_dir={'': 'src'},
namespace_packages=['zope'],
extras_require = dict(
test=TESTS_REQUIRE),
install_requires = [
extras_require={
'test': TESTS_REQUIRE,
},
install_requires=[
'persistent',
'BTrees',
'setuptools',
Expand All @@ -81,9 +86,9 @@ def read(*rnames):
'zope.keyreference',
'zope.location>=3.5.4',
'zope.security',
],
tests_require = TESTS_REQUIRE,
test_suite = 'zope.intid.tests.test_suite',
include_package_data = True,
zip_safe = False,
)
],
tests_require=TESTS_REQUIRE,
test_suite='zope.intid.tests.test_suite',
include_package_data=True,
zip_safe=False,
)
2 changes: 1 addition & 1 deletion src/zope/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py27,py33,py34,py35,pypy,pypy3
py27,py34,py35,py36,pypy,pypy3

[testenv]
commands =
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.1.dev0
4.3.0.dev0

0 comments on commit eb5fe5e

Please sign in to comment.