Enable multiple subset of dependencies
See original GitHub issue- [ X] I have searched the issues of this repo and believe that this is not a duplicate.
- [ X] I have searched the documentation and believe that my question is not covered.
Feature Request
Currently using the latest version of poetry on python 3.7.0.
Using poetry when developing on a local machine with cpu and then building a Docker to launch the code on a GPU machine is painful with some module and current poetry segmentation of dev and core dependencies. A bit like the command poetry install --no-dev
it would be very useful if we could define X set of dependencies ex: poetry install --dependencies test
. The dependencies argument by default could be the current poetry behaviour and then we could had what ever subset of dependencies in the pyproject.toml, ex:
[tool.poetry.dependencies]
python = "^3.6"
kfp = "^0.1.31"
tensorflow_gpu = "^2.0.0"
[tool.poetry.dev-dependencies]
matplotlib = "^3.1"
[tool.poetry.test-dependencies]
python = "^3.6"
kfp = "^0.1.31"
tensorflow = "^2.0.0"
If multi dependencies is not possible another solution could be enable installation of strictly the dev dependencies ex: poetry install --no-prd
Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:24
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Install subset of dependencies with npm - Stack Overflow
My package has a very large number of dependencies and takes nearly half an hour to install, but most users only need a...
Read more >Enable Dependencies and Use Predecessors
Enable or Disable Dependencies in a Project · Click the dropdown arrow down-arrow · In the project settings form, under Dependencies, select the...
Read more >Customizing resolution of a dependency directly
A project can decide to disable transitive dependency resolution completely. You either don't want to rely on the metadata published to the consumed ......
Read more >install-subset - npm
Install a subset of npm dependencies based on given contexts. ... If you would like install-subset to consider multiple subsets.
Read more >Selecting subsets of projects - Rush.js
In order to build D , we also need to include its dependency G . The --from command does this. It will also...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is now possible in the current preview release (1.2.0a2) with dependency groups.
Reopening issues because the solution provide still does a single build. Meaning that if I wanted to have exclusion from main dependencies it would be possible.