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)

This commit is contained in:
Research Assistant 2026-04-27 21:25:00 +08:00
parent f31efec521
commit 94f00e990a
3 changed files with 5 additions and 7 deletions

View file

@ -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": {

View file

@ -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__)

View file

@ -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: