Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
Hi Piotr (2021.10.22_11:06:02_-0700) > I'm doing some testing to see what effect this will have. There are > about 500 affected packages, as far as I can tell. So, about 50 of them fail to build with this change (and a couple go from FTBFS to building successfully): --- setuppy-test-failed 2021-10-24 01:50:12.702126456 + +++ unittest-failed 2021-10-24 01:50:21.006070451 + @@ -1,29 +1,75 @@ +autopep8_1.5.7-1_arm64.build:Status: attempted +black_21.4b2-3_arm64.build:Status: attempted blessings_1.6-3_arm64.build:Status: attempted -blist_1.3.6-7_arm64.build:Status: attempted +debmutate_0.45_arm64.build:Status: attempted +django-classy-tags_2.0.0-1_arm64.build:Status: attempted +django-guardian_2.4.0-1_arm64.build:Status: attempted +django-prometheus_2.1.0-1_arm64.build:Status: attempted +django-recurrence_1.10.3-1_arm64.build:Status: attempted django-restricted-resource_2016.8-3_arm64.build:Status: attempted +django-sekizai_2.0.0-4_arm64.build:Status: attempted doxypypy_0.8.8.6-4_arm64.build:Status: attempted +elasticsearch-curator_5.8.1-1_arm64.build:Status: attempted +factory-boy_2.11.1-3_arm64.build:Status: attempted fail2ban_0.11.2-2_arm64.build:Status: attempted +flask-autoindex_0.6.6-2_arm64.build:Status: attempted flask-migrate_2.6.0-1_arm64.build:Status: attempted +flask-testing_0.8.1-1_arm64.build:Status: attempted frozen-flask_0.11-3.1_arm64.build:Status: attempted glue_0.13-5_arm64.build:Status: attempted hydroffice.bag_0.2.15-3_arm64.build:Status: attempted khard_0.17.0-2_arm64.build:Status: attempted +lazr.uri_1.0.6-1_arm64.build:Status: attempted +lesana_0.8.1-1_arm64.build:Status: attempted +lttnganalyses_0.6.1-2_arm64.build:Status: attempted +magic-wormhole_0.12.0-1_arm64.build:Status: attempted +manuel_1.10.1-2_arm64.build:Status: attempted +mmllib_0.3.0.post1-2_arm64.build:Status: attempted +multiprocess_0.70.12.2-1_arm64.build:Status: attempted nose_1.3.7-7_arm64.build:Status: attempted objgraph_3.5.0-3_arm64.build:Status: attempted pelican_4.0.1+dfsg-1.1_arm64.build:Status: attempted +pocketsphinx-python_0.1.15-2_arm64.build:Status: attempted +ponyorm_0.7.14-1_arm64.build:Status: attempted +powerline_2.8.2-1_arm64.build:Status: attempted pygithub_1.43.7-1_arm64.build:Status: attempted pyliblo_0.10.0-4_arm64.build:Status: attempted +pyramid-jinja2_2.7+dfsg-1.2_arm64.build:Status: attempted pyro4_4.80-1_arm64.build:Status: attempted +pytables_3.6.1-5_arm64.build:Status: attempted +python-applicationinsights_0.11.10-1_arm64.build:Status: attempted +python-argcomplete_1.12.3-0.1_arm64.build:Status: attempted +python-bitcoinlib_0.11.0-1_arm64.build:Status: attempted +python-chameleon_3.8.1-1_arm64.build:Status: attempted +python-ciso8601_2.2.0-1_arm64.build:Status: attempted +python-configargparse_1.2.3-1_arm64.build:Status: attempted +python-django-bootstrap-form_3.4-5_arm64.build:Status: attempted +python-django-colorfield_0.4.5+ds1-1_arm64.build:Status: attempted +python-django-ical_1.8.0-1_arm64.build:Status: attempted python-django-imagekit_4.0.2-3_arm64.build:Status: attempted python-django-registration_2.2-5_arm64.build:Status: attempted +python-django-swapper_1.1.2-2_arm64.build:Status: attempted +python-funcsigs_1.0.2-5_arm64.build:Status: attempted python-jsmin_2.2.2-2_arm64.build:Status: attempted +python-launchpadlib_1.10.14-1_arm64.build:Status: attempted +python-libais_0.17+git.20190917.master.e464cf8-2_arm64.build:Status: attempted python-libusb1_1.9.1-1_arm64.build:Status: attempted +python-mpv_0.5.2-1_arm64.build:Status: attempted +python-ofxhome_0.3.3-3_arm64.build:Status: attempted +python-phabricator_0.7.0-1.1_arm64.build:Status: attempted python-pkginfo_1.4.2-3_arm64.build:Status: attempted +python-pulp_2.5.1+dfsg-2_arm64.build:Status: attempted +python-pylibdmtx_0.1.9-3_arm64.build:Status: attempted python-pyramid-multiauth_0.8.0-1.1_arm64.build:Status: attempted python-pyramid-zcml_1.0.0-1.2_arm64.build:Status: attempted python-slimmer_0.1.30-8_arm64.build:Status: attempted -pytrainer_2.0.2-2_arm64.build:Status: attempted +python-wadllib_1.3.6-1_arm64.build:Status: attempted +python-zstd_1.4.5.1-3_arm64.build:Status: attempted pyvirtualdisplay_0.2.1-3_arm64.build:Status: attempted -retweet_0.10-1.1_arm64.build:Status: attempted +pyzbar_0.1.8-3_arm64.build:Status: attempted +quark-sphinx-theme_0.5.1-2_arm64.build:Status: attempted +silver-platter_0.4.3-1_arm64.build:Status: attempted simpleeval_0.9.10-1_arm64.build:Status: attempted supervisor_4.2.2-2_arm64.build:Status: attempted +supysonic_0.6.2+ds-3_arm64.build:Status: attempted +toro_1.0.1-4_arm64.build:Status: attempted That's enough that I'm not about to just upload this to unstable, unless someone persuades me that it's a good idea to. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
Hi Piotr (2021.02.09_03:26:04_-0800) > > > actually… pybuild should invoke something like this: > > > `{interpreter} -m unittest discover -v {args}` > > > so I don't know where "setup.py test" came from. Can you point me to > > pybuild *does* that for distutils plugin. I will not change it in this > release cycle as I don't know how many packages depend on that It's the next cycle, so let's do this. I'm doing some testing to see what effect this will have. There are about 500 affected packages, as far as I can tell. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
On Tue, Feb 09, 2021 at 12:26:04PM +0100, Piotr Ożarowski wrote: > > > actually… pybuild should invoke something like this: > > > `{interpreter} -m unittest discover -v {args}` > > > so I don't know where "setup.py test" came from. Can you point me to > > pybuild *does* that for distutils plugin. I will not change it in this > release cycle as I don't know how many packages depend on that Indeed - changing it in this release cycle would be very unwise! Best wishes, Julian
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
> > actually… pybuild should invoke something like this: > > `{interpreter} -m unittest discover -v {args}` > > so I don't know where "setup.py test" came from. Can you point me to pybuild *does* that for distutils plugin. I will not change it in this release cycle as I don't know how many packages depend on that
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
On Tue, Feb 09, 2021 at 10:33:53AM +0100, Piotr Ożarowski wrote: > [Julian Gilbey, 2021-02-09] > > > if your package uses pytest or nose{,2} then just add appropriate build > > > dependency (like: python3-pytest) and above command will not be used. > > > See pybuild's manual for more details > > > > It doesn't: it uses unittest. I guess I could depend on > > python3-pytest anyway, and that might solve it, but it seems a little > > strange to depend on python3-pytest when the package uses unittest. > > But then maybe I haven't understood something correctly. > > actually… pybuild should invoke something like this: > `{interpreter} -m unittest discover -v {args}` > so I don't know where "setup.py test" came from. Can you point me to > your package? That's strange, then. Here's the package (not yet in the Debian archive): https://salsa.debian.org/python-team/packages/jsx-lexer Best wishes, Julian
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
[Julian Gilbey, 2021-02-09] > On Mon, Feb 08, 2021 at 02:32:23PM +0100, Piotr Ożarowski wrote: > > [Julian Gilbey, 2021-02-08] > > > I: pybuild base:232: python3.9 setup.py test > > > running test > > > WARNING: Testing via this command is deprecated and will be removed in a > > > future version. Users looking for a generic test entry point independent > > > of test runner are encouraged to use tox. > > > > > > Since it is dh-python that runs this command, presumably it is > > > dh-python that should change it, or maybe I'm wrong? > > > > if your package uses pytest or nose{,2} then just add appropriate build > > dependency (like: python3-pytest) and above command will not be used. > > See pybuild's manual for more details > > It doesn't: it uses unittest. I guess I could depend on > python3-pytest anyway, and that might solve it, but it seems a little > strange to depend on python3-pytest when the package uses unittest. > But then maybe I haven't understood something correctly. actually… pybuild should invoke something like this: `{interpreter} -m unittest discover -v {args}` so I don't know where "setup.py test" came from. Can you point me to your package?
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
On Mon, Feb 08, 2021 at 02:32:23PM +0100, Piotr Ożarowski wrote: > [Julian Gilbey, 2021-02-08] > > I: pybuild base:232: python3.9 setup.py test > > running test > > WARNING: Testing via this command is deprecated and will be removed in a > > future version. Users looking for a generic test entry point independent of > > test runner are encouraged to use tox. > > > > Since it is dh-python that runs this command, presumably it is > > dh-python that should change it, or maybe I'm wrong? > > if your package uses pytest or nose{,2} then just add appropriate build > dependency (like: python3-pytest) and above command will not be used. > See pybuild's manual for more details Hi Piotr, It doesn't: it uses unittest. I guess I could depend on python3-pytest anyway, and that might solve it, but it seems a little strange to depend on python3-pytest when the package uses unittest. But then maybe I haven't understood something correctly. Best wishes, Julian
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
[Julian Gilbey, 2021-02-08] > I: pybuild base:232: python3.9 setup.py test > running test > WARNING: Testing via this command is deprecated and will be removed in a > future version. Users looking for a generic test entry point independent of > test runner are encouraged to use tox. > > Since it is dh-python that runs this command, presumably it is > dh-python that should change it, or maybe I'm wrong? if your package uses pytest or nose{,2} then just add appropriate build dependency (like: python3-pytest) and above command will not be used. See pybuild's manual for more details
Bug#982298: dh-python: deprecated test command 'python3.9 setup.py test'
Package: dh-python Version: 4.20201102 Severity: normal I'm just building a Python module package, and I get the following warning message: I: pybuild base:232: python3.9 setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. Since it is dh-python that runs this command, presumably it is dh-python that should change it, or maybe I'm wrong? Best wishes, Julian -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dh-python depends on: ii python33.9.1-1 ii python3-distutils 3.9.1-2 dh-python recommends no packages. Versions of packages dh-python suggests: ii dpkg-dev 1.20.7.1 ii libdpkg-perl 1.20.7.1 -- no debconf information