[Checkins] SVN: z3c.recipe.runscript/trunk/ - Added test extra to declare test dependency on ``zope.testing``.

Michael Howitz mh at gocept.com
Wed Sep 22 02:47:37 EDT 2010


Log message for revision 116719:
  - Added test extra to declare test dependency on ``zope.testing``.
  
  - Using Pyhton's ``doctest`` module instead of depreacted ``zope.testing.doctest``.
  

Changed:
  U   z3c.recipe.runscript/trunk/CHANGES.txt
  U   z3c.recipe.runscript/trunk/buildout.cfg
  U   z3c.recipe.runscript/trunk/setup.py
  U   z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/tests/test_doc.py

-=-
Modified: z3c.recipe.runscript/trunk/CHANGES.txt
===================================================================
--- z3c.recipe.runscript/trunk/CHANGES.txt	2010-09-22 06:08:16 UTC (rev 116718)
+++ z3c.recipe.runscript/trunk/CHANGES.txt	2010-09-22 06:47:37 UTC (rev 116719)
@@ -2,13 +2,22 @@
 CHANGES
 =======
 
-Version 0.1.1 (2008-04-18)
---------------------------
+0.1.2 (unreleased)
+------------------
 
+- Added test extra to declare test dependency on ``zope.testing``.
+
+- Using Pyhton's ``doctest`` module instead of depreacted
+  ``zope.testing.doctest``.
+
+
+0.1.1 (2008-04-18)
+------------------
+
 - Bug: Fix release to include CHANGES.txt.
 
 
-Version 0.1.0 (2007-07-30)
---------------------------
+0.1.0 (2007-07-30)
+------------------
 
-- Initial Release
+- Initial Release.

Modified: z3c.recipe.runscript/trunk/buildout.cfg
===================================================================
--- z3c.recipe.runscript/trunk/buildout.cfg	2010-09-22 06:08:16 UTC (rev 116718)
+++ z3c.recipe.runscript/trunk/buildout.cfg	2010-09-22 06:47:37 UTC (rev 116719)
@@ -4,4 +4,4 @@
 
 [test]
 recipe = zc.recipe.testrunner
-eggs = z3c.recipe.runscript
+eggs = z3c.recipe.runscript [test]

Modified: z3c.recipe.runscript/trunk/setup.py
===================================================================
--- z3c.recipe.runscript/trunk/setup.py	2010-09-22 06:08:16 UTC (rev 116718)
+++ z3c.recipe.runscript/trunk/setup.py	2010-09-22 06:47:37 UTC (rev 116719)
@@ -58,6 +58,10 @@
         'setuptools',
         'zc.buildout'
         ],
+    extras_require=dict(
+        test=[
+            'zope.testing',
+            ]),
     entry_points = {'zc.buildout':
                     ['default = z3c.recipe.runscript:Recipe']},
     dependency_links = ['http://download.zope.org/distribution'],

Modified: z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/tests/test_doc.py
===================================================================
--- z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/tests/test_doc.py	2010-09-22 06:08:16 UTC (rev 116718)
+++ z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/tests/test_doc.py	2010-09-22 06:47:37 UTC (rev 116719)
@@ -12,19 +12,20 @@
 #
 ##############################################################################
 """z3c.recipe.runscript test setup."""
+import doctest
 import unittest
 import zc.buildout.testing
-from zope.testing import doctest
 
+
 def setUp(test):
     zc.buildout.testing.buildoutSetUp(test)
     zc.buildout.testing.install_develop('z3c.recipe.runscript', test)
 
+
 def test_suite():
-    return unittest.TestSuite((
-        doctest.DocFileSuite(
-            '../README.txt',
-            setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
-            optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
-            ),
-        ))
+    return doctest.DocFileSuite(
+        '../README.txt',
+        setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
+        optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
+        )
+



More information about the checkins mailing list