Mercurial > piecrust2
diff garcon/pypi.py @ 650:1e543ed2bf38
cm: Tweaks to the release script.
* Submit the new CHANGELOG.
* Only one flag to not do destructive things.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 16 Feb 2016 22:32:36 -0800 |
parents | 1696f0a41cfc |
children | a04288f199a5 |
line wrap: on
line diff
--- a/garcon/pypi.py Tue Feb 16 22:31:42 2016 -0800 +++ b/garcon/pypi.py Tue Feb 16 22:32:36 2016 -0800 @@ -2,7 +2,7 @@ @task -def makerelease(version, notag=False, noupload=False): +def makerelease(version, local_only=False): if not version: raise Exception("You must specify a version!") @@ -17,11 +17,13 @@ # CHANGELOG.rst run("invoke changelog --last %s" % version) - # Tag in Mercurial, which will then be used for PyPi version. - if not notag: + if not local_only: + # Submit the CHANGELOG. + run('hg commit CHANGELOG.rst -m "cm: Regenerate the CHANGELOG."') + + # Tag in Mercurial, which will then be used for PyPi version. run("hg tag %s" % version) - # PyPi upload. - if not noupload: + # PyPi upload. run("python setup.py sdist upload")