Skip to content

Commit d6786c1

Browse files
authored
Changed package to be github-flow compatible. (#346)
1 parent 49c0408 commit d6786c1

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Release python package
22

33
on:
4-
push:
5-
tags:
6-
- "*"
4+
release:
5+
types:
6+
- released
77

88
jobs:
99
deploy_docs:
@@ -47,6 +47,8 @@ jobs:
4747
python-version: "3.11"
4848
- name: Install deps
4949
run: poetry install
50+
- name: Set version
51+
run: poetry version "${{ github.ref_name }}"
5052
- name: Release package
5153
env:
5254
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "taskiq"
3-
version = "0.11.6"
3+
version = "0.0.0"
44
description = "Distributed task queue with full async support"
55
authors = ["Pavel Kirilin <[email protected]>"]
66
maintainers = ["Pavel Kirilin <[email protected]>"]

taskiq/scheduler/created_schedule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ async def unschedule(self) -> None:
4848

4949
def __str__(self) -> str:
5050
return (
51-
"CreatedSchedule("
51+
"CreatedSchedule<"
5252
f"id={self.schedule_id}, "
5353
f"time={self.task.time}, "
5454
f"cron={self.task.cron}, "
5555
f"cron_offset={self.task.cron_offset or 'UTC'}, "
5656
f"task_name={self.task.task_name}, "
5757
f"args={self.task.args}, "
58-
f"kwargs={self.task.kwargs})"
58+
f"kwargs={self.task.kwargs}>"
5959
)

0 commit comments

Comments
 (0)