Skip to content
Merged
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

所有此项目的显著更改都将记录在此文件中。

## [Unreleased]
## [1.5.0] - 2026-10-15

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · 未来更改会被纳入已发布版本的说明

如果贡献者在本次发布之后、添加下一个版本标题之前提交更改,extract_section("1.5.0") 会一直包含后续条目,直到遇到下一个版本标题。因此,在当前唯一的标题下添加的发布后更改,会出现在 1.5.0 版本说明中,仿佛已经发布。

请在 1.5.0 条目上方恢复 ## [Unreleased] 部分。

面向 AI 代理的提示
在 `CHANGELOG.md` 第 5 行:

**未来更改会被纳入已发布版本的说明**

如果贡献者在本次发布之后、添加下一个版本标题之前提交更改,`extract_section("1.5.0")` 会一直包含后续条目,直到遇到下一个版本标题。因此,在当前唯一的标题下添加的发布后更改,会出现在 1.5.0 版本说明中,仿佛已经发布。

请在 1.5.0 条目上方恢复 `## [Unreleased]` 部分。
Original comment in English

🟡 Medium · Future changes enter released notes

When contributors add changes after this release but before adding the next version heading, extract_section("1.5.0") includes subsequent entries until the next version heading, so post-release changes added under the only current heading appear in the 1.5.0 release notes as already released.

Restore an ## [Unreleased] section above the 1.5.0 entry.

Prompt for AI agents
In `CHANGELOG.md` at line 5:

**Future changes enter released notes**

When contributors add changes after this release but before adding the next version heading, `extract_section("1.5.0")` includes subsequent entries until the next version heading, so post-release changes added under the only current heading appear in the 1.5.0 release notes as already released.

Restore an `## [Unreleased]` section above the 1.5.0 entry.


### 新增

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyrag-kit"
version = "1.4.0"
version = "1.5.0"
Comment thread
sourcery-ai[bot] marked this conversation as resolved.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚪ Low · 路线图中当前版本仍是旧版本

开发者在此次版本号更新后查阅路线图时,会看到路线图称变更日志的当前版本为 1.4.0。因此,按照该指引操作的开发者会使用过时的发布基准版本。

请将路线图中的当前版本引用更新为 1.5.0。

面向 AI 代理的提示
在 `pyproject.toml` 第 3 行:

**路线图中当前版本仍是旧版本**

开发者在此次版本号更新后查阅路线图时,会看到路线图称变更日志的当前版本为 1.4.0。因此,按照该指引操作的开发者会使用过时的发布基准版本。

请将路线图中的当前版本引用更新为 1.5.0。
Original comment in English

⚪ Low · Roadmap names old current version

When a developer consults the roadmap after this version bump, the roadmap says the changelog's current version is 1.4.0, so developers following that pointer get an outdated release baseline.

Update the roadmap's current-version reference to 1.5.0.

Prompt for AI agents
In `pyproject.toml` at line 3:

**Roadmap names old current version**

When a developer consults the roadmap after this version bump, the roadmap says the changelog's current version is 1.4.0, so developers following that pointer get an outdated release baseline.

Update the roadmap's current-version reference to 1.5.0.

description = "A lightweight Python implementation of Dify core RAG logic"
readme = "README.md"
authors = [{ name = "Mison", email = "1360962086@qq.com" }]
Expand Down
11 changes: 10 additions & 1 deletion tests/test_release_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
APP_NAME,
APP_ROOT_FILES,
PACKAGE_FILES,
load_version,
prepare_runtime_layout,
stage_bundle,
validate_bundle,
Expand Down Expand Up @@ -177,11 +178,19 @@ def test_validate_bundle_uses_smoke_test(monkeypatch, tmp_path):
def fake_run(command, **kwargs):
recorded["command"] = command
recorded["kwargs"] = kwargs
# 版本必须与 ``load_version()`` 动态同源:硬编码会在每次升版本时
# 触发「发布包自报版本与 pyproject.toml 不一致」的守卫(发 1.5.0
# 时实测)。这正是本守卫要拦的漂移形态,夹具不能自己 reproduces 它。
version = load_version()
return subprocess.CompletedProcess(
command, 0, stdout="PyRAG-Kit 1.4.0 smoke test ok\n", stderr=""
command, 0, stdout=f"PyRAG-Kit {version} smoke test ok\n", stderr=""
)

monkeypatch.setattr("scripts.build_binary_release.subprocess.run", fake_run)
monkeypatch.setattr(
"scripts.build_binary_release.load_version",
lambda: load_version(),
)

validate_bundle(bundle_root)

Expand Down