Skip to main content

uv-release-manager

Release uv projects that pin git dependencies during development.

While several libraries evolve together, it is convenient to pin a dependency to a git commit in [tool.uv.sources]:

[project]
dependencies = ["mylib>=0.3"]

[tool.uv.sources]
mylib = { git = "https://github.com/org/mylib", rev = "c4580cb" }

Sources are only used for the local lock: the published package requires mylib>=0.3. If the code needs the pinned commit, the release is broken as soon as mylib 0.3 (or any version without that commit) is installed. uv-release-manager checks, before releasing, that every git source points to a released (tagged) version and that the dependency requires at least that version.

Commands

# Can we release? (fails fast, exit code 1 otherwise)
uv-release-manager check
uv-release-manager check --test pytest   # also test with the released deps
uv-release-manager check --test pytest --uv-args "--all-extras --group test"

# Move git sources to releases: for each source, choose between the next
# release containing the pinned commit and the latest one containing it
uv-release-manager update
uv-release-manager update --to next      # without asking
uv-release-manager update --drop-source  # remove the source (use PyPI)

# Set the lower bounds to the released versions of the git sources
uv-release-manager bump

# Check, then create the GitHub release (the publish workflow does the rest);
# without a version, the next one is computed from the conventional commits
uv-release-manager gh-release            # e.g. v0.5.0 after a feat: commit
uv-release-manager gh-release 1.0.0 --dry-run

check

check (also run by gh-release) verifies that:

  • each git source points to a commit tagged with a version (v1.2.3 or 1.2.3) that is published on PyPI; the commit is the one locked in uv.lock (what was developed against), or the one the source points to on the remote when the package is not locked
  • the lower bound of the dependency (main dependencies and extras) is this version: a lower bound below allows older, incompatible releases, and one above requires a version that was not tested
  • there is no path source
  • there are no uncommitted changes, uv.lock is up to date, and HEAD is pushed to the upstream branch
  • optionally (--test COMMAND), COMMAND passes in an isolated environment resolved without the sources (uv run --isolated --no-sources)

Sources of development-only dependencies ([dependency-groups]) and index sources are ignored, since they are not part of the published metadata.

update

For each git source (or the ones given on the command line) that is not a release, update proposes the next release (the first release whose tag contains the pinned commit) and the latest release containing it. Older releases are never proposed, since they would drop what the commit brings; only non pre-release versions published on PyPI are. The source is then pointed to the release tag (or removed with --drop-source), the lower bounds are set to the release version, and uv.lock is updated. With --all, sources already at a release are moved to the latest release containing them.

The tags containing a commit are found in tree-less clones of the dependencies, cached in ~/.cache/uv-release-manager.

gh-release

gh-release uses git-cliff to compute the next version (--bumped-version; v0.1.0 for the first release) and the release notes, then runs gh release create <tag> --target <HEAD>. The publish workflow (triggered by the release) builds and uploads the package.

Release

This project is released with itself:

uv run uv-release-manager gh-release --dry-run   # version and release notes
uv run uv-release-manager gh-release

The GitHub release triggers .github/workflows/python-publish.yml, which runs uv-release-manager check again and publishes to PyPI (trusted publishing).

Metadata

Release files for uv-release-manager 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uv-release-manager 1.0.0
File Size Uploaded Provenance Actions
uv_release_manager-1.0.0.tar.gz 30.1 kB With provenance Details for uv_release_manager-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uv-release-manager 1.0.0
File Interpreter ABI Platform Actions
uv_release_manager-1.0.0-py3-none-any.whl Python 3 none any Details for uv_release_manager-1.0.0-py3-none-any.whl

Total release size: 45.6 kB

Release files / uv_release_manager-1.0.0.tar.gz

Download URL uv_release_manager-1.0.0.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ad01dfb1c69342b91a5c28f075b6d5a27021cb86524819d8c779e9fc54f122c2
BLAKE2b-256 checksum
How to use checksums
f647ffbfaedf46e380fe2d80dd3d4d522cab5ca961adb47c2af49ff8746755b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / uv_release_manager-1.0.0-py3-none-any.whl

Download URL uv_release_manager-1.0.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fa08f65d8818a589507bcdd5baadd5e8155a071e779ff69c5cb9e2ae3907cd8
BLAKE2b-256 checksum
How to use checksums
c30c91cf8ff92854110f6ad66bea6f34f12399ee3d566604a7db6c56825210d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for uv-release-manager 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for uv_release_manager-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page