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]

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Philippe Cerfon <philcerf@gmail.com>
Newsgroups linux.debian.maint.python
Subject can dh-python automatically convert extras as in requests[socks]
Date Mon, 18 Aug 2025 02:30:01 +0200
Message-ID <LkVV7-8pbu-1@gated-at.bofh.it> (permalink)
X-Original-To "debian-python@lists.debian.org" <debian-python@lists.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Aug 18 00:24:10 2025
Old-Return-Path <philcerf@gmail.com>
X-Amavis-Spam-Status No, score=-2.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOJu0YwtPYusIEwbW9kulAWsWvYZy/g9bUlfcQhGL99Dlbo8ggMFAoCn BHp8TSl1dM5yg1r8uBH1jqsIwK9uuATpuHWP3s54GJMCIge4vZIo/vgJCMq9E9jkeEUyLDjYyp+ HZfocoO/zYACD/63bihuolhS/tAHXrhdigyLw
X-Gm-Gg ASbGncufU50RmlXH64P0ZmGk6pMi/UpWKRPfH7rM1+DFcvecDDl0TWCLgsiYiCqtM35 PqbsBOxU4C6vsxGJy8gzHICXyKQzmlQLC9SM6hTSU1mWmZ4IH3D2nQ0/TQONxKsewWjkP8kUKJw vaoX2zlRBgFZ7pFwHYJM+9X1TqrJgjemsXihwLKmrr3xpGbTCMIp0uIFbB2DA0p4+sQFRPhm27w 3JJ3lcMBlujhVUwhNHo
X-Google-SMTP-Source AGHT+IEJd0a2MniGVvU6QYV2d+/Ftkj0CLBS/lYymaCpyUU/mjZqw/7coDbIGBaf2stOkD5cOEMoy4yer5SbLeQlXC8=
X-Received by 2002:a17:907:1b14:b0:af9:3341:8dd with SMTP id a640c23a62f3a-afcdc2c0c76mr993638466b.31.1755475568631; Sun, 17 Aug 2025 17:06:08 -0700 (PDT)
MIME-Version 1.0
X-Gm-Features Ac12FXxv7tiedfVmh_nwPyDFb0tHOI6uJcevF6lA9eIw7lVhlfFaf-1jON0t12o
Content-Type text/plain; charset="UTF-8"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/23174
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CAN+za=N_QMaHRyG1HU9J=o3h0gKVeGrTP6aQSOMKBisW+VrUhg@mail.gmail.com
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 18 Aug 2025 02:05:56 +0200
X-Original-Message-ID <CAN+za=N_QMaHRyG1HU9J=o3h0gKVeGrTP6aQSOMKBisW+VrUhg@mail.gmail.com>
Xref csiph.com linux.debian.maint.python:17000

Show key headers only | 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