Create distributions also for local dependencies in a monorepo #1676
Unanswered
ovidiu-eremia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @ofek ,
Thank you for this good extensible tool! I'd like to use it too, but the only way I can propose it to my team is if it could help us in a specific situation:
In a monorepo, we have Python projects that depend on other Python projects from the same monorepo. We don't publish them to any index. Instead we pip install them using the whl. But we have issues on managing the dependencies between them in this way.
That's why we'd like that, for a given project with local dependencies to another project in the monorepo, when we build the current project, Hatch will also build the distribution wheel and sources for this kind of local dependencies, in the same time with building the current one, and put them in the same folder as for the current one (usually /dist)
Could you please help with an answer on how could I go about implementing this in a Hatch plugin?
Thank you!
PS: I found these, but they don't do the second type of build in the same build action for the current project and I don't know how to redirect the other secondary builds to the local dependencies specified in the pyproject.toml
#1669
#1353
Beta Was this translation helpful? Give feedback.
All reactions