Mercurial > hg > MakeItSo
comparison makeitso/python.py @ 200:5a2edca13b36
wip
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Tue, 24 Jun 2014 11:44:43 -0700 |
| parents | 9b78f52afe4e |
| children | 65684aae6bfe |
comparison
equal
deleted
inserted
replaced
| 199:ee29d37198a3 | 200:5a2edca13b36 |
|---|---|
| 29 from template import Variable | 29 from template import Variable |
| 30 | 30 |
| 31 class SetupPy(MakeItSoTemplate): | 31 class SetupPy(MakeItSoTemplate): |
| 32 """template for setup.py""" | 32 """template for setup.py""" |
| 33 templates = [('python_package', 'setup.py')] | 33 templates = [('python_package', 'setup.py')] |
| 34 | |
| 35 class Unittest(MakeItSoTemplate): | |
| 36 """template for python unittest""" | |
| 37 templates = [('python_package', 'tests', 'test_{{package}}.py')] | |
| 34 | 38 |
| 35 class PythonTemplate(MakeItSoTemplate): | 39 class PythonTemplate(MakeItSoTemplate): |
| 36 """abstract base class for python-type templates""" | 40 """abstract base class for python-type templates""" |
| 37 vars = [Variable('description'), | 41 vars = [Variable('description'), |
| 38 Variable('author', 'author of the package'), | 42 Variable('author', 'author of the package'), |
