Skip to content

feat: Windows 快速部署包 - 下载正确的 WebUI #1441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lss233
Copy link
Owner

@lss233 lss233 commented Mar 30, 2025

好的,这是翻译成中文的 pull request 总结:

Sourcery 总结

更新包下载的版本检索逻辑并修改项目元数据

新特性:

  • 修改 PyPI 版本检索,以获取最新版本,而不仅仅是稳定版本

增强:

  • 更新版本检索机制,使用包元数据中的最新版本

杂务:

  • 更新项目版本至 3.2.0a1
  • 添加许可证文件规范到项目元数据
Original summary in English

Summary by Sourcery

Update version retrieval logic for package downloads and modify project metadata

New Features:

  • Modify PyPI version retrieval to fetch the latest version instead of only stable versions

Enhancements:

  • Update version retrieval mechanism to use the latest version from package metadata

Chores:

  • Update project version to 3.2.0a1
  • Add license file specification to project metadata

lss233 added 2 commits March 30, 2025 21:02
- Updated project version in pyproject.toml to 3.2.0a1.
- Added license information specifying AGPL-3.0-only and included license files.
Copy link
Contributor

sourcery-ai bot commented Mar 30, 2025

## Sourcery 评审指南

此拉取请求更新了检索最新 PyPI 包版本的方法,修改了项目版本,并将许可证信息添加到项目元数据。

_由于更改看起来很简单,不需要可视化表示,因此未生成图表。_

### 文件级别更改

| 变更 | 详情 | 文件 |
| ------ | ------- | ----- |
| 修改了检索最新 PyPI 包版本的逻辑,直接从 `info` 部分获取版本,并遍历所有 URL 以查找 wheel 包。 | <ul><li>移除了版本比较逻辑。</li><li>移除了稳定版本的过滤。</li><li>修改了循环以遍历所有 URL,而不是特定版本的发布。</li></ul> | `kirara_ai/web/api/system/utils.py` |
| 将项目版本从 3.1.1 更新到 3.2.0a1。 | <ul><li>更改了 `pyproject.toml` 中的 version 字段。</li></ul> | `pyproject.toml` |
| 将许可证信息添加到项目元数据。 | <ul><li>添加了 `license` 字段,值为 `AGPL-3.0-only`。</li><li>添加了 `license-files` 字段,值为 `['LICENSE']`。</li></ul> | `pyproject.toml` |

---

<details>
<summary>提示和命令</summary>

#### 与 Sourcery 互动

- **触发新的评审:** 在拉取请求上评论 `@sourcery-ai review`。
- **继续讨论:** 直接回复 Sourcery 的评审评论。
- **从评审评论生成 GitHub issue:** 通过回复评审评论,要求 Sourcery 从评审评论创建一个 issue。您也可以回复评审评论并使用 `@sourcery-ai issue` 从中创建一个 issue。
- **生成拉取请求标题:** 在拉取请求标题中的任何位置写入 `@sourcery-ai` 以随时生成标题。您也可以在拉取请求上评论 `@sourcery-ai title` 以随时(重新)生成标题。
- **生成拉取请求摘要:** 在拉取请求正文中的任何位置写入 `@sourcery-ai summary` 以随时在您想要的位置生成 PR 摘要。您也可以在拉取请求上评论 `@sourcery-ai summary` 以随时(重新)生成摘要。
- **生成评审指南:** 在拉取请求上评论 `@sourcery-ai guide` 以随时(重新)生成评审指南。
- **解决所有 Sourcery 评论:** 在拉取请求上评论 `@sourcery-ai resolve` 以解决所有 Sourcery 评论。如果您已经处理了所有评论并且不想再看到它们,这将非常有用。
- **驳回所有 Sourcery 评审:** 在拉取请求上评论 `@sourcery-ai dismiss` 以驳回所有现有的 Sourcery 评审。如果您想重新开始一个新的评审,这将特别有用 - 不要忘记评论 `@sourcery-ai review` 以触发新的评审!
- **为 issue 生成行动计划:** 在 issue 上评论 `@sourcery-ai plan` 以生成行动计划。

