bump-version
Bump the VoxelPic version to a user-specified value. USE FOR: setting or updating the project version across all files that embed it. Applies to requests like 'bump version to X.Y.Z', 'set version', or 'update version'.
- License 许可
- MIT
- 最近更新
- 2026-03-21
- Stars
- ★ 0
- Forks
- 4
01 前言 Front Matter
- description
- Bump the VoxelPic version to a user-specified value. USE FOR: setting or updating the project version across all files that embed it. Applies to requests like 'bump version to X.Y.Z', 'set version', or 'update version'.
03 SKILL.md 正文
Bump Version
When to Use
Use this skill when the user asks to set, bump, or update the project version.
Version Locations
The version string (semver MAJOR.MINOR.PATCH) must be updated in all four
of the following files. Missing any one will cause a mismatch between the C
library, the Python package, and the citation metadata.
1. VERSION (root)
Single-line file containing the bare version string. This is the source of truth
for CMake — the root CMakeLists.txt reads it at configure time and derives
VOXELPIC_VERSION_MAJOR, VOXELPIC_VERSION_MINOR, and
VOXELPIC_VERSION_REVISION, which are substituted into tools/version.h.in to
produce the vpic tool's build-info header.
X.Y.Z
2. include/voxelpic/voxelpic.h (line ~9)
The public C header defines a string macro used by consumers of the library:
#define VOXELPIC_VERSION "X.Y.Z"
3. pyproject.toml (under [project])
The Python package version is hardcoded here (not derived from the VERSION
file):
version = "X.Y.Z"
4. CITATION.cff (field version)
Academic citation metadata:
version: X.Y.Z
Also update the date-released field to today's date (YYYY-MM-DD).
Procedure
- Ask the user for the target version if not already provided.
- Edit all four files listed above, replacing the old version with the new one.
- Update the
date-releasedfield inCITATION.cffto today's date. - Verify there are no other stale version references by searching the codebase
for the old version string (exclude
build/,build-*/, and__pycache__/directories). - Summarise the changes made.
Notes
tools/version.h.indoes not need editing — it uses CMake variables populated from theVERSIONfile at configure time.CMakeLists.txtdoes not need editing — it reads from theVERSIONfile.- After bumping, the user should reconfigure CMake (
cmake -B build --preset release) so the generatedversion.hpicks up the new value.
04 同仓库更多 Skills
python-testing
Write and run Python tests for the VoxelPic library. USE FOR: adding new pytest test cases, understanding the Python API and test patterns, debugging Python test failures, or running the existing Python test suite.
c-testing
Write, build, and run C tests for the VoxelPic library. USE FOR: adding new C test cases, understanding the test data format, debugging test failures, or running the existing C test suite.