Adding more support for uv-specific features: workspaces 🎉 #271
DavidVujic
announced in
Announcements
Replies: 1 comment
-
I have also updated the existing Polylith example uv repo, by adding the projects as workspace members: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Adding support for the uv workspaces feature, and the shared lock-file in specific. This feature is for uv users and is added in the Polylith CLI. This feature is available in version 1.19.2 of the Polylith CLI.
The entire Polylith monorepo can use one single lock-file to manage all the third-party dependencies of individual projects.
Just add this to the root
pyproject.toml
:With this setup,
uv
will pick up the third-party dependencies from the individual projects - and create a single lock-file at the root. The Polylith tool will analyze the contents of that lock-file to extract the library dependencies for each individual project. This is done when runningpoly check
andpoly libs
.I think that this new feature will improve the Developer Experience when managing third-party dependencies and their respective versions.
Currently, this is an uv-only feature, but I am looking into the possibilities for other Package & Dependency management tools. Please let me know how this thing works for you and your team!
NOTE: when building and deploying the individual projects, you might still want a project-specific lock-file.
Beta Was this translation helpful? Give feedback.
All reactions