@@ -141,16 +141,7 @@ def main(force):
141141]
142142
143143version_cmd_options = [
144- click .option ("--version-cmd" , envvar = "RH_VERSION_COMMAND" , help = "The version command" ),
145- ]
146-
147- version_create_tag_options = [
148- click .option (
149- "--version-create-tag" ,
150- envvar = "RH_VERSION_CREATE_TAG" ,
151- is_flag = True ,
152- help = "Whether to create a tag when bumping the version" ,
153- ),
144+ click .option ("--version-cmd" , envvar = "RH_VERSION_COMMAND" , help = "The version command" )
154145]
155146
156147
@@ -317,28 +308,18 @@ def prep_git(ref, branch, repo, auth, username, git_url):
317308@main .command ()
318309@add_options (version_spec_options )
319310@add_options (version_cmd_options )
320- @add_options (version_create_tag_options )
321311@add_options (changelog_path_options )
322312@add_options (use_changelog_version_options )
323313@add_options (python_packages_options )
324314@use_checkout_dir ()
325- def bump_version (
326- version_spec ,
327- version_cmd ,
328- version_create_tag ,
329- changelog_path ,
330- use_changelog_version ,
331- python_packages ,
332- ):
315+ def bump_version (version_spec , version_cmd , changelog_path , use_changelog_version , python_packages ):
333316 """Prep git and env variables and bump version"""
334317 prev_dir = os .getcwd ()
335318 for python_package in [p .split (":" )[0 ] for p in python_packages ]:
336319 os .chdir (python_package )
337320 lib .bump_version (
338321 version_spec , version_cmd , changelog_path , use_changelog_version = use_changelog_version
339322 )
340- if version_create_tag :
341- lib .create_tag ()
342323 os .chdir (prev_dir )
343324
344325
0 commit comments