uv-pypi-publish

Publish Python packages to PyPI using uv with token management.

165|16|Updated Jan 30, 2023
One-click install
npx skills add https://github.com/ML4ITS/TimeVQVAE --skill uv-pypi-publish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv-pypi-publish
Source: https://github.com/ML4ITS/TimeVQVAE/tree/main/.agents/skills/uv-pypi-publish
Command: npx skills add https://github.com/ML4ITS/TimeVQVAE --skill uv-pypi-publish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of publishing Python packages to PyPI using uv, simplifying the release workflow by handling secrets and token management.

Core Features & Use Cases

  • Automated Publishing: Simplifies the package release process by automating steps like building, cleaning, and publishing packages.
  • Secrets Management: Loads credentials from a local .secrets file to securely handle API tokens.
  • Environment Variables: Allows the use of UV_PUBLISH_TOKEN from environment variables for additional flexibility.
  • Use Case: When asked to release a package after building, simply execute this Skill to handle the release with minimal manual intervention.

Quick Start

Use the uv-pypi-publish skill to publish the package with the latest changes.

Frequently Asked Questions about uv-pypi-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Python package publishing to PyPI?

Automating Python package publishing to PyPI is achieved by using uv to handle the build, clean, and release steps. This process requires minimal manual intervention by loading credentials from a local .secrets file to securely authenticate the upload.

What is the best way to manage PyPI tokens during a package release?

Managing PyPI tokens during a package release is handled securely by loading credentials from a local .secrets file. Alternatively, you can use the UV_PUBLISH_TOKEN environment variable for additional flexibility when authenticating the publishing workflow.

Do I need a .secrets file to publish a package with uv?

You do not strictly need a .secrets file to publish a package with uv. While loading credentials from a .secrets file is the default method, you can also pass the UV_PUBLISH_TOKEN via environment variables for secure authentication.

Can I use uv to build and clean packages before releasing them?

Yes, you can use uv to build and clean packages before releasing them. The automated publishing workflow simplifies the entire package release process by managing these preparatory steps prior to securely uploading the final distribution to PyPI.

Why should I use uv for publishing Python packages instead of manual uploads?

Using uv for publishing Python packages streamlines the release workflow with built-in safety checks and automated token management. It reduces manual intervention by handling the building, cleaning, and publishing steps sequentially using secure credentials.