[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

can dh-python automatically convert extras as in requests[socks]



Hey.

When in my pyproject.toml I have e.g.:
dependencies = [
                "requests[socks]",
                "urllib3"
               ]

dh-python automatically adds:
   Depends: python3-requests, python3-urllib3, python3:any
but not python3-socks.

Is that somehow possible or does one have to specify it explicitly in control?

Further, what if I'd consider the socks part optional? Could I get it
automatically picked up into Recommends?
Or should a then rather make a pyproject.toml where I just use
"requests" and have socks as an optional dependency in:
  [project.optional-dependencies]
  foo = ["socks"]

Thanks for helping,
Philippe


Reply to: