Source: python-ocspbuilder
Version: 0.10.2-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 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
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:110: Building wheel for python3.12 with "build" 
> module
> I: pybuild base:310: python3.12 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ocspbuilder 
> * Building wheel...
> running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib
> creating build/lib/ocspbuilder
> copying ocspbuilder/__init__.py -> build/lib/ocspbuilder
> 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/ocspbuilder
> copying build/lib/ocspbuilder/__init__.py -> 
> build/bdist.linux-x86_64/wheel/ocspbuilder
> running install_egg_info
> running egg_info
> creating ocspbuilder.egg-info
> writing ocspbuilder.egg-info/PKG-INFO
> writing dependency_links to ocspbuilder.egg-info/dependency_links.txt
> writing requirements to ocspbuilder.egg-info/requires.txt
> writing top-level names to ocspbuilder.egg-info/top_level.txt
> writing manifest file 'ocspbuilder.egg-info/SOURCES.txt'
> reading manifest file 'ocspbuilder.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'ocspbuilder.egg-info/SOURCES.txt'
> Copying ocspbuilder.egg-info to 
> build/bdist.linux-x86_64/wheel/ocspbuilder-0.10.2.egg-info
> running install_scripts
> creating build/bdist.linux-x86_64/wheel/ocspbuilder-0.10.2.dist-info/WHEEL
> creating 
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ocspbuilder/.tmp-cgzi2y50/ocspbuilder-0.10.2-py3-none-any.whl'
>  and adding 'build/bdist.linux-x86_64/wheel' to it
> adding 'ocspbuilder/__init__.py'
> adding 'ocspbuilder-0.10.2.dist-info/LICENSE'
> adding 'ocspbuilder-0.10.2.dist-info/METADATA'
> adding 'ocspbuilder-0.10.2.dist-info/WHEEL'
> adding 'ocspbuilder-0.10.2.dist-info/top_level.txt'
> adding 'ocspbuilder-0.10.2.dist-info/RECORD'
> removing build/bdist.linux-x86_64/wheel
> Successfully built ocspbuilder-0.10.2-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.12 with 
> "installer" module
> I: pybuild plugin_pyproject:110: Building wheel for python3.11 with "build" 
> module
> I: pybuild base:310: python3.11 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder 
> * Building wheel...
> running bdist_wheel
> running build
> running build_py
> installing to build/bdist.linux-x86_64/wheel
> running install
> running install_lib
> creating build/bdist.linux-x86_64/wheel
> creating build/bdist.linux-x86_64/wheel/ocspbuilder
> copying build/lib/ocspbuilder/__init__.py -> 
> build/bdist.linux-x86_64/wheel/ocspbuilder
> running install_egg_info
> running egg_info
> writing ocspbuilder.egg-info/PKG-INFO
> writing dependency_links to ocspbuilder.egg-info/dependency_links.txt
> writing requirements to ocspbuilder.egg-info/requires.txt
> writing top-level names to ocspbuilder.egg-info/top_level.txt
> reading manifest file 'ocspbuilder.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'ocspbuilder.egg-info/SOURCES.txt'
> Copying ocspbuilder.egg-info to 
> build/bdist.linux-x86_64/wheel/ocspbuilder-0.10.2.egg-info
> running install_scripts
> creating build/bdist.linux-x86_64/wheel/ocspbuilder-0.10.2.dist-info/WHEEL
> creating 
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder/.tmp-n6uimoh9/ocspbuilder-0.10.2-py3-none-any.whl'
>  and adding 'build/bdist.linux-x86_64/wheel' to it
> adding 'ocspbuilder/__init__.py'
> adding 'ocspbuilder-0.10.2.dist-info/LICENSE'
> adding 'ocspbuilder-0.10.2.dist-info/METADATA'
> adding 'ocspbuilder-0.10.2.dist-info/WHEEL'
> adding 'ocspbuilder-0.10.2.dist-info/top_level.txt'
> adding 'ocspbuilder-0.10.2.dist-info/RECORD'
> removing build/bdist.linux-x86_64/wheel
> Successfully built ocspbuilder-0.10.2-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with 
> "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ocspbuilder/build; python3.12 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 9 items
> 
> tests/test_ocsp_request_builder.py ..                                    [ 
> 22%]
> tests/test_ocsp_response_builder.py ...F...                              
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________ OCSPResponseBuilderTests.test_build_no_certificate 
> ______________
> 
> self = <tests.test_ocsp_response_builder.OCSPResponseBuilderTests 
> testMethod=test_build_no_certificate>
> 
>     def test_build_no_certificate(self):
>         issuer_key = asymmetric.load_private_key(os.path.join(fixtures_dir, 
> 'test.key'))
>         issuer_cert = asymmetric.load_certificate(os.path.join(fixtures_dir, 
> 'test.crt'))
>         subject_cert = asymmetric.load_certificate(os.path.join(fixtures_dir, 
> 'test-inter.crt'))
>     
> >       with self.assertRaisesRegexp(ValueError, 'must be set if the 
> > response_status is "successful"'):
> E       AttributeError: 'OCSPResponseBuilderTests' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> tests/test_ocsp_response_builder.py:65: AttributeError
> =========================== short test summary info 
> ============================
> FAILED 
> tests/test_ocsp_response_builder.py::OCSPResponseBuilderTests::test_build_no_certificate
> ========================= 1 failed, 8 passed in 0.17s 
> ==========================
> E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ocspbuilder/build; python3.12 -m 
> pytest tests
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder/build; python3.11 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 9 items
> 
> tests/test_ocsp_request_builder.py ..                                    [ 
> 22%]
> tests/test_ocsp_response_builder.py .......                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> .pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py::OCSPResponseBuilderTests::test_build_no_certificate
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py:65:
>  DeprecationWarning: Please use assertRaisesRegex instead.
>     with self.assertRaisesRegexp(ValueError, 'must be set if the 
> response_status is "successful"'):
> 
> .pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py::OCSPResponseBuilderTests::test_build_no_certificate
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py:70:
>  DeprecationWarning: Please use assertRaisesRegex instead.
>     with self.assertRaisesRegexp(ValueError, 'must be set if the 
> response_status is "successful"'):
> 
> .pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py::OCSPResponseBuilderTests::test_build_no_certificate
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py:75:
>  DeprecationWarning: Please use assertRaisesRegex instead.
>     with self.assertRaisesRegexp(ValueError, 'must be set if the 
> response_status is "successful"'):
> 
> .pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py::OCSPResponseBuilderTests::test_build_no_certificate
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ocspbuilder/build/tests/test_ocsp_response_builder.py:79:
>  DeprecationWarning: Please use assertRaisesRegex instead.
>     with self.assertRaisesRegexp(ValueError, 'must be set if the 
> response_status is "successful"'):
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ======================== 9 passed, 4 warnings in 0.16s 
> =========================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
> 3.11" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-ocspbuilder_0.10.2-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&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