Skip to content

版本号升至 1.1.0,设置页显示真实版本与许可证 - #11

Merged
kekemao00 merged 1 commit into
mainfrom
claude/readme-release-ci-v6mosj
Oct 2, 2026
Merged

kekemao00 merged 1 commit into
mainfrom
claude/readme-release-ci-v6mosj

Conversation

@kekemao00

Copy link
Copy Markdown
Owner

Requested by ColeMao · project thread

Before: 设置页「关于」写死显示「v1.0.0(Windows MVP)」和「MIT License」。改了 pyproject 的版本号,界面上的版本也不会跟着变。

After: 版本号升到 1.1.0。设置页的版本和许可证在运行时从 pyproject.toml 读取,现在显示 v1.1.0 和 Apache-2.0。

How

  • 新增 core/version.py,直接用 tomllib 读取 pyproject.toml。打包后的应用不是一个已安装的发行包,importlib.metadata 取不到它;而 pyproject.toml 会随源码打进 app.zip(已在 v1.0.0 的 Windows 包里确认)。读取失败时显示「未知」。
  • 新增 2 个单测。uv.lock 跟着 uv lock 一起更新。

验证:ruff 通过,pytest 42 项全绿。

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rc1gnR8Z5AEH5z4VEfnkCC


Generated by Claude Code

设置页「关于」此前写死 v1.0.0 与 MIT,现从打包进应用的 pyproject.toml 读取(打包后 importlib.metadata 取不到本应用)。

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rc1gnR8Z5AEH5z4VEfnkCC
@cr-gpt

cr-gpt Bot commented Oct 2, 2026

Copy link
Copy Markdown

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@kekemao00
kekemao00 merged commit ca174c5 into main Oct 2, 2026
3 of 6 checks passed
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.

2 participants