Index of every page on this site: llms.txt
All skills
nvidia-nemo avatar

/publish-python-release

@c2f87c2
by nvidia-nemonvidia-nemo/switchyard3.7k stars
378
Run it yourself

Build or publish nemo-switchyard Python distributions through the repository's GitHub Actions workflow. Use when asked to build a development wheel, cut a Python release, publish to PyPI, create a release tag, or debug .github/workflows/publish.yml.

  • 1 file
  • 2.5 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/nvidia-nemo/switchyard/publish-python-release

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈68 tokens for metadata: the name and description. ≈557 when used: this file.

Description uses 3.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈274 characters, or 3.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Publish The Python Package

Use .github/workflows/publish.yml as the source of truth. The supporting runbook is docs/internal/release_workflow.md.

Release Paths

Intent Trigger Result
One temporary wheel Manual dispatch with build_dev_artifact=true Linux x86_64 GitHub artifact, retained for one day
Full matrix test Manual dispatch with build_dev_matrix=true sdist and wheel artifacts; no publish
Official release Push vMAJOR.MINOR.PATCH matching pyproject.toml Full matrix, PyPI publish, GitHub Release

Manual builds are artifact-only. Official releases use PyPI Trusted Publishing through the GitHub environment named pypi; do not add a long-lived PyPI token.

Workflow

  1. Read the current workflow and pyproject.toml; do not rely on remembered inputs or versions.
  2. Confirm the requested version and whether the user explicitly authorized creating a tag.
  3. For workflow changes, run the focused release-helper tests and inspect the workflow diff.
  4. Dispatch a development build or push the authorized release tag.
  5. Monitor every matrix job and verify the resulting package from a clean temporary environment.

Example development dispatch:

gh workflow run publish.yml \
  -f build_dev_artifact=true \
  -f build_dev_matrix=false \
  -f dev_version=0.0.1.dev0

Guardrails

  • Never create or push a tag unless the user explicitly requested it.
  • Never publish a manual development build to PyPI.
  • Never reuse a deleted PyPI filename or version; PyPI permanently reserves filenames.
  • Keep release versions consistent across the tag, pyproject.toml, and package metadata.
  • Verify installation outside the checkout so local imports cannot mask packaging defects.
  • Cargo crate publishing is a separate manual workflow. Inspect each crate's Cargo.toml, dependency publication order, and crates.io ownership before running cargo publish.

Release-Infrastructure Validation

uv run ruff check scripts/release/set_dev_wheel_version.py tests/test_dev_wheel_versioning.py
uv run pytest tests/test_dev_wheel_versioning.py -v
python scripts/release/set_dev_wheel_version.py 0.0.1.dev0 --print-version
git diff --check

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at c2f87c2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago

README badge

README badge for nvidia-nemo/switchyard/publish-python-release