How can I reference other optional-dependencies in an optional-dependency? #1241
Unanswered
FossenWang
asked this question in
Q&A
Replies: 1 comment
-
Hey @FossenWang , not sure if this is a new feature, but you should be able to do that according to docs: https://pdm.fming.dev/latest/usage/dependency/#add-dependencies [project]
name = "foo"
version = "0.1.0"
[project.optional-dependencies]
socks = ["pysocks"]
jwt = ["pyjwt"]
all = ["foo[socks,jwt]"] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If an optional-dependency actually rely on some other optional-dependencies, I hope to only reference other groups of dependency, rather than write the whole dependencies again.
For example:
I've tried this with
setup.py
andpip install
which works.Beta Was this translation helpful? Give feedback.
All reactions