[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/runsetup.txt Updated to use newer testing API to reduce clutter.

Jim Fulton jim at zope.com
Sat May 12 13:00:47 EDT 2007


Log message for revision 75709:
  Updated to use newer testing API to reduce clutter.
  

Changed:
  U   zc.buildout/trunk/src/zc/buildout/runsetup.txt

-=-
Modified: zc.buildout/trunk/src/zc/buildout/runsetup.txt
===================================================================
--- zc.buildout/trunk/src/zc/buildout/runsetup.txt	2007-05-12 16:07:57 UTC (rev 75708)
+++ zc.buildout/trunk/src/zc/buildout/runsetup.txt	2007-05-12 17:00:47 UTC (rev 75709)
@@ -16,10 +16,10 @@
 commands, like bdist_egg even with packages that don't use setuptools.
 To illustrate this, we'll create a package in a sample buildout:
 
-    >>> mkdir(sample_buildout, 'hello')
-    >>> write(sample_buildout, 'hello', 'hello.py', 'print "Hello World!"')
-    >>> write(sample_buildout, 'hello', 'README', 'This is hello')
-    >>> write(sample_buildout, 'hello', 'setup.py',
+    >>> mkdir('hello')
+    >>> write('hello', 'hello.py', 'print "Hello World!"')
+    >>> write('hello', 'README', 'This is hello')
+    >>> write('hello', 'setup.py',
     ... """
     ... from distutils.core import setup
     ... setup(name="hello",
@@ -32,15 +32,11 @@
   
 We can use the buildout command to generate the hello egg:
 
-    >>> cd(sample_buildout)
-    >>> import os
-    >>> print system(os.path.join('bin', 'buildout')
-    ...              +' setup hello -q bdist_egg'),
+    >>> print system(buildout +' setup hello -q bdist_egg'),
     buildout: Running setup script hello/setup.py
     zip_safe flag not set; analyzing archive contents...
 
 The hello directory now has a hello egg in it's dist directory:
 
-    >>> ls(sample_buildout, 'hello', 'dist')
+    >>> ls('hello', 'dist')
     -  hello-1.0-py2.4.egg
-



More information about the Checkins mailing list