changeset 168:54f42aa651bc

fix single module interpolation
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 31 Oct 2013 17:38:39 -0700
parents f6474c7dfb39
children 99719e6f7c47
files makeitso/python.py setup.py
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python.py	Sun Oct 20 03:54:54 2013 -0700
+++ b/makeitso/python.py	Thu Oct 31 17:38:39 2013 -0700
@@ -19,6 +19,7 @@
 # TODO: console_scripts for all of these
 
 import os
+import shutil
 import sys
 from cli import MakeItSoCLI
 from makeitso import ContentTemplate
@@ -57,6 +58,9 @@
   def pre(self, variables, output):
     variables['project'] = variables['module'] = variables['main'] = self.output2name(output)
 
+  def post(self, variables, output):
+    shutil.move(os.path.join(output, '{{main.py}}'),
+                os.path.join(output, variables['main']))
 
 class PythonPackageTemplate(PythonTemplate):
   """
--- a/setup.py	Sun Oct 20 03:54:54 2013 -0700
+++ b/setup.py	Thu Oct 31 17:38:39 2013 -0700
@@ -7,7 +7,7 @@
 except IOError:
     description = ''
 
-version = '0.2.6'
+version = '0.2.7'
 
 setup(name='MakeItSo',
       version=version,