comparison garcon/pypi.py @ 642:79aefe82c6b6

cm: Move all scripts into a `garcon` package with `invoke` support.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 14 Feb 2016 22:11:24 -0800
parents
children 1696f0a41cfc
comparison
equal deleted inserted replaced
641:35221f5fe0dd 642:79aefe82c6b6
1 from invoke import task, run
2
3
4 @task
5 def makerelease(version, notag=False, noupload=False):
6 if not version:
7 raise Exception("You must specify a version!")
8
9 # FoodTruck assets.
10 run("gulp")
11
12 # CHANGELOG.rst
13 run("invoke changelog --last %s" % version)
14
15 # Tag in Mercurial, which will then be used for PyPi version.
16 if not notag:
17 run("hg tag %s" % version)
18
19 # PyPi upload.
20 if not noupload:
21 run("python setup.py sdist upload")
22