scripts: Add --commands to update_version

This commit is contained in:
Florian Bruhin 2020-04-27 14:52:26 +02:00
parent ce5ca98c59
commit 5e06b00474
2 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,7 @@ Added
* `hints.padding` to add additional padding for hints.
* `hints.radius` to set a border radius for hints (set to `3` by default).
- New placeholders for `url.searchengines` values:
* `{unquoted}` inserts the search term without any quoting
* `{unquoted}` inserts the search term without any quoting.
* `{semiquoted}` (same as `{}`) quotes most special characters, but slashes
remain unquoted.
* `{quoted}` (same as `{}` in earlier releases) also quotes slashes.

View File

@ -52,11 +52,15 @@ if __name__ == "__main__":
parser.add_argument('bump', action="store",
choices=["major", "minor", "patch"],
help="Update release version")
parser.add_argument('--commands', action="store_true",
help="Only show commands to run post-release.")
args = parser.parse_args()
utils.change_cwd()
bump_version(args.bump)
show_commit()
if not args.commands:
bump_version(args.bump)
show_commit()
import qutebrowser
version = qutebrowser.__version__