paver bump now supports specifying version with -C arg

This commit is contained in:
Ask Solem 2011-11-27 17:42:13 +00:00
parent 196ba98d61
commit d44e2a26f2
1 changed files with 7 additions and 1 deletions

View File

@ -82,8 +82,14 @@ def readme(options):
@task
@cmdopts([
("custom=", "C", "custom version"),
])
def bump(options):
sh("contrib/release/bump_version.py kombu/__init__.py README.rst")
s = "-- '%s'" % (options.custom, ) \
if getattr(options, "custom") else ""
sh("contrib/release/bump_version.py \
kombu/__init__.py README.rst %s" % (s, ))
@task