{"enrichment":{"faq":[{"a":"python-packaging-patterns teaches you to organize your project using either src-layout (source code in a src/ directory) or flat-layout (source at the root), with the src-layout being preferred for larger projects. The skill covers how to arrange your modules, tests, documentation, and configuration files to create a professional, distributable package that follows industry best practices and ensures your code is reproducible across environments.","q":"How do I structure a Python project for distribution?"},{"a":"python-packaging-patterns explains that pyproject.toml is the modern, unified configuration file for Python projects. It replaces scattered setup.py, setup.cfg, and requirements.txt files by centralizing project metadata, build backend selection, dependencies, and tool configurations. This approach simplifies project setup and makes your packaging configuration more maintainable and standardized.","q":"What is the role of pyproject.toml in Python packaging with pyproject.toml?"},{"a":"python-packaging-patterns guides you through configuring hatchling, setuptools, flit, poetry, and other build backends. Each backend has different strengths: setuptools offers maximum compatibility, hatchling provides modern simplicity, flit focuses on minimal configuration, and poetry includes dependency management. The skill helps you select the right backend based on your project's complexity and requirements.","q":"How do I choose between different build backends like hatchling, setuptools, and flit?"},{"a":"python-packaging-patterns covers the complete publication workflow, including building your distribution, configuring PyPI credentials, and uploading your package. The skill also addresses trusted publishing via GitHub Actions, which eliminates the need to store PyPI tokens locally, and explains how to manage package versions and updates for reliable deployment.","q":"How do I publish a Python package to PyPI?"},{"a":"python-packaging-patterns teaches dependency management strategies including specifying version constraints, handling conditional dependencies for different Python versions, and using lockfile generation tools like uv and pip-compile. The skill covers dependency pinning strategies for libraries, optional dependency groups, and how to structure your dependencies to ensure your package works reliably across different environments.","q":"What are the best practices for managing dependencies and version control in Python packages?"},{"a":"python-packaging-patterns identifies common mistakes in Python packaging that can cause distribution and deployment problems. The skill helps you recognize and avoid these anti-patterns, ensuring your package is properly structured, your dependencies are correctly specified, and your configuration follows modern standards for professional, maintainable code distribution.","q":"What Python packaging anti-patterns should I avoid?"}],"shadow_tags":["distribution-setup","dependency-management","build-backends","version-control-strategy","project-structure","publishing-workflow","lockfile-generation","editable-development","pypi-publishing"],"summary_rewrite":"This skill teaches you how to organize and configure Python projects for professional distribution. You'll explore setuptools configuration, dependency management, and packaging strategies that ensure your code is reproducible and deployable across environments."},"files":[{"bytes":5945,"path":"skills/development/python-packaging-patterns/SKILL.md","sha256":"ac6ff58887c5b720ed0e4d8d9936c2ea56579d181a7878e46a1176835fa38b4a","url":"https://skillfed.io/files/organvm/a-i--skills/python-packaging-patterns/dcc404e5/SKILL.md"}],"id":"organvm/a-i--skills/python-packaging-patterns","links":{"html":"https://skillfed.io/organvm/a-i--skills/python-packaging-patterns","md":"https://skillfed.io/organvm/a-i--skills/python-packaging-patterns.md","repo":"https://github.com/organvm/a-i--skills"},"meta":{"agents_supported":["claude-code","codex","gemini"],"first_seen":"2026-07-28","forks":6,"language":"Python","last_updated":"2026-07-22","license":"Apache-2.0","name":"python-packaging-patterns","publisher":"organvm","stars":14},"relations":{"similar":[{"id":"CuriousLearner/devkit/python-venv-manager"},{"id":"JosiahSiegel/claude-plugin-marketplace/python-package-management"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/python-packaging"},{"id":"wshobson/agents/python-packaging"},{"id":"pluginagentmarketplace/custom-plugin-python/poetry-packaging"},{"id":"hyperb1iss/hyperskills/uv-build"},{"id":"athola/claude-night-market/python-packaging"},{"id":"Galaxy-Dawn/claude-scholar/uv-package-manager"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/uv-package-manager"},{"id":"julianobarbosa/claude-code-skills/uv"}]},"slug":{"owner":"organvm","repo":"a-i--skills","skill":"python-packaging-patterns"},"version":"dcc404e5"}
