changeset 179:5bd1c50c6f61

works weirdly but kinda works
author Jeff Hammel <k0scist@gmail.com>
date Thu, 13 Mar 2014 17:30:27 -0700
parents d6ef91d49609
children 9b78f52afe4e
files makeitso/python.py setup.py
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python.py	Sun Mar 02 18:45:20 2014 -0800
+++ b/makeitso/python.py	Thu Mar 13 17:30:27 2014 -0700
@@ -28,6 +28,9 @@
 from template import MakeItSoTemplate
 from template import Variable
 
+class SetupPy(MakeItSoTemplate):
+    """template for setup.py"""
+    template = [('python_package', 'setup.py')]
 
 class PythonTemplate(MakeItSoTemplate):
   """abstract base class for python-type templates"""
--- a/setup.py	Sun Mar 02 18:45:20 2014 -0800
+++ b/setup.py	Thu Mar 13 17:30:27 2014 -0700
@@ -1,5 +1,5 @@
 import os
-from setuptools import setup, find_packages
+from setuptools import setup
 
 try:
     here = os.path.dirname(os.path.abspath(__file__))
@@ -39,5 +39,6 @@
       python-package = makeitso.python:PythonPackageTemplate
       python-module = makeitso.python:PythonModuleTemplate
       python-script = makeitso.python:PythonScriptTemplate
+      setup.py = makeitso.python:SetupPy
       """,
       )