From cee637c59acff76881434400cc2435bbc8211725 Mon Sep 17 00:00:00 2001 From: zhilv Date: Thu, 20 Nov 2025 20:07:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(deps):=20=E6=96=B0=E5=A2=9E=20uv=20?= =?UTF-8?q?=E7=9A=84=20pyproject.toml=20=E8=BF=9B=E8=A1=8C=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- pyproject.toml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/main.py b/main.py index e254029..72d2874 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 +from lxml import etree # type: ignore from threading import Thread from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry @@ -29,7 +29,7 @@ import warnings # 修复 ANTIALIAS 错误 - 添加猴子补丁 import PIL.Image if not hasattr(PIL.Image, 'ANTIALIAS'): - PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS + PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore warnings.filterwarnings("ignore") diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..02a489d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,18 @@ +[project] +name = "ckwk" +version = "0.1.0" +description = "刷课" +readme = "README.md" +requires-python = ">=3.13" +dependencies = [ + "ddddocr>=1.5.6", + "dotenv>=0.9.9", + "lxml>=6.0.2", + "pypi-demo", +] + +[tool.uv.sources] +pypi-demo = { workspace = true } + +[[tool.uv.index]] +url = "https://gitea.kmux.cn/api/packages/python/pypi"