Skip to content
Snippets Groups Projects
  • James McCoy's avatar
    03cc78f1
    Switch from "setup.py test" to "unittest discover" · 03cc78f1
    James McCoy authored
    
    Setuptools 72 removed support for the test command, so remove the
    test_suite parameter from setuptools.setup() call.
    
    Since we generate devscripts/__init__.py in setup.py, add a new make
    target to ensure the file is generated, by calling "setup.py build",
    before running the tests. This also requires delaying the
    devscripts.test import until after the __init__.py file is written.
    
    Closes: #1079650
    Signed-off-by: default avatarJames McCoy <jamessan@debian.org>
    03cc78f1
    History
    Switch from "setup.py test" to "unittest discover"
    James McCoy authored
    
    Setuptools 72 removed support for the test command, so remove the
    test_suite parameter from setuptools.setup() call.
    
    Since we generate devscripts/__init__.py in setup.py, add a new make
    target to ensure the file is generated, by calling "setup.py build",
    before running the tests. This also requires delaying the
    devscripts.test import until after the __init__.py file is written.
    
    Closes: #1079650
    Signed-off-by: default avatarJames McCoy <jamessan@debian.org>