Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Dmitry Shachnev Newsgroups: linux.debian.maint.python Subject: Re: python3-nose removal (or revival ?) Date: Wed, 18 Sep 2024 22:50:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Sep 18 20:46:35 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.509 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lf1-f45.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AOJu0Yz9sTYq8yaLwDB3b4Yvbg2sGC7xykjxnuxPlGpsgf/8/5IjEteA xizDeDzcyiC1kThgiBKO0mWCWJ9eov7c6ZEDetMO49sIeJY/3Y8iwfBppw== X-Google-SMTP-Source: AGHT+IHmUjFlWDASsDwYhjgnFxVnEf8pEoccwbmE3B2shdhfemkXcb+RiAKbxcntqnrOLwEUCxkPlQ== X-Received: by 2002:ac2:5685:0:b0:536:796b:4d72 with SMTP id 2adb3069b0e04-536796b4ea3mr14500032e87.55.1726692377135; Wed, 18 Sep 2024 13:46:17 -0700 (PDT) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SwHKuK6MhlCQitki" Content-Disposition: inline X-Mailing-List: archive/latest/22348 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Zus8KdxmX3627Ejf@mitya57.me Approved: robomod@news.nic.it Lines: 103 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Wed, 18 Sep 2024 23:46:33 +0300 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:16288 --SwHKuK6MhlCQitki Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Alexandre! First of all, thanks for your hard work on porting the packages away from nose. On Wed, Sep 18, 2024 at 12:32:33PM +0200, Alexandre Detiste wrote: > Hi, >=20 > While fixing/updating more random packages for the python3-nose removal; > I stumbled on this new fork: >=20 > https://pypi.org/project/pynose/ Yes, I saw that too. By the way, there is also another fork called nose3, b= ut it seems even less active. > This fork brings it's own new problems: > - licensing needs extensive review: > https://github.com/mdmintz/pynose/issues/36 > - unit test are gone: https://github.com/mdmintz/pynose/issues/39 >=20 > So I am not convinced it's the way to go; > It still feels like too little, too late. I agree. > Kicking Nose out of Debian (+ Ubuntu) would > maybe make some projects reconsider their CI pipeline > to use a better maintained test runner. That=E2=80=99s a nice side effect, but not more. I think the primary motiva= tion for removal is maintenance burden, e.g. the fact that nose often breaks with new Python versions. If we worked around some of the problems (e.g. replaced 2to3 with fissix), I am fine with giving the maintainers (and their upstreams) more time to po= rt away from nose. Also, many upstream projects are using Ubuntu LTS releases, and the next su= ch release is only in 1.5 years anyway. > python3-pika is the first project I found online that did switched to pyn= ose > as prefered test runner in upcoming release. It looks like it needs [py]nose only for two relatively small functions from nose.twistedtools. I wonder why they didn=E2=80=99t just vendor that code. > Debian Code Search also hints to: > - django-cte (it's on the todo list too) This one I don=E2=80=99t see why needs nose at all. The test is very simple= and just calls init_db() and destroy_db(), this can be definitely done with pure unittest. > - thunderbird > https://codesearch.debian.net/search?q=3Dpynose&literal=3D1&perpkg=3D1 We don=E2=80=99t seem to run Python tests during Thunderbird build. So for now, I am not convinced that we need to update nose package to pynose upstream. However, if pynose has some patches that help us, we can always cherry-pick them (maybe after updating debian/copyright). That said, https://bugs.debian.org/1080224 is not fixed in pynose. Or at least the problematic line is still there: https://github.com/mdmintz/pynose/blob/v1.5.2/nose/commands.py#L122 -- Dmitry Shachnev --SwHKuK6MhlCQitki Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEq2sdvrA0LydXHe1qsmYUtFL0RrYFAmbrPCUACgkQsmYUtFL0 RraQqg/+JuwjttcDCcjFm7FFg/DANEtbW9Xf4UFeCCahGMEAGAMdAHuO0zjq7bSz MiQ2DNT9o0OuWSAC5i8zlo7rHes7A777BT8dELZIJIHuhMRUNXCmZg+zwDZ+XJ3Z MU4PBEpq123nDv7ykXM02WlvBwHDm9/BMsbBjWfhMH/WV8TC0MdqkrC6adC7HWvp F4BV6R1+n9HbMqj8xmBl3aMgktVl1QMbgmgKWdbw4DJw829hZst5b2xl7WNFT7eV 6VCy8Q05eo2mdUb9F7Fn7H6U4Qz29OaD+9AAzsFRwLG0hYF5PLQLrWRddjRYJ884 iheZw+5JI8vESiWc7hOwuaoh5ZziixaJdJxD90/3fTx94v+PY1bTb1nd5heeal54 hv4Pso2w/LITGW5K5SbNcfPUj2HiBiwSDQwRqpeRVt2jI+DH+8SvDbNU5byCOuOY fM5X6RnrhCs9RnMPyZvA8BU7YCe9v/I/Zrr9ANcD+CEyS4ql1g8Q/5oQ0/nyEsM9 23wXYBVu2YVkFaEkZtD3ACnTLW/Bpq7cGs6CvMzLzixYr7tLxwgyFNzM2ZQUg0sZ ogTCU86n2fFxIApo4IGuTo+h3XXzV0h1liBfC9lNhC5K6T3xuONl21kYEp50myYw qX03aak4ctW/UHU3RKuypYACbA2t4TJNEhLXfKAUhLQwFGJ/jng= =zby4 -----END PGP SIGNATURE----- --SwHKuK6MhlCQitki--