Skip to content

Instantly share code, notes, and snippets.

@ericmjl
Created July 27, 2016 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericmjl/c8e459247ada576929a7a74053e1a682 to your computer and use it in GitHub Desktop.
Save ericmjl/c8e459247ada576929a7a74053e1a682 to your computer and use it in GitHub Desktop.
import os
import click
packages = ['circos', 'hiveplot', 'pandoc-attributes',
'pandoc-fignos', 'pandoc-xnos', 'pandocfilters',
'twine', 'lektor']
# for f in os.listdir(os.getcwd()):
# if ".sh" in f:
# os.system("bash {0}".format(f))
@click.group()
def cli():
pass
@click.command()
# @click.option('--name', help="the package to build")
@click.argument('name')
def build(name):
os.system('rm -r {0}'.format(name))
os.system('conda skeleton pypi {0}'.format(name))
os.system('conda build {0}'.format(name))
@click.command()
def build_all():
click.echo('Building the following packages...')
click.echo(packages)
for name in packages:
build(name=name)
cli.add_command(build)
cli.add_command(build_all)
if __name__ == '__main__':
cli()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment