# HG changeset patch # User Jeff Hammel # Date 1364111275 25200 # Node ID 693f209fdbaa6f2139f281c106308249ed396503 # Parent 0c411c083fab7334af9ca80170c38742d187afd5 notes to self diff -r 0c411c083fab -r 693f209fdbaa buttercup/buttercup.py --- a/buttercup/buttercup.py Sat Mar 23 04:43:46 2013 -0700 +++ b/buttercup/buttercup.py Sun Mar 24 00:47:55 2013 -0700 @@ -39,10 +39,16 @@ def __init__(self, srcdir): self.srcdir = srcdir + + # TODO: this should all go in a `pip` requirements file + + # base webapps and dependencies self.sources = {'hg': ['%s/%s' % (self.HG, package) for package in self.PACKAGES ]} + self.sources['git'] = ['git://github.com/mozilla/toolbox.git'] + + # extra tools self.sources['hg'].append('http://k0s.org/mozilla/hg/licenser') - self.sources['git'] = ['git://github.com/mozilla/toolbox.git'] def install(self): """install all software needed for this flower""" @@ -54,7 +60,7 @@ """setup python packages for development""" if source_objs is None: source_objs = source.sources(self.sources, srcdir=self.srcdir) - for source_obj in source_objs: + for source_obj in source_objs: if os.path.exists(os.path.join(source_obj.directory(), 'setup.py')): call(['python', 'setup.py', 'develop'], cwd=source_obj.directory()) diff -r 0c411c083fab -r 693f209fdbaa buttercup/source.py --- a/buttercup/source.py Sat Mar 23 04:43:46 2013 -0700 +++ b/buttercup/source.py Sun Mar 24 00:47:55 2013 -0700 @@ -28,7 +28,7 @@ def __call__(self): """convenience wrapper to update""" self.update() - + class HgSource(Source): """mercurial source""" @@ -48,7 +48,9 @@ if not os.path.exists(self.srcdir): os.makedirs(self.srcdir) call(['hg', 'clone', self.uri], cwd=self.srcdir) - # TODO: add a more intelligent .hg/hgrc + + # add a more intelligent .hg/hgrc + # TODO class GitSource(Source):