# HG changeset patch # User Jeff Hammel # Date 1403635483 25200 # Node ID 5a2edca13b36836ce9cbaa9aac83058574b4766d # Parent ee29d37198a3a929355a947c9be37258efe42398 wip diff -r ee29d37198a3 -r 5a2edca13b36 makeitso/python.py --- a/makeitso/python.py Thu Jun 12 09:57:40 2014 -0700 +++ b/makeitso/python.py Tue Jun 24 11:44:43 2014 -0700 @@ -32,6 +32,10 @@ """template for setup.py""" templates = [('python_package', 'setup.py')] +class Unittest(MakeItSoTemplate): + """template for python unittest""" + templates = [('python_package', 'tests', 'test_{{package}}.py')] + class PythonTemplate(MakeItSoTemplate): """abstract base class for python-type templates""" vars = [Variable('description'), diff -r ee29d37198a3 -r 5a2edca13b36 setup.py --- a/setup.py Thu Jun 12 09:57:40 2014 -0700 +++ b/setup.py Tue Jun 24 11:44:43 2014 -0700 @@ -7,7 +7,7 @@ except IOError: description = '' -version = '0.3.3' +version = '0.3.4' setup(name='MakeItSo', version=version, @@ -41,5 +41,6 @@ python-module = makeitso.python:PythonModuleTemplate python-script = makeitso.python:PythonScriptTemplate setup.py = makeitso.python:SetupPy + python-unittest = makeitso.python:Unittest """, )