Commit 016b8a71 authored by Jim Fulton's avatar Jim Fulton

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.)
parent 93fb571e
...@@ -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