from __future__ import print_function, division, absolute_import

from argparse import ArgumentParser


def main(args=None):
    if args is None:
        parser = ArgumentParser('Tool for generating skeleton package-'
                                'building directory.')
        parser.add_argument('--appveyor-secret', default='Fill me in',
                            help="Appveyor secret containing BINSTAR_TOKEN")
        parser.add_argument('--travis-secret', default='Fill me in',
                            help="Travis-CI secret containing BINSTAR_TOKEN")
        args = parser.parse_args()


if __name__ == '__main__':
    main()

@@ -99,30 +99,213 @@
 ser%0A
-%0A%0Adef main(args=None):
+import os%0Aimport shutil%0A%0Afrom jinja2 import Environment, FileSystemLoader%0A%0A%0Adef main(args=None):%0A    %22%22%22%0A    Copy all of the files needed from the source distribution to the current%0A    directory.%0A    %22%22%22%0A
 %0A   
@@ -446,16 +446,95 @@
 rectory.
+ All files created in the '%0A                                'current directory.
 ')%0A     
@@ -859,16 +859,921 @@
 args()%0A%0A
+        skeleton_base_path = os.path.dirname(os.path.abspath(__file__))%0A%0A        skeleton_file_dir = os.path.join(skeleton_base_path,%0A                                         'data',%0A                                         'template-build-files')%0A%0A        for ci_file in %5B'.travis.yml', 'appveyor.yml'%5D:%0A            jinja_env = Environment(loader=FileSystemLoader(skeleton_file_dir))%0A            tpl = jinja_env.get_template(ci_file)%0A            rendered = tpl.render(appveyor_binstar_token=args.appveyor_secret,%0A                                  travis_binstar_token=args.travis_secret)%0A            with open(ci_file, 'w') as f:%0A                f.write(rendered)%0A%0A        shutil.copy(os.path.join(skeleton_file_dir, 'requirements.yml'), '.')%0A        template_folder = 'recipe-templates'%0A        shutil.copytree(os.path.join(skeleton_file_dir, template_folder),%0A                        template_folder)%0A%0A
 %0Aif __na

Implement script for creating skeleton build setup