creating dependency groups similarly to poetry #235
Replies: 3 comments 5 replies
-
I want to avoid too much customizability which then needs to be replicated by every tool around. So if rye adds some dependency groups it mean that every tool on top needs that too. I quite appreciate that Rust has a relatively simple dev + prod + build setup for these. Can you share a bit more how you would use this though? |
Beta Was this translation helpful? Give feedback.
-
sure, i can provide an example of how this could be used take for example this project. if you head to the pyproject.toml file, in this line you can see i defined a group named now suppose i want to set up continuous integration for this package, which will run a formatting/linting tool + tests. we all agree that the CI environment does not need to download the documentation packages, since the docs are built with readthedocs. Hence, one can setup the package installation command like this, which will install every group of dependencies, except for the |
Beta Was this translation helpful? Give feedback.
-
And this is exactly what hatch does. |
Beta Was this translation helpful? Give feedback.
-
is there a way to create multiple dependency groups? as far as i know, currently there is only
tool.rye.dev-dependencies
for development dependencies.in poetry, for instance, you can create many different groups.
i think that the greatest advantage would be to, for example, separate docs dependencies from testing dependencies, so that CI wont download docs dependencies as it is not required.
Beta Was this translation helpful? Give feedback.
All reactions