python-packaging

Create and distribute Python packages with pyproject.toml configuration.

2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/as4584/antigravity-skills --skill python-packaging-as4584
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-packaging
Source: https://github.com/as4584/antigravity-skills/tree/main/agents-wshobson/plugins/python-development/skills/python-packaging
Command: npx skills add https://github.com/as4584/antigravity-skills --skill python-packaging-as4584

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, structuring, and distributing Python packages, enabling developers to share their code effectively on platforms like PyPI.

Core Features & Use Cases

  • Project Structuring: Guides on recommended layouts (src vs. flat).
  • Configuration: Demonstrates pyproject.toml for build systems, metadata, and tool configurations (Black, Ruff, MyPy, Pytest).
  • Building & Publishing: Covers local builds, publishing to PyPI/TestPyPI, and CI/CD integration.
  • Advanced Features: Includes namespace packages, C extensions, and data file inclusion.
  • Use Case: A developer needs to package a new Python library for public distribution, ensuring it follows modern standards and can be easily installed by others.

Quick Start

Use the python-packaging skill to create a minimal Python package structure with a pyproject.toml file.

Frequently Asked Questions about python-packaging

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

FAQPage Schema
How do I build and publish a Python package using pyproject.toml?

Building and publishing a Python package requires configuring pyproject.toml to define build backends and metadata, generating the distribution locally, and uploading the artifacts to PyPI or TestPyPI for public installation.

What is the recommended project structure for a Python package?

The recommended Python package structure typically follows the src layout over the flat layout to prevent import errors during testing and ensure clean separation of source code from project configuration and tests.

Can I configure tools like Black, Ruff, and Pytest within my Python package configuration?

Configuring tools like Black, Ruff, MyPy, and Pytest is achieved directly within the pyproject.toml file, centralizing project metadata and tool configurations into a single modern standard for reproducible builds.

Does Python packaging support advanced features like namespace packages and C extensions?

Python packaging supports advanced features including namespace packages for distributing multiple packages under one namespace, C extensions for performance, and data file inclusion for non-code assets.

What's the best way to automate Python package distribution to PyPI?

Automating Python package distribution to PyPI is best handled through CI/CD integration, which builds the package locally or in pipeline environments and publishes artifacts automatically upon release.