Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Stefano Rivera Newsgroups: linux.debian.maint.python Subject: Re: dh_python for single python scripts? Date: Fri, 16 Aug 2024 09:50:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Aug 16 07:47:37 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-106.996 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.125, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 Mail-Followup-To: Philippe Cerfon , debian-python@lists.debian.org X-Gpg-Public-Key: http://www.rivera.za.net/stefano.gpg MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20220429 X-Mailing-List: archive/latest/22269 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20240816074722.d7lcovp3bir46rhz@satie.tumbleweed.org.za Approved: robomod@news.nic.it Lines: 22 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Fri, 16 Aug 2024 07:47:22 +0000 X-Original-Message-ID: <20240816074722.d7lcovp3bir46rhz@satie.tumbleweed.org.za> X-Original-References: Xref: csiph.com linux.debian.maint.python:16220 Hi Philippe (2024.08.16_00:52:25_+0000) > > Now I do have some standalone python scripts for which it makes not > much sense to make them (Python) packages (i.e. there's no > __init__.py, etc.), yet I'd still like to have stuff like > automatically getting the right Debian package dependencies in a > Debian package. > > Is that even intended to work with dh_python? dh_python doesn't care what form your python package is in. It just looks for the metadata in .dist-info / .egg-info. So, if your package declares dependencies in in the packaging, and installs correctly with python3-build, it'll work. Stefano -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272