diff --git a/main.py b/main.py index 72d2874..4abd953 100644 --- a/main.py +++ b/main.py @@ -20,7 +20,7 @@ import random import ddddocr from datetime import datetime from dotenv import load_dotenv -from lxml import etree # type: ignore +from lxml import etree # type: ignore from threading import Thread from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry @@ -28,8 +28,9 @@ import warnings # 修复 ANTIALIAS 错误 - 添加猴子补丁 import PIL.Image -if not hasattr(PIL.Image, 'ANTIALIAS'): - PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore + +if not hasattr(PIL.Image, "ANTIALIAS"): + PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore warnings.filterwarnings("ignore") diff --git a/pyproject.toml b/pyproject.toml index 02a489d..cafa223 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,11 +8,5 @@ dependencies = [ "ddddocr>=1.5.6", "dotenv>=0.9.9", "lxml>=6.0.2", - "pypi-demo", + "requests>=2.32.5", ] - -[tool.uv.sources] -pypi-demo = { workspace = true } - -[[tool.uv.index]] -url = "https://gitea.kmux.cn/api/packages/python/pypi"