Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #17000

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

From Philippe Cerfon <philcerf@gmail.com>
Newsgroups linux.debian.maint.python
Subject can dh-python automatically convert extras as in requests[socks]
Date 2025-08-18 02:30 +0200
Message-ID <LkVV7-8pbu-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.maint.python | Previous | Next | Find similar


Thread

can dh-python automatically convert extras as in requests[socks] Philippe Cerfon <philcerf@gmail.com> - 2025-08-18 02:30 +0200

csiph-web