summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-04-27 14:52:26 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-04-27 15:51:38 +0200
commit5e06b004744fca8fc02a41c116345db6f650ded7 (patch)
tree85fa870a7358d68d1cf5c7f34cbd66e7b28b2fd1
parentce5ca98c59a85e8f9d0d999ffb5b6cc70f278e87 (diff)
downloadqutebrowser-5e06b004744fca8fc02a41c116345db6f650ded7.tar.gz
qutebrowser-5e06b004744fca8fc02a41c116345db6f650ded7.zip
scripts: Add --commands to update_version
-rw-r--r--doc/changelog.asciidoc2
-rw-r--r--scripts/dev/update_version.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc
index 990848774..02d6e6422 100644
--- a/doc/changelog.asciidoc
+++ b/doc/changelog.asciidoc
@@ -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.
diff --git a/scripts/dev/update_version.py b/scripts/dev/update_version.py
index f6cc2c27b..13bd3d776 100644
--- a/scripts/dev/update_version.py
+++ b/scripts/dev/update_version.py
@@ -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__