Skip to content

Commit

Permalink
Changed package to be github-flow compatible. (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius authored Aug 15, 2024
1 parent 49c0408 commit d6786c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release python package

on:
push:
tags:
- "*"
release:
types:
- released

jobs:
deploy_docs:
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
maintainers = ["Pavel Kirilin <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions taskiq/scheduler/created_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}>"
)

0 comments on commit d6786c1

Please sign in to comment.