Mercurial > piecrust2
changeset 742:9231172e3d81
cm: Add generation of online changelog to the release task.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 02 Jun 2016 20:26:51 -0700 |
parents | 0c3b811d2c26 |
children | 7705b3d981ca |
files | garcon/pypi.py |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/garcon/pypi.py Thu Jun 02 20:21:47 2016 -0700 +++ b/garcon/pypi.py Thu Jun 02 20:26:51 2016 -0700 @@ -14,12 +14,15 @@ print("Generating FoodTruck assets") run("gulp") - # CHANGELOG.rst + # CHANGELOG.rst and documentation changelog page. run("invoke changelog --last %s" % version) + run("invoke changelog --last %s -o docs/pages/support/changelog.md" % + version) if not local_only: # Submit the CHANGELOG. - run('hg commit CHANGELOG.rst -m "cm: Regenerate the CHANGELOG."') + run('hg commit CHANGELOG.rst docs/pages/support/changelog.md ' + '-m "cm: Regenerate the CHANGELOG."') # Tag in Mercurial, which will then be used for PyPi version. run("hg tag %s" % version) @@ -27,4 +30,8 @@ # PyPi upload. run("python setup.py version") run("python setup.py sdist upload") + else: + print("Would submit changelog files...") + print("Would tag repo with %s..." % version) + print("Would upload to PyPi...")