You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen the Polylith concept before but have not used it
Seeing you had this Poetry plugin and I had a new monorepo to structure I decided to give it a go
I am a bit confused about how to handle dependencies
I can see there is a root pyproject.toml and then individual ones for each project
Should I poetry add all deps at the root level and then use poetry poly sync to let the plugin apply only relevant deps to the project pyproject.toml files? i.e. I shouldn't manage the project files manually myself at all?
Activity
anentropic commentedon Sep 25, 2023
I guess I do manage the project
pyproject.tomls manually, as in I should manually add bases and components to them (?)so I tried e.g.
poetry add djangoat the root leveldjangoin one of my bases'core.pypackagesdirectivepoetry poly syncbut this didn't update the project dependencies
does this mean I have to keep these in sync manually and
poetry addeverything twice? am I missing something?it'd be nice if I can add packages to a project from the root without
cdinto its subdir firstanentropic commentedon Sep 25, 2023
another question...
I can see that
poly create basegenerates a structure like:and
__init__.pylooks like:This is quite a nice default, but my question is: is this structure something that the plugin relies on for being able to parse the code structure?
Can I deviate from this if I wanted to and omit the
__all__from__init__.py?DavidVujic commentedon Sep 25, 2023
(converting this into a GitHub discussion)