Source: diskcache
Version: 5.4.0-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:291: python3.11 setup.py config 
> Warning: 'classifiers' should be a list, got type 'tuple'
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:291: /usr/bin/python3 setup.py build 
> Warning: 'classifiers' should be a list, got type 'tuple'
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/djangocache.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/core.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/recipes.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/cli.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/fanout.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
> copying diskcache/persistent.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build/diskcache
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:314: cp -a docs 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build
> I: pybuild base:291: /usr/bin/python3 -c "import setuptools, runpy; 
> runpy.run_path('setup.py')" bdist_wheel 
> Warning: 'classifiers' should be a list, got type 'tuple'
> running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib
> creating build/lib/diskcache
> copying diskcache/djangocache.py -> build/lib/diskcache
> copying diskcache/core.py -> build/lib/diskcache
> copying diskcache/recipes.py -> build/lib/diskcache
> copying diskcache/__init__.py -> build/lib/diskcache
> copying diskcache/cli.py -> build/lib/diskcache
> copying diskcache/fanout.py -> build/lib/diskcache
> copying diskcache/persistent.py -> build/lib/diskcache
> /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: 
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
> !!
> 
>         
> ********************************************************************************
>         Please avoid running ``setup.py`` directly.
>         Instead, use pypa/build, pypa/installer or other
>         standards-based tools.
> 
>         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html 
> for details.
>         
> ********************************************************************************
> 
> !!
>   self.initialize_options()
> installing to build/bdist.linux-x86_64/wheel
> running install
> running install_lib
> creating build/bdist.linux-x86_64
> creating build/bdist.linux-x86_64/wheel
> creating build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/djangocache.py -> 
> build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/core.py -> 
> build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/recipes.py -> 
> build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/__init__.py -> 
> build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/cli.py -> build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/fanout.py -> 
> build/bdist.linux-x86_64/wheel/diskcache
> copying build/lib/diskcache/persistent.py -> 
> build/bdist.linux-x86_64/wheel/diskcache
> running install_egg_info
> running egg_info
> creating diskcache.egg-info
> writing diskcache.egg-info/PKG-INFO
> writing dependency_links to diskcache.egg-info/dependency_links.txt
> writing top-level names to diskcache.egg-info/top_level.txt
> writing manifest file 'diskcache.egg-info/SOURCES.txt'
> reading manifest file 'diskcache.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'diskcache.egg-info/SOURCES.txt'
> Copying diskcache.egg-info to 
> build/bdist.linux-x86_64/wheel/diskcache-5.4.0.egg-info
> running install_scripts
> creating build/bdist.linux-x86_64/wheel/diskcache-5.4.0.dist-info/WHEEL
> creating 'dist/diskcache-5.4.0-py3-none-any.whl' and adding 
> 'build/bdist.linux-x86_64/wheel' to it
> adding 'diskcache/__init__.py'
> adding 'diskcache/cli.py'
> adding 'diskcache/core.py'
> adding 'diskcache/djangocache.py'
> adding 'diskcache/fanout.py'
> adding 'diskcache/persistent.py'
> adding 'diskcache/recipes.py'
> adding 'diskcache-5.4.0.dist-info/LICENSE'
> adding 'diskcache-5.4.0.dist-info/METADATA'
> adding 'diskcache-5.4.0.dist-info/WHEEL'
> adding 'diskcache-5.4.0.dist-info/top_level.txt'
> adding 'diskcache-5.4.0.dist-info/RECORD'
> removing build/bdist.linux-x86_64/wheel
> I: pybuild base:291: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build; tox -c 
> /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py311 -x 
> testenv.passenv+=_PYTHON_HOST_PLATFORM --installpkg 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/diskcache-5.4.0-py3-none-any.whl
>  
> py311: install_deps .pybuild/cpython3_3.11_diskcache/build> python -I -m pip 
> install 'django>=3.2' pytest pytest-cov pytest-django pytest-xdist
> py311: install_package .pybuild/cpython3_3.11_diskcache/build> python -I -m 
> pip install --force-reinstall --no-deps 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/diskcache-5.4.0-py3-none-any.whl
> py311: commands[0] .pybuild/cpython3_3.11_diskcache/build> 
> .tox/py311/bin/python -m pytest
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> cachedir: .tox/py311/.pytest_cache
> django: settings: tests.settings (from env)
> rootdir: /<<PKGBUILDDIR>>
> configfile: tox.ini
> plugins: cov-4.1.0, xdist-3.3.1, django-4.5.2
> created: 8/8 workers
> 8 workers [245 items]
> 
> ...........................................................F............ [ 
> 29%]
> ........................................................................ [ 
> 58%]
> ........................................................................ [ 
> 88%]
> .............................                                            
> [100%]
> =================================== FAILURES 
> ===================================
> ______________ DiskCacheTests.test_cache_write_unpicklable_object 
> ______________
> [gw1] linux -- Python 3.11.5 /<<PKGBUILDDIR>>/.tox/py311/bin/python
> 
> self = <tests.test_djangocache.DiskCacheTests 
> testMethod=test_cache_write_unpicklable_object>
> 
>     def test_cache_write_unpicklable_object(self):
>         fetch_middleware = FetchFromCacheMiddleware(empty_response)
> >       fetch_middleware.cache = cache
> E       AttributeError: property 'cache' of 'FetchFromCacheMiddleware' object 
> has no setter
> 
> tests/test_djangocache.py:873: AttributeError
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:267: 
> RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with 
> Django 5.0, localized formatting of data will always be enabled. For example 
> Django will display numbers and dates using the format of the current locale.
>     warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> 
> ---------- coverage: platform linux, python 3.11.5-final-0 -----------
> Name                       Stmts   Miss Branch BrPart  Cover   Missing
> ----------------------------------------------------------------------
> diskcache/__init__.py         14      0      0      0   100%
> diskcache/cli.py               0      0      0      0   100%
> diskcache/core.py            928      3    421     13    99%   234->exit, 
> 280->exit, 364->367, 371->373, 449->456, 672, 1190->1192, 1202->1204, 
> 1325->exit, 1593->1567, 1707->1682, 1878->1881, 2438, 2447
> diskcache/djangocache.py      99      0     14      1    99%   436->446
> diskcache/fanout.py          219      0     40      0   100%
> diskcache/persistent.py      283      0     98      3    99%   33->36, 
> 147->155, 1070->exit
> diskcache/recipes.py         172      0     42      0   100%
> ----------------------------------------------------------------------
> TOTAL                       1715      3    615     17    99%
> 
> Required test coverage of 98% reached. Total coverage: 99.14%
> =========================== short test summary info 
> ============================
> FAILED 
> tests/test_djangocache.py::DiskCacheTests::test_cache_write_unpicklable_object
> ================== 1 failed, 244 passed, 9 warnings in 20.66s 
> ==================
> py311: exit 1 (21.43 seconds) /<<PKGBUILDDIR>>> .tox/py311/bin/python -m 
> pytest pid=1835471
>   py311: FAIL code 1 (24.00=setup[2.57]+cmd[21.43] seconds)
>   evaluation failed :( (24.08 seconds)
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/build; tox -c 
> /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py311 -x 
> testenv.passenv+=_PYTHON_HOST_PLATFORM --installpkg 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_diskcache/diskcache-5.4.0-py3-none-any.whl
>  
> dh_auto_test: error: pybuild --test --test-tox -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/diskcache_5.4.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to