From 7bb7ef1a0a340add3806ac074a82856a5f184ccb Mon Sep 17 00:00:00 2001 From: Dilawar Singh <dilawar@subcom.tech> Date: Thu, 29 Sep 2022 20:52:27 +0530 Subject: [PATCH] fix: removed walrus operator Requires python3.8 minimal --- CHANGELOG.md | 3 ++- bitia/__main__.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc663a..fdf5a96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.3] - 2022-09-29 ## Added -- Adds the public API. +- Use the public API by default +- Supports Python3.7+ ## Fixed - Removed 'submit' command. It will be added later. diff --git a/bitia/__main__.py b/bitia/__main__.py index dbe9006..f2ff06d 100644 --- a/bitia/__main__.py +++ b/bitia/__main__.py @@ -135,7 +135,8 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"): Prepare the user directory to send to the server. User can also provide link to the pipeline to run. """ - if (path := Path(user_input)).exists(): + path = Path(user_input) + if path.exists(): if path.is_dir(): pipeline_zip = prepare_archive(path) elif path.is_file() and path.suffix.lower() == ".zip": @@ -150,7 +151,7 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"): else: # generate a temporary pipeline and submit. pipeline_zip = create_pipeline_from_command(user_input) - logging.info(f"Created pipeline in {pipeline_zip}") + logger.info(f"Created pipeline in {pipeline_zip}") submit_job(pipeline_zip, server) -- GitLab