update-project-version
Aktualisiere die NeMo-Fabric-Release-Version über Cargo, setuptools-Paketmetadaten, interne Python-Abhängigkeits-Pins, Integrationsmetadaten und Lockfiles. Verwende…
npx skills add https://github.com/nvidia/nemo-fabric --skill update-project-versionUpdate Project Version
Companion Guidance
Use karpathy-guidelines alongside this skill for implementation or review
work. Keep changes scoped, surface assumptions, and define focused validation
before editing.
Use this skill when changing the NeMo Fabric version, including pre-release or build-metadata variants used during packaging.
Source Of Truth
Cargo.toml[workspace.package].versionis the source of truth for the Rust workspace and the release version stamped into Python and TypeScript package metadata.- Keep
Cargo.toml[workspace.dependencies]self-references aligned when the workspace version changes. sdk/python/nemo-fabric-runtime/pyproject.tomlis the exception among the Python projects: do not add a literalproject.version. Keepproject.dynamic = ["version"]because Maturin derivesnemo-fabric-runtime's version fromcrates/fabric-python/Cargo.toml, which inherits the workspace version.- The setuptools projects do not derive their versions from Cargo. Update the
literal
project.versionin every one of these files:sdk/python/nemo-fabric/pyproject.tomladapter-contract/python/pyproject.tomladapters/**/pyproject.toml
- Keep internal Python package requirement pins aligned with the Python release
version:
- The unconditional
nemo-fabric-runtime == <version>dependency in the publishedsdk/python/nemo-fabric/pyproject.toml. - All
nemo-fabric-* == <version>requirements in its optional dependencies. - Each adapter's
nemo-fabric-adapters-common == <version>dependency.
- The unconditional
- Keep
adapter-contract/typescript/package.jsonand the root package entries in itspackage-lock.jsonaligned with the Cargo SemVer release version.
For a normal release, use the same X.Y.Z string everywhere. For a prerelease
or build-metadata version, use valid Cargo SemVer in Cargo.toml and the
equivalent PEP 440 version in explicit Python metadata. Confirm that the
Maturin-built runtime and setuptools-built packages resolve to equivalent
versions rather than blindly copying incompatible syntax.
Workflow
- Read the current version from
Cargo.tomland decide the exact Cargo, Python, and TypeScript target version strings. - Run
just set-version <cargo-version>. The recipe preserves the normalized SemVer for Cargo and TypeScript, converts it to PEP 440 for Python, and updates:Cargo.toml[workspace.package].versionCargo.tomlworkspace.dependencies.nemo-fabric-core.version- The setuptools
project.versionin the published SDK metapackage, Python adapter contract, and every adapterpyproject.toml - Every internal
nemo-fabric-*exact-version requirement - The TypeScript adapter-contract
package.jsonandpackage-lock.json Cargo.lockthrough Cargo metadata resolution- The root, runtime, and adapter
uv.lockfiles throughjust lock-python
- Confirm that
sdk/python/nemo-fabric-runtime/pyproject.tomlremains dynamic and unchanged. - Audit references to the old version with targeted searches. Distinguish package-version surfaces from examples and unrelated dependency versions.
If editing the helper code, keep these contracts aligned:
set_project_versionmust call the Cargo, Python, and TypeScript project version helpers.set_cargo_workspace_versionmust update the workspace version and thenemo-fabric-coreworkspace dependency, then verify everynemo-fabric-*workspace package through Cargo metadata.set_python_project_versionsmust update the published SDK metapackage, Python adapter contract, every adapterpyproject.tomldiscovered recursively underadapters/, and all internal exact-version pins while rejecting a static version insdk/python/nemo-fabric-runtime/pyproject.toml.set_typescript_project_versionmust update the package manifest and both root version entries in the npm lockfile without changing dependency versions.- The
set-versionrecipe must runjust lock-pythonafter source metadata is updated.
Validation
- Inspect Cargo version fields:
rg -n '^version =|nemo-fabric-core = \{ path = .*version =' Cargo.toml - Inspect explicit Python versions and internal pins:
rg -n '^version =|nemo-fabric-[a-z-]+(?:\[[^]]+\])? == ' pyproject.toml sdk adapter-contract/python adapters --glob 'pyproject.toml' - Confirm the runtime remains dynamic:
rg -n 'dynamic = \["version"\]' sdk/python/nemo-fabric-runtime/pyproject.toml - Inspect the TypeScript package and lockfile root versions:
rg -n '"version":' adapter-contract/typescript/package{,-lock}.json - Run
cargo check --workspace --locked. - Run
just build-pythonto verify all Python package metadata resolves. - Run
just test-pythonwhen the integration version or Python packaging behavior changes materially. - Run
just wheelsfor release-facing validation of every Python wheel. - Run
just pack-typescriptto verify the stamped TypeScript package metadata. - Run
git diff --check.
Avoid
- Updating only
Cargo.tomland leaving the setuptools packages stale. - Adding a literal version to
sdk/python/nemo-fabric-runtime/pyproject.toml; Maturin owns that version. - Updating Python package versions without their exact internal dependency pins.
- Forgetting
Cargo.lock, the rootuv.lock, or per-projectuv.lockfiles. - Updating the TypeScript package manifest without its npm lockfile root entry.
- Blind repository-wide replacement of version-like strings.
References
Cargo.tomlCargo.lockpyproject.tomluv.locksdk/python/nemo-fabric/pyproject.tomlsdk/python/nemo-fabric/uv.locksdk/python/nemo-fabric-runtime/pyproject.tomlsdk/python/nemo-fabric-runtime/uv.lockadapter-contract/python/pyproject.tomladapter-contract/python/uv.lockadapters/**/pyproject.tomladapters/**/uv.lockadapter-contract/typescript/package.jsonadapter-contract/typescript/package-lock.jsonjustfile