# HG changeset patch # User Jeff Hammel # Date 1294802633 28800 # Node ID 67b50417b8d1f119843204ee4926a8389503e387 # Parent e059a58ea23c05d82c9b8720b8d0e062d8abc965 stub out loading api templates; this wont work, however, since one is in the middle of a module trying to load a module that depends on the module you are in diff -r e059a58ea23c -r 67b50417b8d1 makeitso/makeitso.py --- a/makeitso/makeitso.py Tue Jan 11 19:13:34 2011 -0800 +++ b/makeitso/makeitso.py Tue Jan 11 19:23:53 2011 -0800 @@ -17,6 +17,16 @@ from ConfigParser import RawConfigParser from optparse import OptionParser +# get templates from pkg_resources +# (MakeItSo! and [TODO] pastescript templates) +makeitso_templates = {} +try: + from pkg_resources import iter_entry_points + for i in iter_entry_points('makeitso.templates'): + pass # :( +except ImportError: + pass + # URL of -this file- location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py' diff -r e059a58ea23c -r 67b50417b8d1 setup.py --- a/setup.py Tue Jan 11 19:13:34 2011 -0800 +++ b/setup.py Tue Jan 11 19:23:53 2011 -0800 @@ -32,5 +32,8 @@ [console_scripts] makeitso = makeitso.makeitso:main make-python-package = makeitso.python:main + + [makeitso.templates] + python-package = makeitso.python:PythonPackageTemplate """, )