github avatar

Python Pypi Package Builder

This is a comprehensive decision tree for building production Python packages from scratch to PyPI publication. It covers the entire workflow: choosing between src and flat layouts, picking a build backend (setuptools, hatchling, flit, or poetry), handling dynamic versioning with setuptools_scm, setting up type hints and linting, and configuring Trusted Publishing via GitHub Actions. The skill includes templates for all four major build systems, patterns for different package types (CLI tools, SDKs, framework plugins), and a scaffold script that generates the full project structure. Use this when you need to publish a real package and want to avoid the usual trial and error around pyproject.toml configuration and modern PyPA tooling.

skills.sh installs
950
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill python-pypi-package-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

Python PyPI Package Builder Skill

A complete, battle-tested guide for building, testing, linting, versioning, typing, and publishing a production-grade Python library to PyPI — from first commit to community-ready release.

AI Agent Instruction: Read this entire file before writing a single line of code or creating any file. Every decision — layout, backend, versioning strategy, patterns, CI — has a decision rule here. Follow the decision trees in order. This skill applies to any Python package type (utility, SDK, CLI, plugin, data library). Do not skip sections.


Quick Navigation

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Testing & QA, DevOps & CI/CD, Git & Pull Requests, AI & Agent Building, Release Management, Python, Design & UI/UX, CLI & Terminal
First seen
May 16, 2026

More from github/awesome-copilot

All 318
1vercel-labs avatarucpvercel-labs/agentic-commerce-skillsExpert-level implementation assistant for the Universal Commerce Protocol (UCP). Provides comprehensive tooling for adding UCP support to Next.js ecommerce code936skills.sh installs
2alirezarezvani avatarsenior-secopsalirezarezvani/claude-skillsSenior SecOps engineer skill for application security, vulnerability management, compliance verification, and secure development practices. Runs SAST/DAST scans928skills.sh installs
3daymade avatarproduct-analysisdaymade/claude-code-skillsMulti-path parallel product analysis with cross-model test-time compute scaling. Spawns parallel agents (Claude Code agent teams + Codex CLI) to explore product909skills.sh installs
4jezweb avatarfork-disciplinejezweb/claude-skillsAudit and enforce the core/client boundary in multi-client projects. Detects where shared platform code is tangled with client-specific code, finds hardcoded cl905skills.sh installs
5forcedotcom avatarinvestigating-agentforce-architectureforcedotcom/sf-skillsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch903skills.sh installs
6alirezarezvani avatarapp-store-optimizationalirezarezvani/claude-skillsApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on A894skills.sh installs