From 36e820d0acd73f0b99ee2d732129a1653a996373 Mon Sep 17 00:00:00 2001 From: Dilawar Singh <dilawar@subcom.tech> Date: Thu, 29 Sep 2022 20:55:41 +0530 Subject: [PATCH] BREAKING CHANGE: minial support python is version 3.8 --- .gitlab-ci.yml | 2 +- bitia/__main__.py | 5 ++--- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96e8350..5d9eba7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: python:3.7-slim-buster +image: python:3.8-slim-buster stages: - build diff --git a/bitia/__main__.py b/bitia/__main__.py index f2ff06d..dbe9006 100644 --- a/bitia/__main__.py +++ b/bitia/__main__.py @@ -135,8 +135,7 @@ 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. """ - path = Path(user_input) - if path.exists(): + if (path := Path(user_input)).exists(): if path.is_dir(): pipeline_zip = prepare_archive(path) elif path.is_file() and path.suffix.lower() == ".zip": @@ -151,7 +150,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) - logger.info(f"Created pipeline in {pipeline_zip}") + logging.info(f"Created pipeline in {pipeline_zip}") submit_job(pipeline_zip, server) diff --git a/pyproject.toml b/pyproject.toml index 16ed781..7bda3dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Dilawar Singh <dilawar@subcom.tech>"] readme = "README.md" [tool.poetry.dependencies] -python = ">=3.7.2,<4.0" +python = ">=3.8,<4.0" requests = "^2.28.1" typer = "^0.6.1" rich = "^12.5.1" -- GitLab