Skip to content

chore!: 更新依赖#2103

Open
A-nony-mous wants to merge 1 commit into
OneDragon-Anything:mainfrom
A-nony-mous:chore/260317
Open

chore!: 更新依赖#2103
A-nony-mous wants to merge 1 commit into
OneDragon-Anything:mainfrom
A-nony-mous:chore/260317

Conversation

@A-nony-mous
Copy link
Copy Markdown
Contributor

@A-nony-mous A-nony-mous commented Mar 16, 2026

无breaking changes

锁定numpy到2.2.6防止soundcard依赖问题,如果soundcard更新则可取消numpy锁定

已测试3.13

Summary by CodeRabbit

  • 新功能
    • 提升对最新 Python 版本的兼容性(至 3.13.x)。
  • 杂务
    • 全面更新图形界面、音视频处理、计算机视觉与推理相关依赖,改进稳定性与性能。
    • 新增基础数值计算依赖,提升运行一致性。
    • 开发工具链与测试依赖升级,改进打包、代码质量与异步测试体验。

无breaking changes

锁定numpy到2.2.6防止soundcard依赖问题,如果soundcard更新则可取消numpy锁定

已测试3.13
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 16, 2026

概览

更新了 pyproject.toml 中的多个依赖项版本,包括将 Python 版本支持扩展到 3.13.x,升级 PySide6、OpenCV、NumPy 等关键包,以及开发依赖项如 PyInstaller 和 Ruff 的版本。

变更

内聚体 / 文件 摘要
依赖项版本更新
pyproject.toml
将 Python 版本要求从 >=3.11.9,<3.12 扩展至 >=3.11.9,<3.14;升级 PySide6 (6.8.0.2 → 6.10.2)、OpenCV-Python (4.10.0.84 → 4.13.0.92)、PyYAML (6.0.1 → 6.0.3)、ONNXRuntime-DirectML (1.18.0 → 1.24.3) 等多个核心包;新增 NumPy==2.2.6 依赖项;更新音频/计算库 (Librosa、Gensim、Shapely、PyClipper、SoundCard)。
开发依赖项更新
pyproject.toml
升级 PyInstaller (6.7.0 → 6.19.0)、Matplotlib (3.10.3 → 3.10.8)、Ruff (>=0.12.10 → >=0.15.6) 和 pytest-asyncio (>=1.1.0 → >=1.3.0)。

预期代码审查工作量

🎯 2 (简单) | ⏱️ ~10 分钟

🐰 依赖更新来临时,
版本升级齐欢喜,
NumPy 新朋加队伍,
兼容性拓展开,
项目焕发新活力!✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题清晰准确地反映了此拉取请求的主要变更内容——更新依赖版本。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@pyproject.toml`:
- 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.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8510408b-1c80-4bbe-97d2-3139397bd26a

📥 Commits

Reviewing files that changed from the base of the PR and between e03878b and 7b28202.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml

Comment thread pyproject.toml
"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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant