Skip to content

Commit

Permalink
Added tox support
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro committed Feb 18, 2016
1 parent 6d6b378 commit 7bb56dd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: python
python:
- 2.7
- 3.4
install:
- pip install .
script:
Expand Down
20 changes: 13 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
import os
from setuptools import setup, find_packages


tests_require = [
'zope.i18n',
'zope.tal',
'zope.testing',
'zope.component',
'zope.security',
]


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

Expand Down Expand Up @@ -67,12 +77,7 @@ def read(*rnames):
'zope.configuration',
],
extras_require = dict(
test=[
'zope.i18n',
'zope.tal',
'zope.testing',
'zope.configuration',
],
test=tests_require,
zcml=[
'zope.i18n',
],
Expand All @@ -87,5 +92,6 @@ def read(*rnames):
[console_scripts]
i18nextract = zope.app.locales.extract:main [extract]
""",
test_suite='zope.app.locales.tests.test_suite'
test_suite='zope.app.locales.tests.test_suite',
tests_require=tests_require,
)
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py34

[testenv]
commands = python setup.py test
deps =

0 comments on commit 7bb56dd

Please sign in to comment.