暂时移除 yukilog 依赖, 使用本地 yukilog
Some checks failed
Pytest API Testing / Pytes-API-Testing (push) Failing after 29s

This commit is contained in:
Nanaloveyuki
2025-11-14 12:50:31 +08:00
parent 5566e9294f
commit ec60213e00
7 changed files with 14 additions and 2 deletions

View File

View File

View File

View File

14
liteyukibot/thirdparty/yukilog/time.py vendored Normal file
View File

@@ -0,0 +1,14 @@
from time import localtime, strftime
def get_time(time_format: str = "%Y-%m-%d %H:%M:%S") -> str:
"""获取当前时间"""
return strftime(time_format, localtime())
def get_date() -> str:
"""获取当前日期,格式为 %Y-%m-%d"""
return get_time("%Y-%m-%d")
def get_time_with_ms() -> str:
"""获取当前毫秒级时间,格式为 %H:%M:%S.%f"""
return get_time("%H:%M:%S.%f")

View File

@@ -12,7 +12,6 @@ dependencies = [
"pydantic>=2.11.3",
"pyyaml>=6.0.2",
"uvicorn>=0.34.2",
"yukilog>=0.1.1",
]
# 开发依赖

1
uv.lock generated
View File

@@ -164,7 +164,6 @@ requires-dist = [
{ name = "pydantic", specifier = ">=2.11.3" },
{ name = "pyyaml", specifier = ">=6.0.2" },
{ name = "uvicorn", specifier = ">=0.34.2" },
{ name = "yukilog", specifier = ">=0.1.1", index = "https://git.liteyuki.org/api/packages/LiteyukiStudio/pypi/simple" },
]
[package.metadata.requires-dev]