python-packaging

Create Python packages with pyproject.toml and publish to PyPI.

10|2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/bugrabilge/bilge-development-kit --skill python-packaging-bugrabilge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-packaging
Source: https://github.com/bugrabilge/bilge-development-kit/tree/main/skills/python-packaging
Command: npx skills add https://github.com/bugrabilge/bilge-development-kit --skill python-packaging-bugrabilge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating distributable Python packages, ensuring proper project structure, configuration, and seamless publishing to package indexes like PyPI.

Core Features & Use Cases

  • Project Structuring: Guides you in setting up standard Python package layouts (e.g., src/ layout).
  • Configuration: Helps configure pyproject.toml for modern packaging standards (PEP 517, 621).
  • Building Distributions: Creates source distributions (.tar.gz) and wheels (.whl).
  • Publishing: Facilitates uploading packages to PyPI or TestPyPI.
  • Use Case: You've developed a reusable Python library and need to package it correctly for distribution to other developers or for use in your organization's private repository.

Quick Start

Use the python-packaging skill to create a standard Python package structure with a pyproject.toml file for a new library named 'my_awesome_lib'.

Frequently Asked Questions about python-packaging

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

FAQPage Schema
How do I configure pyproject.toml for Python packaging?

To configure pyproject.toml for Python packaging, you define project metadata and build system requirements using modern standards like PEP 517 and PEP 621. This ensures standardized, reproducible software distribution across your project.

What's the best way to structure a Python package for PyPI distribution?

The best way to structure a Python package for PyPI distribution is to use a standard layout like the src directory structure. This ensures clean separation between your package code and tests, preventing import errors during the build process.

How do I build source distributions and wheels for a Python library?

You build source distributions and wheels for a Python library by configuring a build backend such as setuptools in your pyproject.toml. This process generates .tar.gz and .whl files for standardized Python software distribution.

Can I use setuptools with modern pyproject.toml packaging standards?

Yes, you can use setuptools with modern pyproject.toml packaging standards. Setuptools functions as a configurable build backend, allowing you to create wheels and source distributions while adhering to PEP 517 and PEP 621 specifications.

How do I publish a Python package to TestPyPI or PyPI?

To publish a Python package to TestPyPI or PyPI, you first build your source distributions and wheels using your configured build backend, then upload the generated artifacts to the package index for public or private distribution.