changeset 151:e70421c50d0a

move to ABC
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 01 Dec 2012 19:01:18 -0800
parents 59feed7c9b4a
children 88f5bab340a1
files makeitso/python.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)