Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional dependencies within groups #7712

Closed
1 task done
austinmw opened this issue Mar 24, 2023 · 2 comments
Closed
1 task done

Optional dependencies within groups #7712

austinmw opened this issue Mar 24, 2023 · 2 comments
Labels
area/docs Documentation issues/improvements status/triage This issue needs to be triaged

Comments

@austinmw
Copy link

austinmw commented Mar 24, 2023

  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

Hi, I can't seem to find out how to add optional dependencies within a group.

For example I'd like the last dependency to be an optional / extra install within the group_a:

[tool.poetry.group.group_a.dependencies]
ipython = "^8.4.0"
cython = "^0.29.33"
numpy = "^1.22.3"
statsmodels = "^0.13.2"
mxnet = {version = "^1.9.1", optional = true} # Doesn't work with M1 Macs

I only want this to be optionally installable if group_a is installed.


I tried adding

[tool.poetry.extras]
group_a = ["mxnet"]

And installing with poetry install -E group_a but this didn't work.

@austinmw austinmw added area/docs Documentation issues/improvements status/triage This issue needs to be triaged labels Mar 24, 2023
@dimbleby
Copy link
Contributor

duplicate #4842 please close

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs Documentation issues/improvements status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants