TechnologyBrewery / poetry-monorepo-dependency-plugin

Poetry plugin that facilitates the usage of more complex monorepo project structures by pinning version dependencies when building and publishing archives with local path dependencies to other Poetry projects within the same monorepo.
25 stars 8 forks source link

Pass extras through to dependencies #33

Open stuaxo opened 2 months ago

stuaxo commented 2 months ago

I can hard code extras in my dependency like this:

my_dependency = { path = "../my_dependency", develop = true, extras = ["llamacpp"] }

What I can't work out is how to pass the extras I want through on the commandline - if it's not possible, could this be added ?

gemmell commented 1 week ago

This is something I also need, along with passing through groups you might want (e.g. the dev group): https://github.com/TechnologyBrewery/poetry-monorepo-dependency-plugin/issues/20#issuecomment-2224666002

At the moment I have the extras sections from my sub-projects duplicated in my top level monorepo pyproject.toml which is 😭

stuaxo commented 1 week ago

Maybe we want an option like passthrough_extras with the names of the extras to passthrough if they are set.