Skip to content

Commit

Permalink
🐛 version 0.10.2
Browse files Browse the repository at this point in the history
fix crontier dependency
  • Loading branch information
RF-Tar-Railt committed Dec 17, 2024
1 parent b7decee commit 10f0439
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arclet/entari/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
WH = WebhookInfo
filter_ = Filter

__version__ = "0.10.1"
__version__ = "0.10.2"
5 changes: 4 additions & 1 deletion arclet/entari/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from arclet.letoderea import es
from arclet.letoderea.typing import Contexts
from croniter import croniter
from launart import Launart, Service, any_completed
from launart.status import Phase

Expand Down Expand Up @@ -186,6 +185,10 @@ def crontab(cron_str: str):
Args:
cron_str (str): cron 表达式
"""
try:
from croniter import croniter
except ImportError:
raise ImportError("Please install croniter to use cron expression") from None

it = croniter(cron_str, datetime.now())

Expand Down
4 changes: 2 additions & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "arclet-entari"
version = "0.10.1"
version = "0.10.2"
description = "Simple IM Framework based on satori-python"
authors = [
{name = "RF-Tar-Railt",email = "[email protected]"},
Expand All @@ -25,6 +25,9 @@ classifiers = [

[project.optional-dependencies]
yaml = ["pyyaml>=6.0.2"]
cron = [
"croniter>=5.0.1",
]

[project.scripts]
entari = "arclet.entari.__main__:main"
Expand All @@ -45,7 +48,6 @@ dev = [
"fix-future-annotations>=0.5.0",
"watchfiles>=0.24.0",
"pyyaml>=6.0.2",
"croniter>=5.0.1",
]
[tool.black]
line-length = 120
Expand Down

0 comments on commit 10f0439

Please sign in to comment.