Source: flask-wtf
Version: 1.0.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20221220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
> Running Sphinx v5.3.0
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 9 source files that are out of date
> updating environment: [new config] 9 added, 0 changed, 0 removed
> reading sources... [ 11%] api
> reading sources... [ 22%] changes
> reading sources... [ 33%] config
> reading sources... [ 44%] contributing
> reading sources... [ 55%] csrf
> reading sources... [ 66%] form
> reading sources... [ 77%] index
> reading sources... [ 88%] install
> reading sources... [100%] quickstart
>
> /<<PKGBUILDDIR>>/docs/contributing.rst:1: CRITICAL: Problems with "include"
> directive path:
> InputError: [Errno 2] No such file or directory: '../CONTRIBUTING.rst'.
> /<<PKGBUILDDIR>>/docs/index.rst:58: WARNING: toctree contains reference to
> nonexisting document 'license'
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [ 11%] api
> writing output... [ 22%] changes
> writing output... [ 33%] config
> writing output... [ 44%] contributing
> writing output... [ 55%] csrf
> writing output... [ 66%] form
> writing output... [ 77%] index
> writing output... [ 88%] install
> writing output... [100%] quickstart
>
> /<<PKGBUILDDIR>>/docs/index.rst:58: WARNING: toctree contains reference to
> document 'contributing' that doesn't have a title: no link will be generated
> generating indices... genindex py-modindex done
> writing additional pages... search done
> copying images... [100%] _static/flask-wtf.png
>
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded, 3 warnings.
>
> The HTML pages are in _build/html.
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_flaskext.wtf/build; python3.11 -m
> pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 51 items
>
> tests/test_csrf_extension.py ......... [
> 17%]
> tests/test_csrf_form.py ........ [
> 33%]
> tests/test_file.py ...s..... [
> 50%]
> tests/test_form.py ........F [
> 68%]
> tests/test_i18n.py ... [
> 74%]
> tests/test_recaptcha.py .............
> [100%]
>
> =================================== FAILURES
> ===================================
> ______________________ test_set_default_message_language
> _______________________
>
> app = <Flask 'conftest'>, client = <FlaskClient <Flask 'conftest'>>
>
> def test_set_default_message_language(app, client):
> @app.route("/default", methods=["POST"])
> def default():
> form = BasicForm()
> assert not form.validate_on_submit()
> assert "This field is required." in form.name.errors
>
> client.post("/default", data={"name": " "})
>
> > @app.route("/es", methods=["POST"])
>
> tests/test_form.py:114:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/flask/scaffold.py:49: in wrapper_func
> self._check_setup_finished(f_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = <Flask 'conftest'>, f_name = 'route'
>
> def _check_setup_finished(self, f_name: str) -> None:
> if self._got_first_request:
> > raise AssertionError(
> f"The setup method '{f_name}' can no longer be called"
> " on the application. It has already handled its first"
> " request, any changes will not be applied"
> " consistently.\n"
> "Make sure all imports, decorators, functions, etc."
> " needed to set up the application are done before"
> " running it."
> )
> E AssertionError: The setup method 'route' can no longer be called
> on the application. It has already handled its first request, any changes
> will not be applied consistently.
> E Make sure all imports, decorators, functions, etc. needed to set
> up the application are done before running it.
>
> /usr/lib/python3/dist-packages/flask/app.py:722: AssertionError
> =========================== short test summary info
> ============================
> FAILED tests/test_form.py::test_set_default_message_language -
> AssertionError...
> =================== 1 failed, 49 passed, 1 skipped in 0.39s
> ====================
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_flaskext.wtf/build; python3.11 -m
> pytest tests
> I: pybuild base:240: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_flaskext.wtf/build; python3.10 -m
> pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 51 items
>
> tests/test_csrf_extension.py ......... [
> 17%]
> tests/test_csrf_form.py ........ [
> 33%]
> tests/test_file.py ...s..... [
> 50%]
> tests/test_form.py ........F [
> 68%]
> tests/test_i18n.py ... [
> 74%]
> tests/test_recaptcha.py .............
> [100%]
>
> =================================== FAILURES
> ===================================
> ______________________ test_set_default_message_language
> _______________________
>
> app = <Flask 'conftest'>, client = <FlaskClient <Flask 'conftest'>>
>
> def test_set_default_message_language(app, client):
> @app.route("/default", methods=["POST"])
> def default():
> form = BasicForm()
> assert not form.validate_on_submit()
> assert "This field is required." in form.name.errors
>
> client.post("/default", data={"name": " "})
>
> > @app.route("/es", methods=["POST"])
>
> tests/test_form.py:114:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/flask/scaffold.py:49: in wrapper_func
> self._check_setup_finished(f_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = <Flask 'conftest'>, f_name = 'route'
>
> def _check_setup_finished(self, f_name: str) -> None:
> if self._got_first_request:
> > raise AssertionError(
> f"The setup method '{f_name}' can no longer be called"
> " on the application. It has already handled its first"
> " request, any changes will not be applied"
> " consistently.\n"
> "Make sure all imports, decorators, functions, etc."
> " needed to set up the application are done before"
> " running it."
> )
> E AssertionError: The setup method 'route' can no longer be called
> on the application. It has already handled its first request, any changes
> will not be applied consistently.
> E Make sure all imports, decorators, functions, etc. needed to set
> up the application are done before running it.
>
> /usr/lib/python3/dist-packages/flask/app.py:722: AssertionError
> =========================== short test summary info
> ============================
> FAILED tests/test_form.py::test_set_default_message_language -
> AssertionError...
> =================== 1 failed, 49 passed, 1 skipped in 0.38s
> ====================
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_flaskext.wtf/build; python3.10 -m
> pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11
> 3.10" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/12/20/flask-wtf_1.0.1-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&[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.