Mercurial > piecrust2
view garcon/pypi.py @ 648:1696f0a41cfc
cm: Update npm modules and bower packages before making a release.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 16 Feb 2016 22:16:31 -0800 |
parents | 79aefe82c6b6 |
children | 1e543ed2bf38 |
line wrap: on
line source
from invoke import task, run @task def makerelease(version, notag=False, noupload=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Install Bower components") run("bower install") print("Generating FoodTruck assets") run("gulp") # CHANGELOG.rst run("invoke changelog --last %s" % version) # Tag in Mercurial, which will then be used for PyPi version. if not notag: run("hg tag %s" % version) # PyPi upload. if not noupload: run("python setup.py sdist upload")