-
Notifications
You must be signed in to change notification settings - Fork 22
[MISC] Switch to uv #613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[MISC] Switch to uv #613
Conversation
05f6c3a to
cf927f1
Compare
carlcsaposs-canonical
left a comment
There was a problem hiding this comment.
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)
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. |
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