Mercurial > wikked
comparison monkeys/release.py @ 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 | |
children | d8a1a031ad7d |
comparison
equal
deleted
inserted
replaced
431:e4a06565ecd5 | 432:41cdccd71717 |
---|---|
1 from invoke import task, run | |
2 | |
3 | |
4 @task | |
5 def makerelease(version, local_only=False): | |
6 if not version: | |
7 raise Exception("You must specify a version!") | |
8 | |
9 # FoodTruck assets. | |
10 print("Update node modules") | |
11 run("npm install") | |
12 print("Generating Wikked assets") | |
13 run("grunt") | |
14 | |
15 if not local_only: | |
16 # Tag in Mercurial, which will then be used for PyPi version. | |
17 run("hg tag %s" % version) | |
18 | |
19 # PyPi upload. | |
20 run("python setup.py sdist upload") | |
21 else: | |
22 print("Would tag repo with %s..." % version) | |
23 print("Would upload to PyPi...") |