From dd30d902bf499472dc3d98d348be1dc38ced6aff Mon Sep 17 00:00:00 2001 From: Paul O'Fallon <505519+pofallon@users.noreply.github.com> Date: Sat, 25 Jul 2026 00:31:04 +0000 Subject: [PATCH] fix(ci): scope release-please to pyproject.toml only (leave __init__.py sentinel) The `python` release-type rewrote the PackageNotFoundError *fallback sentinel* in src/remo_cli/__init__.py (`__version__ = "0.0.0-dev"` -> the release version), mistaking it for the canonical literal. The real version comes from importlib.metadata (pyproject); the fallback must stay a dev sentinel or an un-installed source checkout would falsely report the last-released version. Switch to release-type `simple` with an explicit extra-files entry that bumps only `[project].version` in pyproject.toml. release-please now updates pyproject.toml + CHANGELOG.md + the manifest, and never touches __init__.py. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01HAPB5GA4NVUgKFsVFVJDxN --- release-please-config.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/release-please-config.json b/release-please-config.json index 450d13a..50b241f 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -2,13 +2,20 @@ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "packages": { ".": { - "release-type": "python", + "release-type": "simple", "package-name": "remo-cli", "changelog-path": "CHANGELOG.md", "include-component-in-tag": false, "bump-minor-pre-major": false, "draft": false, - "prerelease": false + "prerelease": false, + "extra-files": [ + { + "type": "toml", + "path": "pyproject.toml", + "jsonpath": "$.project.version" + } + ] } } }