Packaging Python Libraries
Automates Python library packaging into distributable formats like wheels and source distributions.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add packaging-python-libraries npx -- -y @trustedskills/packaging-python-libraries
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"packaging-python-libraries": {
"command": "npx",
"args": [
"-y",
"@trustedskills/packaging-python-libraries"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to package Python libraries into distributable formats. It handles the creation of setup.py files, builds source distributions (sdist), and creates wheels for easy installation using pip. The agent can also manage versioning and dependencies during the packaging process.
When to use it
- You need to distribute a custom Python library or module you've developed.
- You want to create installable packages from existing Python codebases.
- You are automating the build process for a Python project with multiple dependencies.
- You require creating wheel files (.whl) for faster and more reliable installations.
Key capabilities
- Generates
setup.pyconfiguration files. - Builds source distributions (sdist).
- Creates wheels (.whl).
- Manages project versioning.
- Handles dependencies specified in requirements files.
Example prompts
- "Package this Python library into a wheel file."
- "Create a
setup.pyfor my project with the name 'my_library' and version 1.0.0." - “Build an sdist package from the current directory.”
Tips & gotchas
- Ensure you have Python and setuptools installed before using this skill.
- The agent requires a valid
setup.pyfile or sufficient information to generate one.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.