Mercurial > wikked
changeset 432:41cdccd71717
cm: Add script for making a release.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 30 Mar 2017 20:04:25 -0700 |
parents | e4a06565ecd5 |
children | 10a82dec3fe4 |
files | monkeys/release.py tasks.py |
diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/monkeys/release.py Thu Mar 30 20:04:25 2017 -0700 @@ -0,0 +1,23 @@ +from invoke import task, run + + +@task +def makerelease(version, local_only=False): + if not version: + raise Exception("You must specify a version!") + + # FoodTruck assets. + print("Update node modules") + run("npm install") + print("Generating Wikked assets") + run("grunt") + + if not local_only: + # Tag in Mercurial, which will then be used for PyPi version. + run("hg tag %s" % version) + + # PyPi upload. + run("python setup.py sdist upload") + else: + print("Would tag repo with %s..." % version) + print("Would upload to PyPi...")