python-packaging
Create distributable Python packages with proper project structure, setup.py/pyproject.toml, and publishing to PyPI. Use when packaging Python libraries, creating CLI tools, or distributing Python code.
Security Assessment
Detected risks:
About python-packaging
The python-packaging skill provides a comprehensive framework for creating and distributing Python packages in a structured manner. It addresses the common challenges faced by developers when packaging their Python libraries, command-line tools, or other code for distribution. With a clear focus on industry standards and practices, this skill facilitates the creation of packages that comply with modern packaging requirements, ensuring ease of use and compatibility across various environments.
FAQ
What is the recommended package structure?
The recommended package structure is the source layout, which organizes the code under a 'src' directory to prevent accidental imports from the source.
Is this skill compatible with Python 3.8 and above?
Yes, the skill is designed to work with Python versions 3.8 and above, as specified in the pyproject.toml.
What are the advantages of using pyproject.toml?
pyproject.toml serves as a single source of configuration, making it easier to manage build systems and project metadata, complying with modern standards like PEP 517/518.
Can I publish my packages to private repositories?
Yes, the skill supports publishing to both PyPI and private repositories such as JFrog or AWS CodeArtifact.
What dependencies are required for building packages?
The minimal requirements include setuptools version 61.0 or higher, as specified in the pyproject.toml.
Install python-packaging
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
wshobson/agents