astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.82k stars 467 forks source link

`rye tools install` with multiple `--include-dep` #1061

Open ZingyAwesome opened 6 months ago

ZingyAwesome commented 6 months ago

It would be nice to have a way to specify multiple --include-deps with rye tool install.

My use case is installing ansible, ansible-core, and ansible-lint as rye tools in the same venv. Currently I can do rye tools install ansible --include-dep ansible-core and this installs ansible and ansible-core to the same venv and exposes scripts from both packages. If I try and add ansible-lint to the mix with rye tools install ansible --include-dep ansible-core,ansible-lint or rye tools install ansible --include-dep 'ansible-core ansible-lint', ansible will install correctly but ansible-core and ansible-lint aren't installed. So it seems that only 1 --include-dep can be specified or the whole thing is ignored.

While I could install ansible and ansible-core as 1 tool, and ansible-lint as another tool, being able to keep them in 1 venv saves disk space and means I can update them together.