Repository navigation
版本号升至 1.1.0,设置页显示真实版本与许可证 - #11
Merged
Merged
Conversation
设置页「关于」此前写死 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
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 包里确认)。读取失败时显示「未知」。uv.lock跟着uv lock一起更新。验证:ruff 通过,pytest 42 项全绿。
🤖 Generated with Claude Code
https://claude.ai/code/session_01Rc1gnR8Z5AEH5z4VEfnkCC
Generated by Claude Code