Skip to content

Commit

Permalink
Merge pull request #3 from zopefoundation/py36
Browse files Browse the repository at this point in the history
Add Py36, Drop Py33, restore tests for zope.component 4.4
  • Loading branch information
jamadden committed Aug 2, 2017
2 parents 9088def + e534c20 commit 1f7326a
Show file tree
Hide file tree
Showing 21 changed files with 840 additions and 411 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
source = zope.browserpage

[report]
precision = 2
exclude_lines =
pragma: no cover
if __name__ == '__main__':
raise NotImplementedError
self.fail
raise AssertionError
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ bin/
develop-eggs/
parts/
eggs/
.coverage
htmlcov/
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
language: python
sudo: false
python:
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
- pypy3
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3.5-5.8.0
install:
- pip install tox-travis
- pip install -U pip setuptools
- pip install -U coverage coveralls
- pip install -U -e .[test]
script:
- tox
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip
11 changes: 6 additions & 5 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Changes
=======
=========
Changes
=========

4.2.0 (unreleased)
==================

- Add support for Python 3.5.
- Add support for Python 3.5 and 3.6.

- Drop support for Python 2.6.
- Drop support for Python 2.6 and 3.3.


4.1.0 (2014-12-24)
Expand All @@ -26,7 +27,7 @@ Changes


4.0.0 (2012-07-04)
===================
==================

- When registering views, no longer pass the deprecated 'layer' agrument
to ``zope.component.registerAdapter``. Instead, pass ``(for_, layer)``
Expand Down
5 changes: 4 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ include *.py
include buildout.cfg
include tox.ini
include .travis.yml
include .coveragerc

recursive-include src *.pt *.txt *.zcml
recursive-include src *.pt
recursive-include src *.rst
recursive-include src *.zcml

global-exclude *.pyc
18 changes: 15 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
``zope.browserpage``
====================
======================
``zope.browserpage``
======================

.. image:: https://img.shields.io/pypi/v/zope.browserpage.svg
:target: https://pypi.python.org/pypi/zope.browserpage/
:alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.browserpage.svg
:target: https://pypi.org/project/zope.browserpage/
:alt: Supported Python versions

.. image:: https://travis-ci.org/zopefoundation/zope.browserpage.png?branch=master
:target: https://travis-ci.org/zopefoundation/zope.browserpage

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.browserpage/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.browserpage?branch=master

.. note::

This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[bdist_wheel]
universal = 1

[zest.releaser]
create-wheel = yes
35 changes: 17 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def read(*rnames):
long_description = (read('README.rst') + '\n\n' + read('CHANGES.rst'))

def alltests():
import os
import sys
import unittest
# use the zope.testrunner machinery to find all the
Expand All @@ -37,13 +36,19 @@ def alltests():
suites = list(zope.testrunner.find.find_suites(options))
return unittest.TestSuite(suites)

TESTS_REQUIRE = [
'zope.browsermenu',
'zope.testing',
'zope.testrunner',
]

setup(
name='zope.browserpage',
version='4.2.0.dev0',
url='https://github.com/zopefoundation/zope.browserpage',
author='Zope Foundation and Contributors',
author_email='zope-dev@zope.org',
classifiers = [
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
Expand All @@ -59,7 +64,7 @@ def alltests():
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3',
],
],
description='ZCML directives for configuring browser views for Zope.',
long_description=long_description,
license='ZPL 2.1',
Expand All @@ -79,19 +84,13 @@ def alltests():
'zope.traversing',
],
extras_require={
'menu': ['zope.browsermenu'],
'test': [
'zope.browsermenu',
'zope.testing',
'zope.testrunner',
],
},
tests_require = [
'zope.browsermenu',
'zope.testing',
'zope.testrunner',
],
test_suite = '__main__.alltests',
'menu': [
'zope.browsermenu',
],
'test': TESTS_REQUIRE,
},
tests_require=TESTS_REQUIRE,
test_suite='__main__.alltests',
include_package_data=True,
zip_safe = False,
)
zip_safe=False,
)
Loading

0 comments on commit 1f7326a

Please sign in to comment.