From e889c753e09937b64421eedcb0d0c8a86674139b Mon Sep 17 00:00:00 2001 From: MisonL <1360962086@qq.com> Date: Thu, 15 Oct 2026 09:32:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E5=8F=91=E5=B8=83=201.5.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 变更范围(相对 1.4.0): - feat: provider 工厂统一、Responses 协议面、local-hash 离线嵌入(PR #1) - chore: ruff format 全仓套用(PR #2) - fix: 检索与快照边界硬化——变异审计工具链收口 + 九轮 agents 审查 + codex 全 diff 复核,40 处缺陷与 12 处卫生问题(PR #3) - feat: main.py 支持 -h/--help(PR #4);TUI 提示色亮/暗主题适配(PR #5) - docs: 命令行参数与主题适配说明(PR #6) 测试 4185 → 4547,全部红/绿验证。 Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3088bf..99daeab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ 所有此项目的显著更改都将记录在此文件中。 -## [Unreleased] +## [1.5.0] - 2026-10-15 ### 新增 diff --git a/pyproject.toml b/pyproject.toml index 7371c27..727ec96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyrag-kit" -version = "1.4.0" +version = "1.5.0" description = "A lightweight Python implementation of Dify core RAG logic" readme = "README.md" authors = [{ name = "Mison", email = "1360962086@qq.com" }] From 21942fe83670104532c84b9619162165676b16d5 Mon Sep 17 00:00:00 2001 From: MisonL <1360962086@qq.com> Date: Thu, 15 Oct 2026 10:08:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E5=8F=91=E5=B8=83=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=A4=B9=E5=85=B7=E7=89=88=E6=9C=AC=E4=B8=8E=20pyproject=20?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=90=8C=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_validate_bundle_uses_smoke_test 的替身输出硬编码 1.4.0, 升版本到 1.5.0 后触发守卫「发布包自报版本与 pyproject.toml 不一致」 (CI 实测)。改为从 load_version() 动态构造——该守卫拦的正是这种 漂移,夹具不能自己复现它。 Co-Authored-By: Claude Fable 5 --- tests/test_release_scripts.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_release_scripts.py b/tests/test_release_scripts.py index 620cd0c..2a4f25d 100644 --- a/tests/test_release_scripts.py +++ b/tests/test_release_scripts.py @@ -8,6 +8,7 @@ APP_NAME, APP_ROOT_FILES, PACKAGE_FILES, + load_version, prepare_runtime_layout, stage_bundle, validate_bundle, @@ -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)