From d6786c18c9dd671614de32b2ad402c3dd112943b Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Fri, 16 Aug 2024 00:55:03 +0200 Subject: [PATCH] Changed package to be github-flow compatible. (#346) --- .github/workflows/release.yml | 8 +++++--- pyproject.toml | 2 +- taskiq/scheduler/created_schedule.py | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9290bd9..95a1089 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ name: Release python package on: - push: - tags: - - "*" + release: + types: + - released jobs: deploy_docs: @@ -47,6 +47,8 @@ jobs: python-version: "3.11" - name: Install deps run: poetry install + - name: Set version + run: poetry version "${{ github.ref_name }}" - name: Release package env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 48e33ff..ee4f4fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "taskiq" -version = "0.11.6" +version = "0.0.0" description = "Distributed task queue with full async support" authors = ["Pavel Kirilin "] maintainers = ["Pavel Kirilin "] diff --git a/taskiq/scheduler/created_schedule.py b/taskiq/scheduler/created_schedule.py index 8e87083..160605f 100644 --- a/taskiq/scheduler/created_schedule.py +++ b/taskiq/scheduler/created_schedule.py @@ -48,12 +48,12 @@ async def unschedule(self) -> None: def __str__(self) -> str: return ( - "CreatedSchedule(" + "CreatedSchedule<" f"id={self.schedule_id}, " f"time={self.task.time}, " f"cron={self.task.cron}, " f"cron_offset={self.task.cron_offset or 'UTC'}, " f"task_name={self.task.task_name}, " f"args={self.task.args}, " - f"kwargs={self.task.kwargs})" + f"kwargs={self.task.kwargs}>" )