Mercurial > hg > buttercup
changeset 44:693f209fdbaa
notes to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 24 Mar 2013 00:47:55 -0700 |
parents | 0c411c083fab |
children | 048e391423a1 |
files | buttercup/buttercup.py buttercup/source.py |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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())
--- 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):