From 94f00e990a796dfb7ce2d2047f88b9f29ccb5e04 Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Mon, 27 Apr 2026 21:25:00 +0800 Subject: [PATCH] fix: sync paperforge.json version to 1.4.0; fix update.py missing GITHUB_REPO/GITHUB_ZIP imports; remove PaperForge.base generation (duplicates Literature Hub) --- paperforge.json | 2 +- paperforge/worker/update.py | 1 + tests/test_base_preservation.py | 9 +++------ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/paperforge.json b/paperforge.json index b5fe82cc..606bf1fa 100644 --- a/paperforge.json +++ b/paperforge.json @@ -1,6 +1,6 @@ { "name": "PaperForge-Lite", - "version": "1.2.0", + "version": "1.4.0", "description": "Lightweight literature management automation for Obsidian + Zotero", "repository": "https://github.com/LLLin000/PaperForge", "update": { diff --git a/paperforge/worker/update.py b/paperforge/worker/update.py index 9e3b5d55..e76201c6 100644 --- a/paperforge/worker/update.py +++ b/paperforge/worker/update.py @@ -18,6 +18,7 @@ from paperforge.worker._utils import ( read_json, write_json, ) +from paperforge.worker.status import GITHUB_REPO, GITHUB_ZIP logger = logging.getLogger(__name__) diff --git a/tests/test_base_preservation.py b/tests/test_base_preservation.py index 02d44221..c379d35d 100644 --- a/tests/test_base_preservation.py +++ b/tests/test_base_preservation.py @@ -168,8 +168,8 @@ class TestLiteratureHubBase: assert PAPERFORGE_VIEW_PREFIX in content assert "${LIBRARY_RECORDS}" not in content, "Placeholder should be substituted" - def test_paperforge_base_created(self, tmp_path): - """PaperForge.base (all records) is created alongside domain bases.""" + def test_paperforge_base_not_created(self, tmp_path): + """PaperForge.base (all records) is NOT created (removed in v1.4.1).""" vault = tmp_path / "Vault" vault.mkdir() resources = vault / "03_Resources" @@ -197,10 +197,7 @@ class TestLiteratureHubBase: ensure_base_views(vault, paths, config, force=False) pf_base = bases / "PaperForge.base" - assert pf_base.exists(), "PaperForge.base not created" - content = pf_base.read_text(encoding="utf-8") - assert content.count("type: table") == 8 - assert "${LIBRARY_RECORDS}" not in content + assert not pf_base.exists(), "PaperForge.base should not be created" class TestMergeBaseViews: