Package: src:python-django-bootstrap-form
Version: 3.4-8
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --buildsystem=pybuild --with python3,sphinxdoc
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build
running build_py
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform
copying bootstrapform/config.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform
copying bootstrapform/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform
copying bootstrapform/models.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform
copying bootstrapform/tests.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform
copying bootstrapform/meta.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templatetags
copying bootstrapform/templatetags/bootstrap.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templatetags
copying bootstrapform/templatetags/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templatetags
running egg_info
creating django_bootstrap_form.egg-info
writing django_bootstrap_form.egg-info/PKG-INFO
writing dependency_links to django_bootstrap_form.egg-info/dependency_links.txt
writing requirements to django_bootstrap_form.egg-info/requires.txt
writing top-level names to django_bootstrap_form.egg-info/top_level.txt
writing manifest file 'django_bootstrap_form.egg-info/SOURCES.txt'
reading manifest file 'django_bootstrap_form.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'django_bootstrap_form.egg-info/SOURCES.txt'
/usr/lib/python3/dist-packages/setuptools/command/build_py.py:218: _Warning: 
Package 'bootstrapform.templates.bootstrapform' is absent from the `packages` 
configuration.
!!

        
********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'bootstrapform.templates.bootstrapform' as an 
importable package[^1],
        but it is absent from setuptools' `packages` configuration.

        This leads to an ambiguous overall configuration. If you want to 
distribute this
        package, please make sure that 'bootstrapform.templates.bootstrapform' 
is explicitly added
        to the `packages` configuration field.

        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).

        You can read more about "package discovery" on setuptools documentation 
page:

        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

        If you don't want 'bootstrapform.templates.bootstrapform' to be 
distributed and are
        already explicitly excluding 'bootstrapform.templates.bootstrapform' via
        `find_namespace_packages(...)/find_namespace` or 
`find_packages(...)/find`,
        you can try to use `exclude_package_data`, or 
`include-package-data=False` in
        combination with a more fine grained `package-data` configuration.

        You can read more about "package data files" on setuptools 
documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        
********************************************************************************

!!
  check.warn(importable)
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templates
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templates/bootstrapform
copying bootstrapform/templates/bootstrapform/field.html -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templates/bootstrapform
copying bootstrapform/templates/bootstrapform/form.html -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templates/bootstrapform
copying bootstrapform/templates/bootstrapform/formset.html -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templates/bootstrapform
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build; python3.12 
-m unittest discover -v
bootstrapform.tests (unittest.loader._FailedTest.bootstrapform.tests) ... ERROR

======================================================================
ERROR: bootstrapform.tests (unittest.loader._FailedTest.bootstrapform.tests)
----------------------------------------------------------------------
ImportError: Failed to import test module: bootstrapform.tests
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in 
_get_module_from_name
    __import__(name)
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/tests.py",
 line 9, in <module>
    from .templatetags import bootstrap
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/templatetags/bootstrap.py",
 line 7, in <module>
    from bootstrapform import config
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/build/bootstrapform/config.py",
 line 4, in <module>
    BOOTSTRAP_COLUMN_COUNT = getattr(settings, 'BOOTSTRAP_COLUMN_COUNT', 12)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 102, in 
__getattr__
    self._setup(name)
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 82, in 
_setup
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Requested setting 
BOOTSTRAP_COLUMN_COUNT, but settings are not configured. You must either define 
the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() 
before accessing settings.


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-bootstrapform/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:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202408/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

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.

Reply via email to