# HG changeset patch # User Jeff Hammel # Date 1295303922 28800 # Node ID b8d5d2041fe075cda2c82c6bfb89bee1b2ecfb80 # Parent c3b8ce33d3ade81e64da01e5561864d42c889e8b stub out project name -> package name diff -r c3b8ce33d3ad -r b8d5d2041fe0 makeitso/makeitso.py --- a/makeitso/makeitso.py Mon Jan 17 14:32:07 2011 -0800 +++ b/makeitso/makeitso.py Mon Jan 17 14:38:42 2011 -0800 @@ -371,7 +371,7 @@ vars = self.get_variables(**variables) self.check_missing(vars) - # make the output directory + # make the output directory if multiple templates if output and len(self.templates) > 1 and not os.path.exists(output): os.makedirs(output) diff -r c3b8ce33d3ad -r b8d5d2041fe0 makeitso/python.py --- a/makeitso/python.py Mon Jan 17 14:32:07 2011 -0800 +++ b/makeitso/python.py Mon Jan 17 14:38:42 2011 -0800 @@ -56,6 +56,11 @@ # get project from output directory variables['project'] = os.path.basename(output) + # get package name from project + # XXX could have looser restrictions with transforms + assert variables['project'].isalpha(), 'Project name must be just letters' + variables['package'] = variables['project'].lower() + # dependencies dependencies = set([]) for template, dependency in self.dependencies.items():