# HG changeset patch # User Jeff Hammel # Date 1354417278 28800 # Node ID e70421c50d0a808f7dbe2ef9dbc10b06e1570848 # Parent 59feed7c9b4a209cd3a6007b471ae943394c100c move to ABC diff -r 59feed7c9b4a -r e70421c50d0a makeitso/python.py --- a/makeitso/python.py Sat Mar 24 11:16:52 2012 -0700 +++ b/makeitso/python.py Sat Dec 01 19:01:18 2012 -0800 @@ -24,11 +24,14 @@ from template import MakeItSoTemplate from template import Variable -class PythonModuleTemplate(MakeItSoTemplate): +class PythonTemplate(MakeItSoTemplate): + """abstract base class for python-type templates""" + +class PythonModuleTemplate(PythonTemplate): """single module python package""" templates = ['python_module'] -class PythonPackageTemplate(MakeItSoTemplate): +class PythonPackageTemplate(PythonTemplate): """ python package template """ @@ -48,7 +51,7 @@ console_scripts = {'main.py': '{{project}} = {{project}}.main:main', 'template.py': '{{project}}-template = {{project}}.template:main' } - + def __init__(self, **kw): MakeItSoTemplate.__init__(self, **kw)