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


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

Re: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub')

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 <smcv@debian.org>
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 <z7M0x-7a3-3@gated-at.bofh.it> (permalink)
References <z7JP3-5Ss-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org, Yao Wei (魏銘廷) <mwei@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Nov 29 10:43:04 2019
Old-Return-Path <smcv@debian.org>
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 <debian-python@lists.debian.org> archive/latest/17669
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
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

Show key headers only | View raw


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

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

autopkgtest-pkg-python fails if package name is python-pyMODULENAME  (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named  'pypubsub') Andreas Tille <andreas@an3as.eu> - 2019-11-28 16:10 +0100
  Re: autopkgtest-pkg-python fails if package name is  python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure:  No module named 'pypubsub') Ondrej Novy <novy@ondrej.org> - 2019-11-28 16:40 +0100
    Bug#945768: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') Andreas Tille <andreas@an3as.eu> - 2019-11-28 17:20 +0100
      Bug#945768: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') Sandro Tosi <morph@debian.org> - 2019-11-28 17:20 +0100
        Re: autopkgtest-pkg-python fails if package name is  python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure:  No module named 'pypubsub') Andreas Tille <andreas@an3as.eu> - 2019-11-28 18:30 +0100
        Re: autopkgtest-pkg-python fails if package name is  python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure:  No module named 'pypubsub') Simon McVittie <smcv@debian.org> - 2019-11-28 18:30 +0100
          Re: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') Scott Kitterman <debian@kitterman.com> - 2019-11-28 21:50 +0100
          Re: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') "Yao Wei (魏銘廷)" <mwei@debian.org> - 2019-11-29 01:40 +0100
            Re: autopkgtest-pkg-python fails if package name is  python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure:  No module named 'pypubsub') Simon McVittie <smcv@debian.org> - 2019-11-29 09:30 +0100
              Re: autopkgtest-pkg-python fails if package name is  python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure:  No module named 'pypubsub') Simon McVittie <smcv@debian.org> - 2019-11-29 11:50 +0100
                Re: autopkgtest-pkg-python fails if package name is  python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure:  No module named 'pypubsub') Andreas Tille <andreas@an3as.eu> - 2019-11-29 12:10 +0100
                Lintian warning for this issue (Was: autopkgtest-pkg-python fails if  package name is python-pyMODULENAME) Andreas Tille <andreas@an3as.eu> - 2019-12-04 14:50 +0100
      Bug#945768: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') Ondrej Novy <novy@ondrej.org> - 2019-11-28 19:00 +0100

csiph-web