python-packaging
適切なプロジェクト構造、setup.py/pyproject.toml、PyPIへの公開を使用して配布可能なPythonパッケージを作成。Pythonライブラリのパッケージング、CLIツールの作成、Pythonコードの配布時に使用。
Security Assessment
Detected risks:
About python-packaging
The 'python-packaging' skill provides a comprehensive guide for creating, structuring, and distributing Python packages using modern packaging tools such as pyproject.toml. It helps developers build Python libraries, command-line tools with entry points, and prepare Python code for distribution, either via PyPI or private repositories. The skill supports packaging with a clear and organized project structure, offering a modern approach to building Python applications, ensuring compatibility with various packaging standards like PEP 517/518, and managing dependencies efficiently.
FAQ
What is the purpose of pyproject.toml in this skill?
The pyproject.toml file serves as the central configuration for Python packaging. It is used to define build system requirements, project metadata, and dependencies, streamlining the packaging and distribution process.
Which packaging backends are supported by this skill?
This skill supports several packaging backends including setuptools (traditional), hatchling (modern), flit (lightweight), and poetry (dependency management + packaging).
Can I publish my package to PyPI using this skill?
Yes, the skill provides detailed instructions for publishing Python packages to PyPI, as well as test environments like TestPyPI for testing before official releases.
What project structures are recommended?
The skill suggests two primary structures: the source layout (preferred for better modularity) and the flat layout (simpler but with fewer benefits). It also includes guidelines for multi-package projects.
Does this skill support Python versions older than 3.8?
No, the skill recommends using Python 3.8 or newer for compatibility with modern packaging standards and features.
Install python-packaging
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
amurata/cc-tools