Back to Skills

python-packaging-uv

verified

Use when building or publishing Python packages with uv, including dist artifacts and pre-publish checks.

View on GitHub

Marketplace

narumi

narumiruna/claude-marketplace

Plugin

gourmet-research

Repository

narumiruna/claude-marketplace
2stars

skills/python-packaging-uv/SKILL.md

Last Verified

January 23, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/narumiruna/claude-marketplace/blob/main/skills/python-packaging-uv/SKILL.md -a claude-code --skill python-packaging-uv

Installation paths:

Claude
.claude/skills/python-packaging-uv/
Powered by add-skill CLI

Instructions

# Python Packaging with uv

## Overview

Use uv build and publish commands to produce wheels/sdists and ship to PyPI. Core principle: build, verify, then publish.

## Quick Reference

| Task | Command |
| --- | --- |
| Build wheel+sdist | `uv build` |
| Build wheel only | `uv build --no-sources` |
| Publish to PyPI | `uv publish --token $PYPI_TOKEN` |
| Publish to Test PyPI | `uv publish --publish-url https://test.pypi.org/legacy/ --token $TEST_PYPI_TOKEN` |

## Workflow

1. Build artifacts in `dist/`.
2. Test install from wheel.
3. Publish to Test PyPI, validate, then publish to PyPI.

## Example

```bash
uv build --no-sources
uv pip install dist/my_package-1.0.0-py3-none-any.whl
uv publish --publish-url https://test.pypi.org/legacy/ --token $TEST_PYPI_TOKEN
```

## Common Mistakes

- Publishing before verifying wheel contents.
- Skipping Test PyPI for first release.

## Red Flags

- Packaging guidance that ignores uv build/publish.

## References

- `references/packaging.md` - Build and publish details

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1005 chars