[MISC] Switch to uv - #613
Conversation
05f6c3a to
cf927f1
Compare
carlcsaposs-canonical
left a comment
There was a problem hiding this comment.
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)
There's a experimental feature in renovate osvvulnerabilityalerts that seems to work with uv. But IMHO, without a pressing need to switch (focal support), it might be best to discuss further at the sprint. |
good to know the docs for that feature mention
which might be an issue—I'm not sure what renovate considers a direct dependency in this context. Would guess it would not include lockfile deps, but not sure |
Will take a look. Thanks Drago!
I somewhat agree. I recognize the value of simplifying the As you said: let's discuss during the Sprint. Paulo told me John wants to foster the usage of |
|
Depends on canonical/data-platform#38. |
|
Investigated this a bit today, so I might as well share my findings. I was annoyed by
|
This PR changes the tool used for dependency management from
poetrytouv, following this PG-Bouncer example. Some of the main changes are:pyproject.tomlsyntax to standard Python project one.^) to standard compatible release specifier (~=).maintocharmandcharm-libsto justlibs(revertible upon request).Differences from PG-Bouncer PR:
uvbinary is installed via pip, instead of via snap (both @paulomach and myself prefer that way).tox_uv.tomlfile 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