Source: python-django-swapper Version: 1.3.0-1 Severity: serious Tags: ftbfs Justification: FTBFS User: debian-pyt...@lists.debian.org Usertags: setup.py-test
Dear maintainer, During a test rebuild for packages affected by setuptools 72, python-django-swapper failed to rebuild. FWIW: I think these bugs were all caused by setuptools v72 dropping support for the "test" command, so dh-python has fallen back to distutils / other test plugins. If you're trying to figure out how to fix the bug, look at the implementation of test_suite in setup.py to see what magic it does for test setup. ------------------------------------------------------------------------------- [...] dh_auto_build -O--buildsystem=pybuild I: pybuild base:311: /usr/bin/python3 setup.py build /usr/lib/python3/dist-packages/setuptools/__init__.py:88: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject section = defn.get("tool", {})[tool_name] ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ KeyError: 'setuptools_scm' running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-swapper/build/swapper copying swapper/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-swapper/build/swapper dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-swapper/build; python3.12 -m unittest discover -v Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/lib/python3.12/unittest/__main__.py", line 18, in <module> main(module=None) File "/usr/lib/python3.12/unittest/main.py", line 104, in __init__ self.parseArgs(argv) File "/usr/lib/python3.12/unittest/main.py", line 130, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.12/unittest/main.py", line 253, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.12/unittest/main.py", line 160, in createTests self.test = loader.discover(self.start, self.pattern, self.top) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/loader.py", line 310, in discover tests = list(self._find_tests(start_dir, pattern)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/loader.py", line 366, in _find_tests tests, should_recurse = self._find_test_path(full_path, pattern) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/loader.py", line 442, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/loader.py", line 103, in loadTestsFromModule isinstance(obj, type) File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 295, in __getattribute__ value = super().__getattribute__(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 266, in inner self._setup() File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 82, in _setup raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: Requested settings, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-swapper/build; python3.12 -m unittest discover -v dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit code 13 make: *** [debian/rules:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-08-28T05:12:28Z ------------------------------------------------------------------------------- The above is just how the build ends and not necessarily the most relevant part. If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/552992/ About the archive rebuild: The build was made on debusine.debian.net, using sbuild. You can find the build task here: https://debusine.debian.net/work-request/9830/ If this is really a bug in one of the build-depends, please use reassign and affects, so that this is still visible in the BTS web page for this package. Thanks, Stefano