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


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

Re: [MBF] pybuild: Stop calling setup.py test?

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Louis-Philippe Véronneau <pollo@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: [MBF] pybuild: Stop calling setup.py test?
Date Sun, 11 Dec 2022 02:00:01 +0100
Message-ID <FBiRb-9Opf-15@gated-at.bofh.it> (permalink)
References <EUN0B-NvZ-5@gated-at.bofh.it> <FBgml-9N1C-5@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Dec 11 00:50:56 2022
Old-Return-Path <pollo@debian.org>
X-Amavis-Spam-Status No, score=-5.198 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DIGITS_LETTERS=1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
X-Riseup-User-ID 3A07E7CA2C7F48458226807F4131450AF882D8BDC26711E14F4663CB0FEC1EC6
MIME-Version 1.0
Content-Language en-US
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding base64
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20578
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/e8d3d26f-b8f0-1272-e4de-e165113a2cb9@debian.org
Approved robomod@news.nic.it
Lines 44
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 10 Dec 2022 19:50:34 -0500
X-Original-Message-ID <e8d3d26f-b8f0-1272-e4de-e165113a2cb9@debian.org>
X-Original-References <20220815182722.7gahp4b63macxq6a@satie.tumbleweed.org.za> <Y5UDsK+syQd2RFC/@riva.ucam.org>
Xref csiph.com linux.debian.maint.python:14712

Show key headers only | View raw


On 2022-12-10 17 h 09, Colin Watson wrote:
> On Mon, Aug 15, 2022 at 06:27:22PM +0000, Stefano Rivera wrote:
>> Calling "setup.py test" has been deprecated since setuptools 28.5.
>> That's 6 years ago.
>>
>> pybuild calls currently setup.py test, when it can see that the package
>> supports it, and another test runner hasn't been selected. I looked at
>> dropping support for this (https://bugs.debian.org/982298) last year.
>> I did some test builds and decided that breaking 50 odd packages to stop
>> calling setup.py test wasn't worth it.
> 
> I spent a bit of time this weekend converting some packages that I'm
> interested in to use the pytest runner, focusing first on ones that were
> using nose but also a few from this list (lazr.uri, python-wadllib,
> zope.interface).
> 
> I needed a couple of workarounds, some due to packages using
> importlib.metadata to get their own version at import time (typified by
> the rather messy
> https://salsa.debian.org/python-team/packages/lazr.uri/-/commit/786825acc6)
> and some due to pre-PEP-420 namespace packages (typified by
> https://salsa.debian.org/python-team/packages/zope.interface/-/commit/a8c7881b1a).
> Fortunately pytest provides IMO rather convenient ways to hook in and
> gently tweak the import system just before it tries to import the
> modules under test, which I think is better in this context than
> bringing up a virtualenv or whatever.
> 
> I'd be happy to do a bit more of this sort of thing.
> https://veronneau.org/debian-python-team-2022-sprint-report.html said
> that around 29 of 67 team-maintained packages were fixed during the
> sprint, which means I'm going to have a slightly annoying hit rate if I
> have to just go through this email to find targets.  Is there somewhere
> else where the current list of target packages is being maintained, or
> would it be possible to do this mass bug-filing at sub-RC level so that
> there's a convenient list in the BTS?
This is the list we used during the sprint to coordinate:

https://pad.riseup.net/p/FixSetupTest-keep

It's probably outdated though and I feel a real MBF would be helpful to 
keep track at this point...

-- 
   ⢀⣴⠾⠻⢶⣦⠀
   ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
   ⢿⡄⠘⠷⠚⠋   pollo@debian.org / veronneau.org
   ⠈⠳⣄

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


Thread

[MBF] pybuild: Stop calling setup.py test? Stefano Rivera <stefanor@debian.org> - 2022-08-15 20:30 +0200
  Re: [MBF] pybuild: Stop calling setup.py test? Louis-Philippe Véronneau <pollo@debian.org> - 2022-08-15 21:40 +0200
  Re: [MBF] pybuild: Stop calling setup.py test? Colin Watson <cjwatson@debian.org> - 2022-12-10 23:20 +0100
    Re: [MBF] pybuild: Stop calling setup.py test? Louis-Philippe Véronneau <pollo@debian.org> - 2022-12-11 02:00 +0100
      Re: [MBF] pybuild: Stop calling setup.py test? Stuart Prescott <stuart@debian.org> - 2022-12-13 00:30 +0100

csiph-web