Merge pull request #2780 from lbryio/release_current

manually incremented version and added support to release script to r…
This commit is contained in:
Lex Berezhny 2020-02-09 20:41:00 -05:00 committed by GitHub
commit 748178f536
3 changed files with 8 additions and 4 deletions

View file

@ -1,2 +1,2 @@
__version__ = "0.58.2"
__version__ = "0.59.0"
version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name

View file

@ -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

View file

@ -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":