#### 自定义您的体验

访问您的 [仪表板](https://app.sourcery.ai) 以:
- 启用或禁用评审功能,例如 Sourcery 生成的拉取请求摘要、评审指南等。
- 更改评审语言。
- 添加、删除或编辑自定义评审说明。
- 调整其他评审设置。

#### 获取帮助

- [联系我们的支持团队](mailto:support@sourcery.ai) 提出问题或反馈。
- 访问我们的 [文档](https://docs.sourcery.ai) 获取详细指南和信息。
- 通过在 [X/Twitter](https://x.com/SourceryAI)、[LinkedIn](https://www.linkedin.com/company/sourcery-ai/) 或 [GitHub](https://github.com/sourcery-ai) 上关注我们,与 Sourcery 团队保持联系。

</details>
Original review guide in English

Reviewer's Guide by Sourcery

This pull request updates the method for retrieving the latest PyPI package version, modifies the project version, and adds license information to the project metadata.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Modified the logic for retrieving the latest PyPI package version to directly fetch the version from the info section and iterate through all URLs to find the wheel package.
  • Removed the version comparison logic.
  • Removed the filtering of stable versions.
  • Modified the loop to iterate through all URLs instead of releases for a specific version.
kirara_ai/web/api/system/utils.py
Updated the project version from 3.1.1 to 3.2.0a1.
  • Changed the version field in pyproject.toml.
pyproject.toml
Added license information to the project metadata.
  • Added license field with value AGPL-3.0-only.
  • Added license-files field with value ['LICENSE'].
pyproject.toml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

codecov bot commented Mar 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.14%. Comparing base (470f0f2) to head (1862260).
Report is 92 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1441      +/-   ##
==========================================
- Coverage   67.15%   67.14%   -0.01%     
==========================================
  Files         149      149              
  Lines        6676     6671       -5     
==========================================
- Hits         4483     4479       -4     
+ Misses       2193     2192       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

@lss233 - 我已经审查了你的更改 - 这里有一些反馈:

总体评论

  • 考虑添加一条注释,解释为什么你要更改 pyproject.toml 中的版本控制方案。
以下是我在审查期间查看的内容
  • 🟢 一般问题:一切看起来都很好
  • 🟢 安全性:一切看起来都很好
  • 🟢 测试:一切看起来都很好
  • 🟢 复杂性:一切看起来都很好
  • 🟢 文档:一切看起来都很好

Sourcery 对开源是免费的 - 如果你喜欢我们的评论,请考虑分享它们 ✨
帮助我更有用!请点击每个评论上的 👍 或 👎,我将使用反馈来改进你的评论。
Original comment in English

Hey @lss233 - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider adding a comment explaining why you are changing the versioning scheme in pyproject.toml.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@lss233 lss233 force-pushed the feature/ci_prerelease_webui branch 3 times, most recently from 0610d87 to f422d36 Compare March 30, 2025 15:05
- Added logic to determine if the current version is a pre-release and select the appropriate Web UI release accordingly.
- Updated the asset metadata to include a prerelease flag based on the version type.
@lss233 lss233 force-pushed the feature/ci_prerelease_webui branch from f422d36 to 1862260 Compare March 30, 2025 15:14
Copy link

github-actions bot commented Jun 9, 2025

👋 您好!这个 PR 已经 60 天没有活动了。
为了保持我们的 PR 列表整洁,我们会标记长时间不活跃的 PR。 如果您仍在处理这个 PR,请留下评论或移除 "stale" 标签, 否则它将在 14 天后自动关闭。
如果您需要帮助完成这个 PR,请告诉我们!
感谢您的贡献!

@github-actions github-actions bot added stale and removed stale labels Jun 9, 2025
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