Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') Date: Thu, 28 Nov 2019 21:50:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Nov 28 20:41:53 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.2 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, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 Dkim-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1574973674; h=date : in-reply-to : references : mime-version : content-type : content-transfer-encoding : subject : to : from : message-id : from; bh=w9fTBJTVXx6jJ+LIrbHg1ZhY6lYp9ZDp6OYnNjR5jsM=; b=v17Mur/MbKRT9iIpcTvQul0WJgioBK6PwT13P5a/BRgrZHCD165cUyRS KvIu+5KDADaQb+OY3wQQ/f2XHcUaBA== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1574973674; h=date : in-reply-to : references : mime-version : content-type : content-transfer-encoding : subject : to : from : message-id : from; bh=w9fTBJTVXx6jJ+LIrbHg1ZhY6lYp9ZDp6OYnNjR5jsM=; b=ZI706Pnfq71QYQ9HRJ0j8VnISyd3tk5J1ljiRE5ueKhwoM1M9xLiDhNg EwvAcerYrh7a5WAIaDn8H31ZA+6UG0two59pmm0eIao2BQam0OEvWSPQc0 nD7e0QMKgBeT4uX0qJX+Z4dms2FeUa4QkzhGXYc0IV7G+A6Ivpmhe7a03K g2TpyuQliXc8g2Q/g6AZLJLREFZAcnh2eHD/1Wyj1dCsmTZb2FtEx77gZS ob/tXFswBzuRRI8wk07JHYAnRQIXNtkSQGKBtV5lQhJDPtDV2GnEX83raY weW4y9cnM4TItxCrwGVXrf8i0tQ4IE1cgFVy4vJwr/+qr7l5Nx92bA== MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/17665 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/BC86D5AF-C228-4B5F-905F-4B75A610FD95@kitterman.com Approved: robomod@news.nic.it Lines: 56 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 28 Nov 2019 20:41:11 +0000 X-Original-Message-ID: X-Original-References: <20191128150402.GK2400@an3as.eu> <20191128161129.GL2400@an3as.eu> <20191128172753.GA383286@espresso.pseudorandom.co.uk> Xref: csiph.com linux.debian.maint.python:12063 On November 28, 2019 5:27:53 PM UTC, Simon McVittie wr= ote: >On Thu, 28 Nov 2019 at 11:15:31 -0500, Sandro Tosi wrote: >> if you install `pubsub` as top-level module, your package must be >> named pythonN-pubsub, if not it violates the policy and it's RC >buggy=2E > >That's what I had thought, but I've also seen people asserting that the >Debian package name ought to reflect the egg name in cases where it >differs from the top-level Python module name=2E > >Some examples of where the difference between egg name and module name >matters: > >- this one: > - module: pubsub (-> python3-pubsub) > - egg: pypubsub-*=2Eegg-info (-> python3-pypubsub) > - is actually python3-pypubsub (named for the egg) > >- src:dbus-python: > - module: dbus (-> python3-dbus) > - egg: dbus_python-1=2E2=2E14=2Eegg-info (-> python3-dbus-python) > - is actually python3-dbus (named for the module) > >- src:pygobject: > - module: gi (-> python3-gi) and pygtkcompat > - egg: PyGObject-3=2E34=2E0=2Eegg-info (-> python3-pygobject) > - is actually python3-gi (named for the module) > >(Maybe python3-gi should also have Provides: python3-pygtkcompat?) > >Is there consensus that the top-level module name is what matters, and >not >following the recommendation is a bug? >https://www=2Edebian=2Eorg/doc/packaging-manuals/python-policy/module_pac= kages=2Ehtml >says "The binary package for module foo should preferably be named >python3-foo, if the module name allows" and "import foo should import >the module", which suggests that it is indeed the name of the top-level >importable module, and not the name of the egg, that matters (which >would >imply that -dbus and -gi are correct, and -pypubsub is not)=2E > >Is there consensus that not following this recommendation is a *RC* >bug? >The bits I quoted above say "should" rather than "must"=2E > >Thanks, > smcv Python Policy is not Debian Policy=2E It's not a "policy" violation in th= e sense of a serious bug=2E That said, it would be better to change it=2E Scott K