Skip to content

Commit

Permalink
test infra
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Jan 10, 2018
1 parent 0cff002 commit ffd6f78
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 45 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
*.pyc
__pycache__
src/*.egg-info

.coverage
.installed.cfg
.mr.developer.cfg
.tox
*.pyc
bin
dev
develop-eggs
parts
src/*.egg-info
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
language: python
python:
- 2.6
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
install:
- python bootstrap.py
- bin/buildout
- pip install -U pip setuptools
- pip install -U zope.testrunner coverage coveralls
- pip install -U -e .[test]
script:
- bin/test -v1
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip
3 changes: 2 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[buildout]
extends =
https://raw.githubusercontent.com/zopefoundation/groktoolkit/resurrection-python3/grok.cfg
develop = .
parts = interpreter test
extends = https://raw.github.com/zopefoundation/groktoolkit/master/grok.cfg
versions = versions

[versions]
Expand Down
92 changes: 55 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from setuptools import setup, find_packages
import os
from setuptools import setup, find_packages


readme_filename = os.path.join('src', 'grokcore', 'layout', 'README.txt')
long_description = open(readme_filename).read() + '\n\n' + \
open('CHANGES.txt').read()


long_description = (
open(readme_filename).read() +
'\n\n' +
open('CHANGES.txt').read())


test_requires = [
'zope.annotation',
Expand All @@ -16,37 +22,49 @@
'zope.traversing',
]

setup(name='grokcore.layout',
version='1.6.2.dev0',
description="A layout component package for zope3 and Grok.",
long_description = long_description,
classifiers=['Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
'Framework :: Zope3',
],
keywords='grok layout zope3 pagelet theming',
author='Grok Team',
author_email='grok-dev@zope.org',
url='http://grok.zope.org',
license='ZPL',
packages=find_packages('src', exclude=['ez_setup']),
package_dir={'': 'src'},
namespace_packages=['grokcore'],
include_package_data=True,
zip_safe=False,
extras_require={'test': test_requires},
install_requires=[
'grokcore.component >= 2.5',
'grokcore.security >= 1.6',
'grokcore.view >= 2.7',
'martian >= 0.14',
'setuptools',
'zope.authentication',
'zope.component >= 3.9.1',
'zope.errorview',
'zope.interface',
'zope.publisher',
],
)

setup(
name='grokcore.layout',
version='1.6.2.dev0',
description="A layout component package for zope3 and Grok.",
long_description=long_description,
classifiers=[
'Environment :: Web Environment',
'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.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Framework :: Zope3',
],
keywords='grok layout zope3 pagelet theming',
author='Grok Team',
author_email='grok-dev@zope.org',
url='http://grok.zope.org',
license='ZPL',
packages=find_packages('src', exclude=['ez_setup']),
package_dir={'': 'src'},
namespace_packages=['grokcore'],
include_package_data=True,
zip_safe=False,
extras_require={'test': test_requires},
install_requires=[
'grokcore.component >= 2.5',
'grokcore.security >= 1.6',
'grokcore.view >= 2.7',
'martian >= 0.14',
'setuptools',
'zope.authentication',
'zope.component >= 3.9.1',
'zope.errorview',
'zope.interface',
'zope.publisher',
],
)
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,
pypy,
pypy3

[testenv]
commands =
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
deps =
.[test]
zope.testrunner
coverage

0 comments on commit ffd6f78

Please sign in to comment.