Source: python-flask-httpauth
Version: 4.5.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240115 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> I: pybuild base:305: /usr/bin/python3.12 setup.py build 
> running build
> running build_py
> copying src/flask_httpauth.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-httpauth/build
> running egg_info
> creating src/Flask_HTTPAuth.egg-info
> writing src/Flask_HTTPAuth.egg-info/PKG-INFO
> writing dependency_links to src/Flask_HTTPAuth.egg-info/dependency_links.txt
> writing requirements to src/Flask_HTTPAuth.egg-info/requires.txt
> writing top-level names to src/Flask_HTTPAuth.egg-info/top_level.txt
> writing manifest file 'src/Flask_HTTPAuth.egg-info/SOURCES.txt'
> reading manifest file 'src/Flask_HTTPAuth.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> adding license file 'AUTHORS'
> writing manifest file 'src/Flask_HTTPAuth.egg-info/SOURCES.txt'
> I: pybuild base:305: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying src/flask_httpauth.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_flask-httpauth/build
> running egg_info
> writing src/Flask_HTTPAuth.egg-info/PKG-INFO
> writing dependency_links to src/Flask_HTTPAuth.egg-info/dependency_links.txt
> writing requirements to src/Flask_HTTPAuth.egg-info/requires.txt
> writing top-level names to src/Flask_HTTPAuth.egg-info/top_level.txt
> reading manifest file 'src/Flask_HTTPAuth.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> adding license file 'AUTHORS'
> writing manifest file 'src/Flask_HTTPAuth.egg-info/SOURCES.txt'
> PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html # HTML generator
> Running Sphinx v7.2.6
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> writing output... 
> building [html]: targets for 1 source files that are out of date
> updating environment: [new config] 1 added, 0 changed, 0 removed
> reading sources... [100%] index
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> copying assets... copying static files... done
> copying extra files... done
> done
> writing output... [100%] index
> 
> generating indices... genindex py-modindex done
> writing additional pages... search done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded.
> 
> The HTML pages are in build/html.
> PYTHONPATH=. python3 -m sphinx -N -bman docs/ build/man # Manpage generator
> Running Sphinx v7.2.6
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> writing output... 
> building [man]: all manpages
> updating environment: [new config] 1 added, 0 changed, 0 removed
> reading sources... [100%] index
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> writing... flask-httpauth.3 { } done
> build succeeded.
> 
> The manual pages are in build/man.
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:305: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-httpauth/build; python3.12 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.4, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 108 items
> 
> tests/test_basic_custom_realm.py ...                                     [  
> 2%]
> tests/test_basic_get_password.py .....                                   [  
> 7%]
> tests/test_basic_hashed_password.py ...                                  [ 
> 10%]
> tests/test_basic_verify_password.py ........                             [ 
> 17%]
> tests/test_basic_verify_password_async.py ........                       [ 
> 25%]
> tests/test_digest_custom_realm.py ..                                     [ 
> 26%]
> tests/test_digest_get_password.py .......                                [ 
> 33%]
> tests/test_digest_ha1_password.py .                                      [ 
> 34%]
> tests/test_error_responses.py .                                          [ 
> 35%]
> tests/test_multi.py ........FF..                                         [ 
> 46%]
> tests/test_multi_async.py ........FF..                                   [ 
> 57%]
> tests/test_roles.py ..........                                           [ 
> 66%]
> tests/test_roles_async.py ..........                                     [ 
> 75%]
> tests/test_token.py ..........FF.                                        [ 
> 87%]
> tests/test_token_async.py ..........FF.                                  
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________ HTTPAuthTestCase.test_multi_auth_login_valid_token 
> ______________
> 
> self = <tests.test_multi.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token>
> 
>     def test_multi_auth_login_valid_token(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'access granted:None')
> E       AssertionError: 'error' != 'access granted:None'
> E       - error
> E       + access granted:None
> 
> tests/test_multi.py:94: AssertionError
> ___________ HTTPAuthTestCase.test_multi_auth_login_valid_token_role 
> ____________
> 
> self = <tests.test_multi.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token_role>
> 
>     def test_multi_auth_login_valid_token_role(self):
>         response = self.client.get(
>             '/protected-with-role', headers={'Authorization':
>                                              'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'role access granted')
> E       AssertionError: 'error' != 'role access granted'
> E       - error
> E       + role access granted
> 
> tests/test_multi.py:142: AssertionError
> ______________ HTTPAuthTestCase.test_multi_auth_login_valid_token 
> ______________
> 
> self = <tests.test_multi_async.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token>
> 
>     def test_multi_auth_login_valid_token(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'access granted:None')
> E       AssertionError: 'error' != 'access granted:None'
> E       - error
> E       + access granted:None
> 
> tests/test_multi_async.py:97: AssertionError
> ___________ HTTPAuthTestCase.test_multi_auth_login_valid_token_role 
> ____________
> 
> self = <tests.test_multi_async.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token_role>
> 
>     def test_multi_auth_login_valid_token_role(self):
>         response = self.client.get(
>             '/protected-with-role', headers={'Authorization':
>                                              'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'role access granted')
> E       AssertionError: 'error' != 'role access granted'
> E       - error
> E       + role access granted
> 
> tests/test_multi_async.py:145: AssertionError
> _________________ HTTPAuthTestCase.test_token_auth_login_valid 
> _________________
> 
> self = <tests.test_token.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid>
> 
>     def test_token_auth_login_valid(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token.py:74: AssertionError
> _________ HTTPAuthTestCase.test_token_auth_login_valid_different_case 
> __________
> 
> self = <tests.test_token.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid_different_case>
> 
>     def test_token_auth_login_valid_different_case(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'mytoken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token.py:80: AssertionError
> _________________ HTTPAuthTestCase.test_token_auth_login_valid 
> _________________
> 
> self = <tests.test_token_async.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid>
> 
>     def test_token_auth_login_valid(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token_async.py:77: AssertionError
> _________ HTTPAuthTestCase.test_token_auth_login_valid_different_case 
> __________
> 
> self = <tests.test_token_async.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid_different_case>
> 
>     def test_token_auth_login_valid_different_case(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'mytoken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token_async.py:83: AssertionError
> =========================== short test summary info 
> ============================
> FAILED 
> tests/test_multi.py::HTTPAuthTestCase::test_multi_auth_login_valid_token
> FAILED 
> tests/test_multi.py::HTTPAuthTestCase::test_multi_auth_login_valid_token_role
> FAILED 
> tests/test_multi_async.py::HTTPAuthTestCase::test_multi_auth_login_valid_token
> FAILED 
> tests/test_multi_async.py::HTTPAuthTestCase::test_multi_auth_login_valid_token_role
> FAILED tests/test_token.py::HTTPAuthTestCase::test_token_auth_login_valid - 
> A...
> FAILED 
> tests/test_token.py::HTTPAuthTestCase::test_token_auth_login_valid_different_case
> FAILED 
> tests/test_token_async.py::HTTPAuthTestCase::test_token_auth_login_valid
> FAILED 
> tests/test_token_async.py::HTTPAuthTestCase::test_token_auth_login_valid_different_case
> ======================== 8 failed, 100 passed in 0.76s 
> =========================
> E: pybuild pybuild:391: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-httpauth/build; python3.12 -m 
> pytest tests
> I: pybuild base:305: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_flask-httpauth/build; python3.11 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 108 items
> 
> tests/test_basic_custom_realm.py ...                                     [  
> 2%]
> tests/test_basic_get_password.py .....                                   [  
> 7%]
> tests/test_basic_hashed_password.py ...                                  [ 
> 10%]
> tests/test_basic_verify_password.py ........                             [ 
> 17%]
> tests/test_basic_verify_password_async.py ........                       [ 
> 25%]
> tests/test_digest_custom_realm.py ..                                     [ 
> 26%]
> tests/test_digest_get_password.py .......                                [ 
> 33%]
> tests/test_digest_ha1_password.py .                                      [ 
> 34%]
> tests/test_error_responses.py .                                          [ 
> 35%]
> tests/test_multi.py ........FF..                                         [ 
> 46%]
> tests/test_multi_async.py ........FF..                                   [ 
> 57%]
> tests/test_roles.py ..........                                           [ 
> 66%]
> tests/test_roles_async.py ..........                                     [ 
> 75%]
> tests/test_token.py ..........FF.                                        [ 
> 87%]
> tests/test_token_async.py ..........FF.                                  
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________ HTTPAuthTestCase.test_multi_auth_login_valid_token 
> ______________
> 
> self = <tests.test_multi.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token>
> 
>     def test_multi_auth_login_valid_token(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'access granted:None')
> E       AssertionError: 'error' != 'access granted:None'
> E       - error
> E       + access granted:None
> 
> tests/test_multi.py:94: AssertionError
> ___________ HTTPAuthTestCase.test_multi_auth_login_valid_token_role 
> ____________
> 
> self = <tests.test_multi.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token_role>
> 
>     def test_multi_auth_login_valid_token_role(self):
>         response = self.client.get(
>             '/protected-with-role', headers={'Authorization':
>                                              'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'role access granted')
> E       AssertionError: 'error' != 'role access granted'
> E       - error
> E       + role access granted
> 
> tests/test_multi.py:142: AssertionError
> ______________ HTTPAuthTestCase.test_multi_auth_login_valid_token 
> ______________
> 
> self = <tests.test_multi_async.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token>
> 
>     def test_multi_auth_login_valid_token(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'access granted:None')
> E       AssertionError: 'error' != 'access granted:None'
> E       - error
> E       + access granted:None
> 
> tests/test_multi_async.py:97: AssertionError
> ___________ HTTPAuthTestCase.test_multi_auth_login_valid_token_role 
> ____________
> 
> self = <tests.test_multi_async.HTTPAuthTestCase 
> testMethod=test_multi_auth_login_valid_token_role>
> 
>     def test_multi_auth_login_valid_token_role(self):
>         response = self.client.get(
>             '/protected-with-role', headers={'Authorization':
>                                              'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'role access granted')
> E       AssertionError: 'error' != 'role access granted'
> E       - error
> E       + role access granted
> 
> tests/test_multi_async.py:145: AssertionError
> _________________ HTTPAuthTestCase.test_token_auth_login_valid 
> _________________
> 
> self = <tests.test_token.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid>
> 
>     def test_token_auth_login_valid(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token.py:74: AssertionError
> _________ HTTPAuthTestCase.test_token_auth_login_valid_different_case 
> __________
> 
> self = <tests.test_token.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid_different_case>
> 
>     def test_token_auth_login_valid_different_case(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'mytoken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token.py:80: AssertionError
> _________________ HTTPAuthTestCase.test_token_auth_login_valid 
> _________________
> 
> self = <tests.test_token_async.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid>
> 
>     def test_token_auth_login_valid(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'MyToken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token_async.py:77: AssertionError
> _________ HTTPAuthTestCase.test_token_auth_login_valid_different_case 
> __________
> 
> self = <tests.test_token_async.HTTPAuthTestCase 
> testMethod=test_token_auth_login_valid_different_case>
> 
>     def test_token_auth_login_valid_different_case(self):
>         response = self.client.get(
>             '/protected', headers={'Authorization':
>                                    'mytoken this-is-the-token!'})
> >       self.assertEqual(response.data.decode('utf-8'), 'token_auth:user')
> E       AssertionError: 'error' != 'token_auth:user'
> E       - error
> E       + token_auth:user
> 
> tests/test_token_async.py:83: AssertionError
> =========================== short test summary info 
> ============================
> FAILED 
> tests/test_multi.py::HTTPAuthTestCase::test_multi_auth_login_valid_token
> FAILED 
> tests/test_multi.py::HTTPAuthTestCase::test_multi_auth_login_valid_token_role
> FAILED 
> tests/test_multi_async.py::HTTPAuthTestCase::test_multi_auth_login_valid_token
> FAILED 
> tests/test_multi_async.py::HTTPAuthTestCase::test_multi_auth_login_valid_token_role
> FAILED tests/test_token.py::HTTPAuthTestCase::test_token_auth_login_valid - 
> A...
> FAILED 
> tests/test_token.py::HTTPAuthTestCase::test_token_auth_login_valid_different_case
> FAILED 
> tests/test_token_async.py::HTTPAuthTestCase::test_token_auth_login_valid
> FAILED 
> tests/test_token_async.py::HTTPAuthTestCase::test_token_auth_login_valid_different_case
> ======================== 8 failed, 100 passed in 0.78s 
> =========================
> E: pybuild pybuild:391: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_flask-httpauth/build; python3.11 -m 
> pytest tests
> 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/2024/01/15/python-flask-httpauth_4.5.0-4_unstable.log

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