python-packaging

Create distributable Python packages with pyproject.toml and PEP 621.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/nonputtipong/Oryn --skill python-packaging-nonputtipong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-packaging
Source: https://github.com/nonputtipong/Oryn/tree/main/.agent/skills/python-packaging
Command: npx skills add https://github.com/nonputtipong/Oryn --skill python-packaging-nonputtipong

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, making it easier to share your code with others.

Core Features & Use Cases

  • Project Structure: Guides you on setting up standard Python project layouts (src layout, flat layout).
  • Configuration: Demonstrates how to configure pyproject.toml for metadata, build system requirements, and dependencies.
  • Building & Publishing: Provides patterns for building distribution files (wheels, sdists) and publishing to PyPI.
  • Use Case: You've written a useful Python library and want to make it available to the community via PyPI. This Skill will guide you through creating the necessary configuration files and build steps.

Quick Start

Use the python-packaging skill to create a minimal pyproject.toml file for a new Python package named 'my-package'.

Frequently Asked Questions about python-packaging

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

FAQPage Schema
How do I configure a Python package using pyproject.toml?

Configuring a Python package with pyproject.toml involves defining project metadata, build system requirements, and dependencies following the PEP 621 standard. This Skill provides guidance on structuring these settings to modernize your package configuration.

What is the best way to build and publish Python packages to PyPI?

Building and publishing Python packages to PyPI requires creating distribution files like wheels and sdists, then uploading them. This Skill provides patterns for configuring build backends like setuptools and executing the publishing workflow.

Does this packaging workflow support both setuptools and hatchling build backends?

Yes, this packaging workflow supports configuring modern build backends like setuptools and hatchling. It guides you through specifying your chosen backend in the pyproject.toml build system requirements to compile your distribution formats.

How do I set up a standard Python project layout for distribution?

Setting up a standard Python project layout for distribution requires choosing between a src layout or a flat layout. This Skill guides you in structuring your project directories to ensure clean, distributable package builds.

Can I use this guidance for packaging C extensions and namespace packages?

Yes, you can use this guidance for packaging C extensions and namespace packages. The Skill addresses these advanced topics, providing the necessary configuration patterns within your pyproject.toml and build system setup.

How do I integrate automated CI/CD workflows for Python package releases?

Integrating automated CI/CD workflows for Python package releases involves configuring your build and publishing steps within a pipeline. This Skill covers automated CI/CD integration to streamline your distribution process to PyPI.