Bug 50996

Summary: deprecated `setup.py test` command
Product: Sisyphus Reporter: Stanislav Levin <slev>
Component: python3-module-setuptoolsAssignee: Stanislav Levin <slev>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: antohami, cas, cow, evg, george, grenka, imz, kotopesutility, lav, nbr, qa_viy, rider, sem, shaba, sin, slev, toni, vitty, viy
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Stanislav Levin 2024-07-29 15:32:15 MSK
setuptools 72.0.0 removed support for deprecated `setup.py test` command:

https://setuptools.pypa.io/en/stable/history.html#v72-0-0

> The test command has been removed. Users relying on ‘setup.py test’ will need to migrate to another test runner or pin setuptools before this version. (#931)

See also:
https://github.com/pypa/setuptools/issues/931

Rough estimate of affected packages in sisyphus:
$ git grep 'setup.py test' | wc -l
280
Comment 1 Stanislav Levin 2024-10-03 19:25:10 MSK
To make it clear.
`test` is deprecated since setuptools 41.5.0 (27 Oct 2019):                           
https://setuptools.pypa.io/en/latest/history.html#v41-5-0

Upstreams had enough time to migrate from it.
Comment 2 Stanislav Levin 2024-10-03 19:27:34 MSK
updated stats:
- `python3 setup.py test` is invoked by 151 packages during build
- 110 of them do nothing (ran 0 tests)
Comment 3 Grigory Ustinov 2024-10-03 19:42:22 MSK
Огласите весь список, пжалуста?
Comment 4 Stanislav Levin 2024-10-03 19:45:35 MSK
https://git.altlinux.org/tasks/358761/ removes 91 packages (run zero tests + unmaintained/orphaned + no runtime/buildtime deps)
Comment 5 Stanislav Levin 2024-10-04 12:20:06 MSK
https://git.altlinux.org/tasks/archive/done/_350/358943/ removes 12 packages (run nonzero tests + unmaintained/orphaned + no runtime/buildtime deps)
Comment 6 Stanislav Levin 2024-10-04 12:21:28 MSK
The list of affected packages is maintained here:
https://git.altlinux.org/people/slev/public/?p=alt_50996.git;a=tree;h=refs/heads/main;hb=main