From d35712d0f200b7862450b173a1bee95d1bd85dc8 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Tue, 30 Dec 2025 21:21:59 +0800 Subject: feat: Update Python version requirement and add onnxscript dependency - Changed the required Python version from >=3.12 to >=3.10 in pyproject.toml. - Reformatted the dependencies section for better readability. - Added "onnxscript>=0.5.7" to the train optional dependencies. --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 410c8e4..356884d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "0.1.5" description = "HydroRoll TRPG NER 模型 - 桌上角色扮演游戏日志命名实体识别" authors = [{ name = "HsiangNianian", email = "leader@hydroroll.team" }] readme = "README.md" -requires-python = ">=3.12" +requires-python = ">=3.10" license = { text = "AFL-3.0" } keywords = [ "hydroroll", @@ -30,7 +30,11 @@ classifiers = [ "Topic :: Text Processing :: Linguistic", ] -dependencies = ["numpy>=1.24.0", "onnxruntime>=1.23.2", "transformers>=4.57.3"] +dependencies = [ + "numpy>=1.24.0", + "onnxruntime>=1.23.2", + "transformers>=4.57.3", +] [project.optional-dependencies] train = [ @@ -38,6 +42,7 @@ train = [ "datasets>=2.18.0", "accelerate>=0.27.0", "tqdm>=4.66.0", + "onnxscript>=0.5.7", ] dev = [ "base-model-trpgner[train]", -- cgit v1.2.3-70-g09d2