[Checkins] SVN: zc.buildout/trunk/s Added a test debug recipe to make writing tests a little easier.
Jim Fulton
jim at zope.com
Fri Aug 28 14:14:43 EDT 2009
Log message for revision 103344:
Added a test debug recipe to make writing tests a little easier.
(Also stop writing doc.txt. --long-description is better. And
rearranged setup.py a little.)
Changed:
U zc.buildout/trunk/setup.py
A zc.buildout/trunk/src/zc/buildout/testrecipes.py
-=-
Modified: zc.buildout/trunk/setup.py
===================================================================
--- zc.buildout/trunk/setup.py 2009-08-28 17:42:27 UTC (rev 103343)
+++ zc.buildout/trunk/setup.py 2009-08-28 18:14:42 UTC (rev 103344)
@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-
+name = "zc.buildout"
version = "1.4.0dev"
import os
@@ -54,9 +54,15 @@
'**********************\n'
)
-open('doc.txt', 'w').write(long_description)
+entry_points = """
+[console_scripts]
+buildout = %(name)s.buildout:main
-name = "zc.buildout"
+[zc.buildout]
+debug = %(name)s.testrecipes:Debug
+
+""" % dict(name=name)
+
setup(
name = name,
version = version,
@@ -74,8 +80,7 @@
namespace_packages = ['zc'],
install_requires = 'setuptools',
include_package_data = True,
- entry_points = {'console_scripts':
- ['buildout = %s.buildout:main' % name]},
+ entry_points = entry_points,
zip_safe=False,
classifiers = [
'Intended Audience :: Developers',
Added: zc.buildout/trunk/src/zc/buildout/testrecipes.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/testrecipes.py (rev 0)
+++ zc.buildout/trunk/src/zc/buildout/testrecipes.py 2009-08-28 18:14:42 UTC (rev 103344)
@@ -0,0 +1,16 @@
+
+class Debug:
+
+ def __init__(self, buildout, name, options):
+ self.buildout = buildout
+ self.name = name
+ self.options = options
+
+ def install(self):
+ items = self.options.items()
+ items.sort()
+ for option, value in items:
+ print " %s=%r" % (option, value)
+ return ()
+
+ update = install
Property changes on: zc.buildout/trunk/src/zc/buildout/testrecipes.py
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
More information about the checkins
mailing list