PU

publish-pypi

Automates the building and publishing of the Weave Python SDK to PyPI.

Install

mkdir -p .claude/skills/publish-pypi && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5510" && unzip -o skill.zip -d .claude/skills/publish-pypi && rm skill.zip

Installs to .claude/skills/publish-pypi

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Build and publish the Weave Python SDK to PyPI. Use when releasing a new version.
81 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Build Python packages for PyPI
  • Perform dry-run verification
  • Publish to Test PyPI
  • Publish to production PyPI

How it works

The skill executes a Python script to build and upload the package, supporting both production and test environments via environment variables or configuration files.

Inputs & outputs

You give it
Python package source code
You get back
Published package on PyPI or Test PyPI

When to use publish-pypi

  • Publish a new package version
  • Verify package builds
  • Deploy to Test PyPI

About this skill

Publish to PyPI

This replicates the GitHub Actions publish-pypi-release workflow.

Arguments

  • $ARGUMENTS can be test to publish to Test PyPI, or empty for production PyPI

Instructions

First, run a dry-run to build and verify the package:

uv run ./scripts/publish_pypi_release.py --dry-run

If the user wants to publish to Test PyPI (or $ARGUMENTS contains "test"):

uv run ./scripts/publish_pypi_release.py --test

If the user wants to publish to production PyPI:

uv run ./scripts/publish_pypi_release.py

Authentication

Before publishing, ensure the user has set up authentication. Options:

  • TWINE_API_KEY environment variable (recommended for production)
  • TWINE_TEST_API_KEY environment variable (for Test PyPI)
  • .pypirc file in home directory

If authentication fails, help the user set up their credentials.

After Publishing

Remind the user to verify the package:

When not to use it

  • When authentication credentials are not configured
  • When the package build fails dry-run verification

Prerequisites

TWINE_API_KEYTWINE_TEST_API_KEY.pypirc file

Limitations

  • Requires pre-configured authentication
  • Depends on local script execution

How it compares

Unlike manual twine uploads, this skill provides a structured, automated workflow that includes dry-run verification and environment-specific authentication.

Compared to similar skills

publish-pypi side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
publish-pypi (this skill)16moReviewIntermediate
release-bump05moNo flagsIntermediate
build-release01moReviewIntermediate
release05moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry