Package: src:python-hug
Version: 2.6.0-7
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
        pybuild --clean -i python{version} -p "3.12 3.13"
I: pybuild base:311: python3.12 setup.py clean 
/usr/lib/python3/dist-packages/setuptools/__init__.py:94: _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`.
        
********************************************************************************

[... snipped ...]

x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/introspect.o 
-L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/introspect.cpython-313-x86_64-linux-gnu.so
building 'hug.types' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c hug/types.c 
-o build/temp.linux-x86_64-cpython-313/hug/types.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/types.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/types.cpython-313-x86_64-linux-gnu.so
building 'hug.json_module' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/json_module.c -o build/temp.linux-x86_64-cpython-313/hug/json_module.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/json_module.o 
-L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/json_module.cpython-313-x86_64-linux-gnu.so
building 'hug._version' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/_version.c -o build/temp.linux-x86_64-cpython-313/hug/_version.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/_version.o -L/usr/lib/x86_64-linux-gnu 
-o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/_version.cpython-313-x86_64-linux-gnu.so
building 'hug.validate' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/validate.c -o build/temp.linux-x86_64-cpython-313/hug/validate.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/validate.o -L/usr/lib/x86_64-linux-gnu 
-o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/validate.cpython-313-x86_64-linux-gnu.so
building 'hug.transform' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/transform.c -o build/temp.linux-x86_64-cpython-313/hug/transform.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/transform.o -L/usr/lib/x86_64-linux-gnu 
-o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/transform.cpython-313-x86_64-linux-gnu.so
building 'hug.store' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c hug/store.c 
-o build/temp.linux-x86_64-cpython-313/hug/store.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/store.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/store.cpython-313-x86_64-linux-gnu.so
building 'hug.redirect' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/redirect.c -o build/temp.linux-x86_64-cpython-313/hug/redirect.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/redirect.o -L/usr/lib/x86_64-linux-gnu 
-o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/redirect.cpython-313-x86_64-linux-gnu.so
building 'hug.decorators' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/decorators.c -o build/temp.linux-x86_64-cpython-313/hug/decorators.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/decorators.o 
-L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/decorators.cpython-313-x86_64-linux-gnu.so
building 'hug.__main__' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/__main__.c -o build/temp.linux-x86_64-cpython-313/hug/__main__.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/__main__.o -L/usr/lib/x86_64-linux-gnu 
-o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/__main__.cpython-313-x86_64-linux-gnu.so
building 'hug._empty' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c hug/_empty.c 
-o build/temp.linux-x86_64-cpython-313/hug/_empty.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/_empty.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/_empty.cpython-313-x86_64-linux-gnu.so
building 'hug.api' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c hug/api.c -o 
build/temp.linux-x86_64-cpython-313/hug/api.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/api.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/api.cpython-313-x86_64-linux-gnu.so
building 'hug.middleware' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/middleware.c -o build/temp.linux-x86_64-cpython-313/hug/middleware.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/middleware.o 
-L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/middleware.cpython-313-x86_64-linux-gnu.so
building 'hug.output_format' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/output_format.c -o build/temp.linux-x86_64-cpython-313/hug/output_format.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/output_format.o 
-L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/output_format.cpython-313-x86_64-linux-gnu.so
building 'hug.test' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c hug/test.c 
-o build/temp.linux-x86_64-cpython-313/hug/test.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/test.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/test.cpython-313-x86_64-linux-gnu.so
building 'hug.this' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c hug/this.c 
-o build/temp.linux-x86_64-cpython-313/hug/this.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/this.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/this.cpython-313-x86_64-linux-gnu.so
building 'hug.input_format' extension
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
hug/input_format.c -o build/temp.linux-x86_64-cpython-313/hug/input_format.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/hug/input_format.o 
-L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/hug/input_format.cpython-313-x86_64-linux-gnu.so
   dh_auto_test -O--buildsystem=pybuild
        pybuild --test --test-pytest -i python{version} -p "3.12 3.13"
I: pybuild pybuild:308: cp -a README.md artwork hug examples 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build; 
python3.12 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
configfile: setup.cfg
plugins: typeguard-4.4.1, cov-5.0.0
collected 474 items

tests/test_api.py .........                                              [  1%]
tests/test_async.py .....                                                [  2%]
tests/test_authentication.py ....s                                       [  4%]
tests/test_context_factory.py ...s.....s..ssssss                         [  7%]
tests/test_coroutines.py .s...                                           [  8%]
tests/test_decorators.py .........s......s..s....ss..................... [ 18%]
........................s..s..........s.....                             [ 28%]
tests/test_directives.py .....s........                                  [ 31%]
tests/test_documentation.py ....                                         [ 31%]
tests/test_exceptions.py .                                               [ 32%]
tests/test_full_request.py s                                             [ 32%]
tests/test_global_context.py .                                           [ 32%]
tests/test_input_format.py .....                                         [ 33%]
tests/test_interface.py ....                                             [ 34%]
tests/test_introspect.py .......                                         [ 35%]
tests/test_main.py .                                                     [ 36%]
tests/test_middleware.py ...                                             [ 36%]
tests/test_output_format.py .s............F..                            [ 40%]
tests/test_redirect.py ......                                            [ 41%]
tests/test_route.py ...s............                                     [ 44%]
tests/test_routing.py .................................................. [ 55%]
........................................................................ [ 70%]
..........................ssssssssssssssssssssssssssssssssssssssss       [ 84%]
tests/test_store.py .                                                    [ 84%]
tests/test_test.py .                                                     [ 85%]
tests/test_this.py .                                                     [ 85%]
tests/test_transform.py ....                                             [ 86%]
tests/test_types.py .............................s.s....s                [ 93%]
tests/test_use.py ............s............s                             [ 99%]
tests/test_validate.py ...                                               [100%]

=================================== FAILURES ===================================
_______________________ test_json_converter_numpy_types ________________________

    def test_json_converter_numpy_types():
        """Ensure that numpy-specific data types (array, int, float) are 
properly supported in JSON output."""
        ex_int = numpy.int_(9)
        ex_np_array = numpy.array([1, 2, 3, 4, 5])
        ex_np_int_array = numpy.int_([5, 4, 3])
        ex_np_float = float(0.5)
    
        assert 9 is hug.output_format._json_converter(ex_int)
        assert [1, 2, 3, 4, 5] == hug.output_format._json_converter(ex_np_array)
        assert [5, 4, 3] == hug.output_format._json_converter(ex_np_int_array)
        assert 0.5 == hug.output_format._json_converter(ex_np_float)
    
        # Some type names are merely shorthands.
        # The following shorthands for built-in types are excluded: numpy.bool, 
numpy.int, numpy.float.
>       np_bool_types = [numpy.bool_, numpy.bool8]

tests/test_output_format.py:379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'bool8'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards", name=None)
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
            raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
    
        if attr == "chararray":
            warnings.warn(
                "`np.chararray` is deprecated and will be removed from "
                "the main namespace in the future. Use an array with a string "
                "or bytes dtype instead.", DeprecationWarning, stacklevel=2)
            import numpy.char as char
            return char.chararray
    
>       raise AttributeError("module {!r} has no attribute "
                             "{!r}".format(__name__, attr))
E       AttributeError: module 'numpy' has no attribute 'bool8'. Did you mean: 
'bool'?

/usr/lib/python3/dist-packages/numpy/__init__.py:414: AttributeError
=============================== warnings summary ===============================
hug/__init__.py:36
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build/hug/__init__.py:36: 
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    from hug import (

tests/test_async.py:27
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build/tests/test_async.py:27: 
DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

.pybuild/cpython3_3.12_hug/build/tests/test_async.py: 4 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py: 3 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_coroutines.py: 3 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_decorators.py: 56 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_directives.py: 9 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_global_context.py: 1 warning
.pybuild/cpython3_3.12_hug/build/tests/test_interface.py: 1 warning
.pybuild/cpython3_3.12_hug/build/tests/test_middleware.py: 3 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py: 1 warning
.pybuild/cpython3_3.12_hug/build/tests/test_route.py: 5 warnings
.pybuild/cpython3_3.12_hug/build/tests/test_types.py: 4 warnings
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: Call 
to deprecated function __init__(...). API class may be removed in a future 
release, use falcon.App instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py::test_basic_auth
.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py::test_api_key
.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py::test_token_auth
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: 
Calls to HTTPUnauthorized.__init__(...) with positional args are deprecated. 
Please specify them as keyword arguments instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py::test_basic_auth
.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py::test_api_key
.pybuild/cpython3_3.12_hug/build/tests/test_authentication.py::test_token_auth
.pybuild/cpython3_3.12_hug/build/tests/test_decorators.py::test_range_request
.pybuild/cpython3_3.12_hug/build/tests/test_decorators.py::test_method_routing
.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py::test_accept_with_http_errors
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: Call 
to deprecated property body. Please use text instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.12_hug/build/tests/test_middleware.py::test_logging_middleware
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build/tests/test_middleware.py:92: 
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    hug.test.get(api, "/test")

.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py::test_on_content_type
.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py::test_accept
.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py::test_suffix
.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py::test_prefix
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: 
Calls to HTTPNotAcceptable.__init__(...) with positional args are deprecated. 
Please specify them as keyword arguments instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py::test_accept_with_http_errors
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build/tests/test_output_format.py:312:
 DeprecatedWarning: Calls to HTTPInternalServerError.__init__(...) with 
positional args are deprecated. Please specify them as keyword arguments 
instead.
    response = hug.test.get(api, "/500")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_output_format.py::test_json_converter_numpy_types - Attribu...
=========== 1 failed, 406 passed, 67 skipped, 107 warnings in 1.52s ============
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_hug/build; python3.12 -m pytest tests
I: pybuild pybuild:308: cp -a README.md artwork hug examples 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build; 
python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
configfile: setup.cfg
plugins: typeguard-4.4.1, cov-5.0.0
collected 474 items

tests/test_api.py .........                                              [  1%]
tests/test_async.py .....                                                [  2%]
tests/test_authentication.py ....s                                       [  4%]
tests/test_context_factory.py ...s.....s..ssssss                         [  7%]
tests/test_coroutines.py .s...                                           [  8%]
tests/test_decorators.py .........s......s..s....ss..................... [ 18%]
........................s..s..........s.....                             [ 28%]
tests/test_directives.py .....s........                                  [ 31%]
tests/test_documentation.py ....                                         [ 31%]
tests/test_exceptions.py .                                               [ 32%]
tests/test_full_request.py s                                             [ 32%]
tests/test_global_context.py .                                           [ 32%]
tests/test_input_format.py .....                                         [ 33%]
tests/test_interface.py ....                                             [ 34%]
tests/test_introspect.py .......                                         [ 35%]
tests/test_main.py .                                                     [ 36%]
tests/test_middleware.py ...                                             [ 36%]
tests/test_output_format.py .s............F..                            [ 40%]
tests/test_redirect.py ......                                            [ 41%]
tests/test_route.py ...s............                                     [ 44%]
tests/test_routing.py .................................................. [ 55%]
........................................................................ [ 70%]
..........................ssssssssssssssssssssssssssssssssssssssss       [ 84%]
tests/test_store.py .                                                    [ 84%]
tests/test_test.py .                                                     [ 85%]
tests/test_this.py .                                                     [ 85%]
tests/test_transform.py ....                                             [ 86%]
tests/test_types.py .............................s.s....s                [ 93%]
tests/test_use.py ............s............s                             [ 99%]
tests/test_validate.py ...                                               [100%]

=================================== FAILURES ===================================
_______________________ test_json_converter_numpy_types ________________________

    def test_json_converter_numpy_types():
        """Ensure that numpy-specific data types (array, int, float) are 
properly supported in JSON output."""
        ex_int = numpy.int_(9)
        ex_np_array = numpy.array([1, 2, 3, 4, 5])
        ex_np_int_array = numpy.int_([5, 4, 3])
        ex_np_float = float(0.5)
    
        assert 9 is hug.output_format._json_converter(ex_int)
        assert [1, 2, 3, 4, 5] == hug.output_format._json_converter(ex_np_array)
        assert [5, 4, 3] == hug.output_format._json_converter(ex_np_int_array)
        assert 0.5 == hug.output_format._json_converter(ex_np_float)
    
        # Some type names are merely shorthands.
        # The following shorthands for built-in types are excluded: numpy.bool, 
numpy.int, numpy.float.
>       np_bool_types = [numpy.bool_, numpy.bool8]

tests/test_output_format.py:379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'bool8'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards", name=None)
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
            raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
    
        if attr == "chararray":
            warnings.warn(
                "`np.chararray` is deprecated and will be removed from "
                "the main namespace in the future. Use an array with a string "
                "or bytes dtype instead.", DeprecationWarning, stacklevel=2)
            import numpy.char as char
            return char.chararray
    
>       raise AttributeError("module {!r} has no attribute "
                             "{!r}".format(__name__, attr))
E       AttributeError: module 'numpy' has no attribute 'bool8'. Did you mean: 
'bool'?

/usr/lib/python3/dist-packages/numpy/__init__.py:414: AttributeError
=============================== warnings summary ===============================
tests/test_async.py:27
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/tests/test_async.py:27: 
DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

.pybuild/cpython3_3.13_hug/build/tests/test_async.py: 4 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py: 3 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_coroutines.py: 3 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_decorators.py: 56 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_directives.py: 9 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_global_context.py: 1 warning
.pybuild/cpython3_3.13_hug/build/tests/test_interface.py: 1 warning
.pybuild/cpython3_3.13_hug/build/tests/test_middleware.py: 3 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py: 1 warning
.pybuild/cpython3_3.13_hug/build/tests/test_route.py: 5 warnings
.pybuild/cpython3_3.13_hug/build/tests/test_types.py: 4 warnings
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: Call 
to deprecated function __init__(...). API class may be removed in a future 
release, use falcon.App instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py::test_basic_auth
.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py::test_api_key
.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py::test_token_auth
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: 
Calls to HTTPUnauthorized.__init__(...) with positional args are deprecated. 
Please specify them as keyword arguments instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py::test_basic_auth
.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py::test_api_key
.pybuild/cpython3_3.13_hug/build/tests/test_authentication.py::test_token_auth
.pybuild/cpython3_3.13_hug/build/tests/test_decorators.py::test_range_request
.pybuild/cpython3_3.13_hug/build/tests/test_decorators.py::test_method_routing
.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py::test_accept_with_http_errors
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: Call 
to deprecated property body. Please use text instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.13_hug/build/tests/test_middleware.py::test_logging_middleware
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/tests/test_middleware.py:92: 
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    hug.test.get(api, "/test")

.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py::test_on_content_type
.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py::test_accept
.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py::test_suffix
.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py::test_prefix
  /usr/lib/python3/dist-packages/_pytest/python.py:159: DeprecatedWarning: 
Calls to HTTPNotAcceptable.__init__(...) with positional args are deprecated. 
Please specify them as keyword arguments instead.
    result = testfunction(**testargs)

.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py::test_accept_with_http_errors
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build/tests/test_output_format.py:312:
 DeprecatedWarning: Calls to HTTPInternalServerError.__init__(...) with 
positional args are deprecated. Please specify them as keyword arguments 
instead.
    response = hug.test.get(api, "/500")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_output_format.py::test_json_converter_numpy_types - Attribu...
=========== 1 failed, 406 passed, 67 skipped, 106 warnings in 1.37s ============
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_hug/build; python3.13 -m pytest tests
        rm -fr -- /tmp/dh-xdg-rundir-VdWoYqux
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
3.13" returned exit code 13
make: *** [debian/rules:12: 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/202502/

About the archive rebuild: The build was made on virtual machines 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 add an affects on src:python-hug, so that this is still
visible in the BTS web page for this package.

Thanks.

Reply via email to