Commits

Anonymous committed 8762ffd

now using zc.buildout to create a dev environment, and test.sh builds it then runs all test (builbdot ready)

  • Participants
  • Parent commits 34799e3

Comments (0)

Files changed (3)

File buildout.cfg

+[buildout]
+
+parts =
+    test
+
+develop =
+    distribute.resources
+    distribute.installer
+    distribute
+
+[test]
+recipe = zc.recipe.testrunner
+
+eggs =
+    distribute.resources
+    distribute.installer
+    distribute
+

File distribute/distribute/command/test.py

 from distribute.core import Command
+from distribute.core.dist import Distribution
 from distutils.errors import DistutilsOptionError
 import sys
 from distribute.resources import *
             "Test suite to run (e.g. 'some_module.test_suite')"),
     ]
 
+    def __init__(self, distribution=None):
+        if distribution is None:
+            distribution = Distribution()
+        Command.__init__(self, distribution)
+
     def initialize_options(self):
         self.test_suite = None
         self.test_module = None
 #!/bin/sh
 virtualenv --no-site-packages .
-cd distribute.resources
-../bin/python setup.py install
-cd ../distribute.installer
-../bin/python setup.py install
-
-cd ../distribute
-../bin/python setup.py develop
-../bin/python setup.py test
-
-# cleaning up
-cd ..
-rm -rf bin
-rm -rf lib
-rm -rf include
-
+bin/python buildout/bootstrap.py
+bin/buildout -v
+bin/test -v