Skip to content
Discussion options

You must be logged in to vote

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"
]

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@DavidVujic
Comment options

@fraser-langton
Comment options

@DavidVujic
Comment options

@fraser-langton
Comment options

@DavidVujic
Comment options

Answer selected by gregunz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #383 on October 29, 2025 18:20.