Commit 5f7aab85 authored by jim's avatar jim

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.)


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@103344 62d5b8a3-27da-0310-9561-8e5933582275
parent 83cea3c3
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE. # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
name = "zc.buildout"
version = "1.4.0dev" version = "1.4.0dev"
import os import os
...@@ -54,9 +54,15 @@ long_description=( ...@@ -54,9 +54,15 @@ long_description=(
'**********************\n' '**********************\n'
) )
open('doc.txt', 'w').write(long_description) entry_points = """
[console_scripts]
buildout = %(name)s.buildout:main
[zc.buildout]
debug = %(name)s.testrecipes:Debug
""" % dict(name=name)
name = "zc.buildout"
setup( setup(
name = name, name = name,
version = version, version = version,
...@@ -74,8 +80,7 @@ setup( ...@@ -74,8 +80,7 @@ setup(
namespace_packages = ['zc'], namespace_packages = ['zc'],
install_requires = 'setuptools', install_requires = 'setuptools',
include_package_data = True, include_package_data = True,
entry_points = {'console_scripts': entry_points = entry_points,
['buildout = %s.buildout:main' % name]},
zip_safe=False, zip_safe=False,
classifiers = [ classifiers = [
'Intended Audience :: Developers', 'Intended Audience :: Developers',
......
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment