uv sync --all-packages #384
-
|
Hi David, Thanks for the different talks and templates, I've been "playing" with it for a while now for personal use and introduced to my company recently (only in talks). I started with the uv template, and am using the What do you think of this pattern? Greg |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
I think that will work! One reason to have the dependencies in the root project file is when you develop things without the need to define a project. You can start coding on your features and think about how it should be deployed later on. When you are ready, then you can create a new project in the Polylith workspace. But that's optional, and I think your solution will work well. Another possibility is to have the specific dependency versions only defined in the root project file, and have the project specific ones without a version. That's also optional, and can be convenient to avoid having each project define its version: dependencies = [
"sqlalchemy"
] |
Beta Was this translation helpful? Give feedback.
I think that will work! One reason to have the dependencies in the root project file is when you develop things without the need to define a project. You can start coding on your features and think about how it should be deployed later on. When you are ready, then you can create a new project in the Polylith workspace. But that's optional, and I think your solution will work well.
Another possibility is to have the specific dependency versions only defined in the root project file, and have the project specific ones without a version. That's also optional, and can be convenient to avoid having each project define its version: