Skip to content

ci(nightly): anchor nightly version to upcoming release in pyproject.toml#645

Merged
swahtz merged 1 commit into
openvdb:mainfrom
swahtz:js/nightly-build-version
Apr 27, 2026
Merged

ci(nightly): anchor nightly version to upcoming release in pyproject.toml#645
swahtz merged 1 commit into
openvdb:mainfrom
swahtz:js/nightly-build-version

Conversation

@swahtz

@swahtz swahtz commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Previously the nightly publish workflow hard-coded the base version as 0.0.0, producing wheels like 0.0.0.dev20260427+pt280.cu128. This made nightlies sort below every real release and gave no hint of which release cycle they belonged to.

Read the current version from pyproject.toml instead, strip any trailing pre/dev/post segment and local label, and use the resulting base release as the anchor. With pyproject.toml at 0.5.0.dev0 today's nightly becomes 0.5.0.dev20260427+pt280.cu128, which under PEP 440 sorts as:

0.5.0.dev0  <  0.5.0.devYYYYMMDD+ptX.cuY  <  0.5.0

so pip install --pre fvdb-core tracks nightlies until 0.5.0 ships, prefers the final release once tagged, and resumes tracking nightlies after the next dev-cycle bump. Fails fast if the version string can't be parsed.

…toml

Previously the nightly publish workflow hard-coded the base version as
0.0.0, producing wheels like 0.0.0.dev20260427+pt280.cu128. This made
nightlies sort below every real release and gave no hint of which
release cycle they belonged to.

Read the current `version` from pyproject.toml instead, strip any
trailing pre/dev/post segment and local label, and use the resulting
base release as the anchor. With pyproject.toml at 0.5.0.dev0 today's
nightly becomes 0.5.0.dev20260427+pt280.cu128, which under PEP 440
sorts as:

    0.5.0.dev0  <  0.5.0.devYYYYMMDD+ptX.cuY  <  0.5.0

so `pip install --pre fvdb-core` tracks nightlies until 0.5.0 ships,
prefers the final release once tagged, and resumes tracking nightlies
after the next dev-cycle bump. Fails fast if the version string can't
be parsed.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz requested a review from a team as a code owner April 27, 2026 04:07
@swahtz swahtz added CI Issues related to the Github actions CI/CD. For build issues use CMake/Build cmake/build Issues related to building and CMake labels Apr 27, 2026
@swahtz swahtz added this to the v0.5 milestone Apr 27, 2026
@swahtz

swahtz commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

@phapalova I was thinking of making the change to make our nightly build versions make more sense. This would make depending on dev/yet-to-be-released version numbers easier for downstream users… you wouldn't have the confusion of needing '0.0.0'(nightly number) OR '0.5.0' (unreleased dev version). Is that an improvement for your needs?

@swahtz swahtz requested a review from phapalova April 27, 2026 04:09
@phapalova

Copy link
Copy Markdown
Contributor

@phapalova I was thinking of making the change to make our nightly build versions make more sense. This would make depending on dev/yet-to-be-released version numbers easier for downstream users… you wouldn't have the confusion of needing '0.0.0'(nightly number) OR '0.5.0' (unreleased dev version). Is that an improvement for your needs?

Thanks that will simplify the way we pull the nightly

@swahtz swahtz merged commit 026d5e0 into openvdb:main Apr 27, 2026
39 checks passed
@swahtz swahtz deleted the js/nightly-build-version branch April 27, 2026 07:46
swahtz added a commit that referenced this pull request Apr 28, 2026
…ntation (#646)

Update our installation docs to reflect the changes in the nightly build
version numbering made in #645.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Issues related to the Github actions CI/CD. For build issues use CMake/Build cmake/build Issues related to building and CMake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants