Source: flask-babel
Version: 4.1.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240728 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 sphinxdoc,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:129: Building wheel for python3.12 with "build" 
> module
> I: pybuild base:311: python3.12 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-babel  
> * Building wheel...
> Successfully built flask_babel-4.1.0-py3-none-any.whl
> I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
> "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:311: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-babel/build; python3.12 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.4, pytest-8.3.1, pluggy-1.5.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-babel/build
> configfile: pyproject.toml
> plugins: mock-3.14.0
> collected 33 items
> 
> tests/test_app_factory.py .                                              [  
> 3%]
> tests/test_date_formatting.py ....                                       [ 
> 15%]
> tests/test_force_locale.py ....                                          [ 
> 27%]
> tests/test_gettext.py .....FF........                                    [ 
> 72%]
> tests/test_integration.py .F.....                                        [ 
> 93%]
> tests/test_multiple_apps.py .                                            [ 
> 96%]
> tests/test_number_formatting.py .                                        
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ____________________________ test_list_translations 
> ____________________________
> 
>     def test_list_translations():
>         app = flask.Flask(__name__)
>         b = babel.Babel(app, default_locale="de_DE")
>     
>         with app.app_context():
>             translations = b.list_translations()
>             assert len(translations) == 3
> >           assert str(translations[0]) == "de"
> E           AssertionError: assert 'ja' == 'de'
> E             
> E             - de
> E             + ja
> 
> tests/test_gettext.py:96: AssertionError
> _________________ test_list_translations_default_locale_exists 
> _________________
> 
>     def test_list_translations_default_locale_exists():
>         app = flask.Flask(__name__)
>         b = babel.Babel(app, default_locale="de")
>     
>         with app.app_context():
>             translations = b.list_translations()
>             assert len(translations) == 2
> >           assert str(translations[0]) == "de"
> E           AssertionError: assert 'ja' == 'de'
> E             
> E             - de
> E             + ja
> 
> tests/test_gettext.py:108: AssertionError
> __________________________ test_multiple_directories 
> ___________________________
> 
>     def test_multiple_directories():
>         """
>         Ensure we can load translations from multiple directories.
>     
>         This also ensures that directories without any translation files
>         are not taken into account.
>         """
>         b = babel.Babel()
>         app = flask.Flask(__name__)
>     
>         app.config.update(
>             {
>                 "BABEL_TRANSLATION_DIRECTORIES": ";".join(
>                     ("translations", "renamed_translations")
>                 ),
>                 "BABEL_DEFAULT_LOCALE": "de_DE",
>             }
>         )
>     
>         b.init_app(app)
>     
>         with app.test_request_context():
>             translations = b.list_translations()
>     
>             assert len(translations) == 4
> >           assert str(translations[0]) == "de"
> E           AssertionError: assert 'ja' == 'de'
> E             
> E             - de
> E             + ja
> 
> tests/test_integration.py:44: AssertionError
> =========================== short test summary info 
> ============================
> FAILED tests/test_gettext.py::test_list_translations - AssertionError: 
> assert...
> FAILED tests/test_gettext.py::test_list_translations_default_locale_exists - 
> ...
> FAILED tests/test_integration.py::test_multiple_directories - 
> AssertionError:...
> ========================= 3 failed, 30 passed in 0.38s 
> =========================
> E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-babel/build; python3.12 -m 
> pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/flask-babel_4.1.0-1_unstable.log

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