From d44e2a26f2d52c940582c2f7672bb0f31dfb83ce Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Sun, 27 Nov 2011 17:42:13 +0000 Subject: [PATCH] paver bump now supports specifying version with -C arg --- pavement.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pavement.py b/pavement.py index 31e9532e..f83cff43 100644 --- a/pavement.py +++ b/pavement.py @@ -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