Path: csiph.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod From: Simon McVittie 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: Fri, 29 Nov 2019 11:50:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org, Yao Wei =?utf-8?B?KOmtj+mKmOW7tyk=?= X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Nov 29 10:43:04 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-4.815 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, FAKE_REPLY_C=1.486, FROM_FMBLA_NEWDOM=1.499, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -3.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.12.2 (2019-09-21) X-Mailing-List: archive/latest/17669 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20191129104245.GA426337@espresso.pseudorandom.co.uk Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 29 Nov 2019 10:42:45 +0000 X-Original-Message-ID: <20191129104245.GA426337@espresso.pseudorandom.co.uk> X-Original-References: <20191129082934.GA410814@espresso.pseudorandom.co.uk> Xref: csiph.com linux.debian.maint.python:12075 On Thu, 28 Nov 2019 at 17:27:53 +0000, Simon McVittie wrote: > 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. > > 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. I've opened https://salsa.debian.org/cpython-team/python3-defaults/merge_requests/2 to clarify this. Comments welcome, particularly if you don't think my proposed change reflects consensus. (I tried to open a wishlist bug in python3-defaults, but the BTS hasn't responded so far.) On Fri, 29 Nov 2019 at 08:29:34 +0000, Simon McVittie wrote: > On Fri, 29 Nov 2019 at 08:30:16 +0800, Yao Wei (魏銘廷) wrote: > > If the module name has upper case in it, it would actually break Policy §5.6.1 > > I'd assumed the "foo" here was shorthand for > module_name.lower().replace('_', '-'), although maybe it would be better > for this to be explicit in the policy. Documenting this is also part of https://salsa.debian.org/cpython-team/python3-defaults/merge_requests/2 > autopkgtest-pkg-python would ideally transform - back to _ to decide > what to import, which would fix the more_itertools case? In fact it already does. https://salsa.debian.org/ci-team/autodep8/merge_requests/17 adds test coverage. > It would need > an override mechanism for the Xlib case anyway https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884181 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929957 are requests for such a mechanism. https://salsa.debian.org/ci-team/autodep8/merge_requests/6 and https://salsa.debian.org/ci-team/autodep8/merge_requests/17 are two proposals for implementations of this. smcv