Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.

[MISC] Switch to uv#641

Closed
sinclert-canonical wants to merge 9 commits into
mainfrom
sinclert/uv
Closed

[MISC] Switch to uv#641
sinclert-canonical wants to merge 9 commits into
mainfrom
sinclert/uv

Conversation

@sinclert-canonical

@sinclert-canonical sinclert-canonical commented May 9, 2025

Copy link
Copy Markdown
Contributor

This PR changes the tool used for dependency management from poetry to uv, following this PG-Bouncer example. Some of the main changes are:

  • Migrated from poetry-specific pyproject.toml syntax to standard Python project one.
  • Migrated from poetry-specific carrot specifier (^) to standard compatible release specifier (~=).
  • Renamed dependency groups main to charm and charm-libs to just libs (revertible upon request).

Differences from PG-Bouncer PR:

  • The uv binary is installed via pip, instead of via snap (both @paulomach and myself prefer that way).
  • The tox_uv.toml file to cherry pick when dependencies are installed from pre-built packages has been ignored. Instead, all tox environments use pre-built packages, only installing from source when the charm gets packed.

Additional changes

  • Bumped ruff target python version to 3.10 + updated Python files format.

@sinclert-canonical sinclert-canonical added the enhancement New feature, UI change, or workload upgrade label May 9, 2025
@github-actions github-actions Bot added the Libraries: Out of sync The charm libs used are out-of-sync label May 9, 2025

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause Dependabot vulnerability alerts to stop working, which Renovate uses to segment security updates from normal PRs (and to open security update PRs immediately, instead of waiting for the weekly schedule)

@sinclert-canonical

Copy link
Copy Markdown
Contributor Author

Depends on canonical/data-platform#38.

@sinclert-canonical sinclert-canonical deleted the sinclert/uv branch January 21, 2026 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature, UI change, or workload upgrade Libraries: Out of sync The charm libs used are out-of-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants