In-brick pyproject.toml support #139
Replies: 4 comments 2 replies
-
Hi @licht1stein, I have thought about this, and will look into how to make it as simple as possible in Python - without introducing too much third-party dependency hassle in each brick. Today, a brick (component or base) is not a self-contained library, but a namespace package just as if you would have a single-project repo. I think that is easier for bricks that are very small, or maybe using the same third-party dependency (then each one could/would specify it). But I have this on my radar 😄 |
Beta Was this translation helpful? Give feedback.
-
I had the same question. It seems like there needs to be a way to describe dependencies that components or subprojects have. In the above example where would the |
Beta Was this translation helpful? Give feedback.
-
Hi @jacksonwb, I have added a new section in the docs about dependencies in Polylith: https://davidvujic.github.io/python-polylith-docs/dependencies/ |
Beta Was this translation helpful? Give feedback.
-
@DavidVujic Great work! We are considering to use python-polylith, however we have a setup where components may have incompatible dependencies between them (think of libs with different major version which will never be combined together in final project - yet we wish to keep them in the same repo if possible and take advantage of devcontainers depending on the current need). Having a pyproject per components may help. How would you approach that? |
Beta Was this translation helpful? Give feedback.
-
In Clojure polylith we have a separate deps.edn for each brick, which allows us to not repeat dependencies in dev deps.edn and project deps.edn — they are merged from all bricks' deps.edn file. Is it possible to have this in python polylith and multiproject?
For example I want to have a component
log
which depends on a logging libraryloguru
, and this is specified in the in-component pyproject.toml. When I include this in a project,loguru
will be automatically installed, like normal library dependency.Beta Was this translation helpful? Give feedback.
All reactions