Bug 51663 - migrate from setuptools' test command
Summary: migrate from setuptools' test command
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: hotdoc (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-08 15:54 MSK by Stanislav Levin
Modified: 2025-05-13 12:19 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Levin 2024-10-08 15:54:12 MSK
`setup.py test` is deprecated since setuptools 41.5.0:                           
https://setuptools.pypa.io/en/latest/history.html#v41-5-0                        
                                                                                 
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.       
                                                                                 
See for details:                                                                 
https://bugzilla.altlinux.org/50996

This is how upstream runs tests:

https://github.com/hotdoc/hotdoc/blob/8c1cc997f5bc16e068710a8a8121f79ac25cbcce/.github/workflows/python.yml#L35
> python3 -m unittest
Comment 1 Stanislav Levin 2024-10-08 15:58:47 MSK
According to beehive logs:
https://git.altlinux.org/beehive/logs/Sisyphus/x86_64/latest/success/hotdoc-0.17-alt1

- recompilation happens (waste of time)
- result is ignored (FAILED (errors=11) exit 0)
Comment 2 Stanislav Levin 2025-05-13 12:19:06 MSK
The package has been removed from sisyphus.