From ffbef69dc745698a328386e3a41b6ef0ba020815 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 9 Feb 2020 20:26:15 -0500 Subject: [PATCH] manually incremented version and added support to release script to release current version --- lbry/__init__.py | 2 +- lbry/wallet/network.py | 2 +- scripts/release.py | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lbry/__init__.py b/lbry/__init__.py index 754ae9d12..e2d970f9a 100644 --- a/lbry/__init__.py +++ b/lbry/__init__.py @@ -1,2 +1,2 @@ -__version__ = "0.58.2" +__version__ = "0.59.0" version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name diff --git a/lbry/wallet/network.py b/lbry/wallet/network.py index 50cc7c8f9..8ddd2f326 100644 --- a/lbry/wallet/network.py +++ b/lbry/wallet/network.py @@ -148,7 +148,7 @@ class ClientSession(BaseClientSession): class Network: PROTOCOL_VERSION = __version__ - MINIMUM_REQUIRED = (0, 57, 0) + MINIMUM_REQUIRED = (0, 59, 0) def __init__(self, ledger): self.ledger = ledger diff --git a/scripts/release.py b/scripts/release.py index 8e053eec9..0678075ad 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -124,7 +124,11 @@ def release(args): current_version = Version.from_content(version_file) print(f'Current Version: {current_version}') - new_version = current_version.increment(args.action) + + if args.action == 'current': + new_version = current_version + else: + new_version = current_version.increment(args.action) print(f' New Version: {new_version}') previous_release = repo.release_from_tag(args.start_tag or current_version.tag) @@ -241,7 +245,7 @@ def main(): parser.add_argument("--confirm", default=False, action="store_true", help="without this flag, it will only print what it will do but will not actually do it") parser.add_argument("--start-tag", help="custom starting tag for changelog generation") - parser.add_argument("action", choices=['test', 'major', 'minor', 'micro']) + parser.add_argument("action", choices=['test', 'current', 'major', 'minor', 'micro']) args = parser.parse_args() if args.action == "test":