Skip to content

Commit

Permalink
Add tox for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Feb 21, 2013
1 parent eb23aee commit 8b743e6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
9 changes: 9 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include *.rst
include *.txt
include bootstrap.py
include buildout.cfg
include tox.ini

recursive-include src *

global-exclude *.pyc
3 changes: 2 additions & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
use the -c option to specify an alternate configuration file.
"""

import os, shutil, sys, tempfile, urllib2
import os, shutil, sys, tempfile
from optparse import OptionParser
from optparse import OptionParser

tmpeggs = tempfile.mkdtemp()
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ def read(*rnames):
'zope.tales',
],
include_package_data = True,
tests_require = ['zope.testing', 'zope.browserpage'],
test_suite = 'zope.contentprovider.tests.test_suite',
zip_safe = False,
)
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
envlist = py26,py27

[testenv]
commands =
python setup.py test -q
# without explicit deps, setup.py test will download a bunch of eggs into $PWD
# (and it seems I can't use zope.dottedname[testing] here, so forget DRY)
deps =
zope.testing
zope.browserpage
zope.component
zope.event
zope.interface
zope.location
zope.publisher
zope.schema
zope.tales

0 comments on commit 8b743e6

Please sign in to comment.