lucasfang opened a new pull request, #508: URL: https://github.com/apache/paimon-cpp/pull/508
### Purpose Closes #507. After publishing 0.4.0, `bump_version.py 0.4.0 0.5.0` currently labels the unreleased 0.5.0 documentation as stable. Change the post-release bump to advance CMake and documentation to 0.5.0 while promoting the released 0.4.0 version to stable and keeping the development entry named `main`. Archive the previous stable only when its major.minor series changes. Add an independent `--promote-stable VERSION` operation for updating stable documentation without advancing development. Require project and documentation versions to match the promotion target, support dry-run for both operations, and retain existing `--check` behavior for release tooling and older Git refs. ### Tests - `python3 -m unittest discover -s scripts/releasing/tests -v` — all 25 tests passed. - Regression coverage includes consecutive development bumps, patch releases, stable promotion without a bump, repeated promotion without duplicate archives, unchanged project files during promotion, dry-run without writes, invalid operations, and legacy development labels. - `pre-commit run --files scripts/releasing/bump_version.py scripts/releasing/tests/test_release_tools.py scripts/releasing/README.md` — passed. - `python3 scripts/releasing/bump_version.py --check 0.4.0` — passed. - `git diff --check` — passed. - C++ build and integration tests were not run; this change affects Python release tooling and documentation only. ### API and Format No changes to public C++ APIs, storage formats, or protocols. The two-version CLI now treats the old version as the release just published and the new version as the next development version. The new `--promote-stable` option cannot be combined with positional version arguments or `--check`. ### Documentation Updated `scripts/releasing/README.md` with the post-release workflow, independent stable promotion, dry-run behavior, and consistency-check semantics. No project version bump or stable promotion is performed by this PR itself. ### Generative AI tooling Generated-by: OpenAI Codex 0.166.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
