[Checkins] SVN: zope.contentprovider/trunk/ Add tox for testing.
Stephen Richter
cvs-admin at zope.org
Thu Feb 21 02:16:29 UTC 2013
Log message for revision 129556:
Add tox for testing.
Changed:
_U zope.contentprovider/trunk/
A zope.contentprovider/trunk/MANIFEST.in
U zope.contentprovider/trunk/bootstrap.py
U zope.contentprovider/trunk/setup.py
A zope.contentprovider/trunk/tox.ini
-=-
Property changes on: zope.contentprovider/trunk
___________________________________________________________________
Modified: svn:ignore
- bin
build
dist
lib
setup.cfg
develop-eggs
eggs
parts
.installed.cfg
+ .tox
bin
build
dist
lib
setup.cfg
develop-eggs
eggs
parts
.installed.cfg
ld.txt
Added: zope.contentprovider/trunk/MANIFEST.in
===================================================================
--- zope.contentprovider/trunk/MANIFEST.in (rev 0)
+++ zope.contentprovider/trunk/MANIFEST.in 2013-02-21 02:16:28 UTC (rev 129556)
@@ -0,0 +1,9 @@
+include *.rst
+include *.txt
+include bootstrap.py
+include buildout.cfg
+include tox.ini
+
+recursive-include src *
+
+global-exclude *.pyc
Modified: zope.contentprovider/trunk/bootstrap.py
===================================================================
--- zope.contentprovider/trunk/bootstrap.py 2013-02-20 23:43:40 UTC (rev 129555)
+++ zope.contentprovider/trunk/bootstrap.py 2013-02-21 02:16:28 UTC (rev 129556)
@@ -18,8 +18,9 @@
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()
Modified: zope.contentprovider/trunk/setup.py
===================================================================
--- zope.contentprovider/trunk/setup.py 2013-02-20 23:43:40 UTC (rev 129555)
+++ zope.contentprovider/trunk/setup.py 2013-02-21 02:16:28 UTC (rev 129556)
@@ -67,5 +67,7 @@
'zope.tales',
],
include_package_data = True,
+ tests_require = ['zope.testing', 'zope.browserpage'],
+ test_suite = 'zope.contentprovider.tests.test_suite',
zip_safe = False,
)
Added: zope.contentprovider/trunk/tox.ini
===================================================================
--- zope.contentprovider/trunk/tox.ini (rev 0)
+++ zope.contentprovider/trunk/tox.ini 2013-02-21 02:16:28 UTC (rev 129556)
@@ -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
More information about the checkins
mailing list