pypi-publish

Automate publishing Python packages to PyPI with metadata audits and tests.

2|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/queelius/claude-anvil --skill pypi-publish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pypi-publish
Source: https://github.com/queelius/claude-anvil/tree/main/pub-pipeline/skills/pypi-publish
Command: npx skills add https://github.com/queelius/claude-anvil --skill pypi-publish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires build, twine, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex and error-prone process of publishing Python packages to the Python Package Index (PyPI), ensuring your packages are correctly built, validated, and released.

Core Features & Use Cases

  • End-to-End Workflow: Guides you through auditing metadata, running tests, building distributions, testing on TestPyPI, and finally publishing to PyPI.
  • Automated Checks: Verifies package metadata, README rendering, test suite status, and version conflicts.
  • Use Case: You've just finished developing a new Python library and want to share it with the world. This Skill will walk you through every step, from ensuring your pyproject.toml is perfect to uploading the final package to PyPI.

Quick Start

Use the pypi-publish skill to publish your Python package to PyPI.

Frequently Asked Questions about pypi-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish a Python package to PyPI?

A complete Python package publishing workflow automates auditing metadata, running tests, building source distributions and wheels, validating on TestPyPI, and executing the final PyPI release.

What's the best way to validate Python package metadata before release?

The best way to validate Python package metadata before release is to run automated checks that verify your pyproject.toml, README rendering, test suite status, and version conflicts for PyPI standards compliance.

Do I need to build source distributions and wheels separately for PyPI?

Building source distributions and wheels is handled as part of the end-to-end workflow, ensuring both formats are correctly generated and validated before testing uploads on TestPyPI and publishing to PyPI.

Can I test my Python package upload before pushing to production PyPI?

You can test your Python package upload by using TestPyPI, which allows you to validate the build, check metadata compliance, and verify README rendering before performing the final production release.

Does this publishing workflow use twine and build for Python distribution?

The workflow relies on build and twine dependencies to automate the construction of Python packages and manage the secure uploading of source distributions and wheels to TestPyPI and PyPI.

What happens if there are version conflicts when publishing to PyPI?

When publishing to PyPI, automated checks are performed to detect version conflicts, ensuring your package metadata is verified against existing releases before attempting to upload the final build.