Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Wandb Weave Build Distribution

From Leeroopedia
Knowledge Sources
Domains Release_Engineering, Packaging
Last Updated 2026-02-14 00:00 GMT

Overview

External tool documentation for building Python distribution packages in the Wandb Weave release process.

Description

The publish_pypi_release.py script's build phase cleans the dist/ directory and runs uv build to produce sdist and wheel files. The build backend is hatchling (configured in pyproject.toml), which reads the version from weave/version.py and includes only the weave/ package.

Usage

Run as part of the publish script, or manually with uv build.

Code Reference

Source Location

  • Repository: wandb/weave
  • File: scripts/publish_pypi_release.py
  • Lines: L64-81 (build phase)
  • File: pyproject.toml
  • Lines: L186-200 (build system config)

CLI Usage

uv build
# Or via the publish script:
uv run scripts/publish_pypi_release.py --dry-run  # Build only, no upload

I/O Contract

Inputs

Name Type Required Description
source_code directory Yes weave/ package with updated version.py
pyproject.toml file Yes Build system configuration

Outputs

Name Type Description
dist/*.tar.gz file Source distribution (sdist)
dist/*.whl file Wheel distribution

Usage Examples

Build Only

uv build
# Produces dist/weave-0.52.29.tar.gz and dist/weave-0.52.29-py3-none-any.whl

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment