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.

Principle:Wandb Weave PyPI Publishing

From Leeroopedia
Revision as of 17:38, 16 February 2026 by Admin (talk | contribs) (Auto-imported from principles/Wandb_Weave_PyPI_Publishing.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains Release_Engineering, Distribution
Last Updated 2026-02-14 00:00 GMT

Overview

A package distribution mechanism that uploads built artifacts to the Python Package Index (PyPI) for public consumption.

Description

PyPI Publishing uploads the built distribution files (sdist and wheel) to PyPI using twine. It supports both production PyPI and Test PyPI for validation, with API key authentication via environment variables.

Usage

Use this as the final step in the release process, after building distribution files. Use --test to validate on Test PyPI before publishing to production.

Theoretical Basis

Package publishing follows the staged release pattern:

  1. Build: Create distribution artifacts.
  2. Test Upload (optional): Upload to Test PyPI for validation.
  3. Production Upload: Upload to production PyPI for public access.
  4. Authentication: Use API tokens (__token__ username) for secure upload.

Related Pages

Implemented By

Page Connections

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