From ca7ffc8e651c598c098b90714960527944c781b3 Mon Sep 17 00:00:00 2001 From: Petr Date: Tue, 27 Apr 2021 14:44:55 +0300 Subject: [PATCH] Require version --- make_release_package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make_release_package.py b/make_release_package.py index 34d6676..aa1de2c 100755 --- a/make_release_package.py +++ b/make_release_package.py @@ -7,16 +7,16 @@ import os import subprocess -package_version = "0.1.1" # todo - project_root_path = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser(description='Create release artifacts.') parser.add_argument( 'destination', help='Destination folder for the package.', type=Path) +parser.add_argument('version', help='Package version in x.x.x format.', type=str) args = parser.parse_args() package_path = Path(args.destination) +package_version = args.version Path(package_path).mkdir(parents=True, exist_ok=True)