Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,34 @@
name = "ZenlessZoneZero-OneDragon"
version = "2.0.0"
description = "绝区零 一条龙 | 全自动 | 自动闪避 | 自动每日 | 自动空洞 | 支持手柄"
requires-python = ">=3.11.9,<3.12"
requires-python = ">=3.11.9,<3.14"
dependencies = [
"pyside6==6.8.0.2",
"pyside6==6.10.2",
"pyside6-fluent-widgets==1.11.1",
"pyyaml==6.0.1",
"opencv-python==4.10.0.84",
"pyyaml==6.0.3",
"numpy==2.2.6",# 限制来numpy兼容soundcard
"opencv-python==4.13.0.92",
"pyautogui==0.9.54",
"pynput==1.7.7",
"onnxruntime-directml==1.18.0",
"pynput==1.8.1",
"onnxruntime-directml==1.24.3",
"mss==9.0.1",
"shapely==2.0.4",
"pyclipper==1.3.0.post5",
"soundcard==0.4.3",
"librosa==0.10.2.post1",
"gensim==4.3.3",
"pygit2==1.19.0",
"shapely==2.1.2",
"pyclipper==1.4.0",
"soundcard==0.4.5",
"librosa==0.11.0",
"gensim==4.4.0",
"pygit2==1.19.1",
]

[dependency-groups]
dev = [
"colorama==0.4.6",
"matplotlib==3.10.3",
"matplotlib==3.10.8",
"polib==1.2.0",
"pyinstaller==6.7.0",
"pyinstaller==6.19.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

pyinstaller==6.19.0 需要先回归验证现有 spec/hook 的兼容性。

Line 29 升级跨度较大;deploy/OneDragon-RuntimeLauncher.spec(Line 1-41, 62-77)、deploy/OneDragon-Launcher.spec(Line 19-40)以及 deploy/hook_path_inject.py(Line 1-22)都依赖 PyInstaller 的构建 API 与运行时 hook 行为,建议合并前完成兼容性核对。

#!/bin/bash
set -euo pipefail

echo "== PyInstaller 相关导入与构建调用 =="
rg -n --type=py -C2 'from PyInstaller\.building\.(api|build_main) import|Analysis\(|EXE\(|PYZ\(|COLLECT\(' deploy

echo
echo "== runtime hook 的路径注入与包路径修改 =="
rg -n --type=py -C2 'sys\.path\.insert|__path__\.append|import one_dragon' deploy/hook_path_inject.py
PyInstaller 6.19.0 的 Analysis/EXE/PYZ/COLLECT 参数签名是否与 6.7.0 保持兼容?官方文档或发布说明里有哪些 breaking/deprecation 需要迁移?
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pyproject.toml` at line 29, Upgrade to pyinstaller==6.19.0 requires
validating that the spec files and runtime hook still work: inspect
deploy/OneDragon-RuntimeLauncher.spec and deploy/OneDragon-Launcher.spec for
uses of Analysis, EXE, PYZ, COLLECT and update their argument usage to match
PyInstaller 6.19.0 signatures; review deploy/hook_path_inject.py for any
sys.path.insert / __path__.append manipulations and ensure runtime hook import
semantics still apply; run the supplied grep commands (or equivalent) to find
all usages of from PyInstaller.building.api/build_main imports and calls to
Analysis()/EXE()/PYZ()/COLLECT() and adjust parameters or migration patterns per
PyInstaller 6.19.0 release notes, updating spec/hook code accordingly before
merging.

"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"ruff>=0.12.10",
"pytest-asyncio>=1.3.0",
"ruff>=0.15.6",
"pyuac==0.0.3",
]

Expand Down
Loading
Loading