From 8227424d06c565db7fe2c4a6d218c8aa429f1f5c Mon Sep 17 00:00:00 2001 From: "praveen.kanniah@PP-C02FX9SXMD6M" Date: Sun, 2 Jun 2024 20:31:54 +0530 Subject: [PATCH 1/3] Adding workflow for generating automatic version update --- .github/workflows/mantis-cli-release.yml | 3 +++ pyproject.toml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mantis-cli-release.yml b/.github/workflows/mantis-cli-release.yml index c4319f60..9d3ac794 100644 --- a/.github/workflows/mantis-cli-release.yml +++ b/.github/workflows/mantis-cli-release.yml @@ -26,6 +26,9 @@ jobs: with: python-version: '3.9' + - name: Install Poetry and bump2version + run: pip install poetry==1.4.2 bump2version==1.0.1 + - name: Install dependencies run: poetry install diff --git a/pyproject.toml b/pyproject.toml index 33ad90f1..e11b2407 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ rocketry = "2.5.1" boto3 = "1.28.20" tqdm = "4.66.1" cloudflare = "*" -bump2version = "^1.0.1" [build-system] requires = ["poetry-core"] From fcc8d6d93ea08153a6fc9070a739edbcb3d30562 Mon Sep 17 00:00:00 2001 From: "praveen.kanniah@PP-C02FX9SXMD6M" Date: Sun, 2 Jun 2024 20:38:21 +0530 Subject: [PATCH 2/3] Added version in module's __init__.py --- mantis/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mantis/__init__.py b/mantis/__init__.py index e69de29b..a68927d6 100644 --- a/mantis/__init__.py +++ b/mantis/__init__.py @@ -0,0 +1 @@ +__version__ = "0.1.0" \ No newline at end of file From 484a600b847c9772039dcf72ac5bbfbed9d7494f Mon Sep 17 00:00:00 2001 From: "praveen.kanniah@PP-C02FX9SXMD6M" Date: Sun, 2 Jun 2024 21:06:36 +0530 Subject: [PATCH 3/3] Removed install dependencies step in actions --- .github/workflows/mantis-cli-release.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/mantis-cli-release.yml b/.github/workflows/mantis-cli-release.yml index 9d3ac794..0e71adaa 100644 --- a/.github/workflows/mantis-cli-release.yml +++ b/.github/workflows/mantis-cli-release.yml @@ -29,9 +29,6 @@ jobs: - name: Install Poetry and bump2version run: pip install poetry==1.4.2 bump2version==1.0.1 - - name: Install dependencies - run: poetry install - - name: Bump version id: bump_version run: poetry run bump2version patch