question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
finswimmercommented, Dec 29, 2021

This is now possible in the current preview release (1.2.0a2) with dependency groups.

2reactions
nico-unitycommented, Jun 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found