Package: src:flask-restful
Version: 0.3.10-2
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --buildsystem=pybuild --with=python3,sphinxdoc
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'test_suite'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'tests_require'
warnings.warn(msg)
running config
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
I: pybuild base:311: /usr/bin/python3 setup.py build
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'test_suite'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'tests_require'
warnings.warn(msg)
running build
running build_py
creating
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful
copying flask_restful/inputs.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful
copying flask_restful/reqparse.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful
copying flask_restful/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful
copying flask_restful/fields.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful
copying flask_restful/__version__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful
creating
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/utils
copying flask_restful/utils/crypto.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/utils
copying flask_restful/utils/cors.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/utils
copying flask_restful/utils/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/utils
creating
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/representations
copying flask_restful/representations/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/representations
copying flask_restful/representations/json.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build/flask_restful/representations
running egg_info
creating Flask_RESTful.egg-info
writing Flask_RESTful.egg-info/PKG-INFO
writing dependency_links to Flask_RESTful.egg-info/dependency_links.txt
writing requirements to Flask_RESTful.egg-info/requires.txt
writing top-level names to Flask_RESTful.egg-info/top_level.txt
writing manifest file 'Flask_RESTful.egg-info/SOURCES.txt'
reading manifest file 'Flask_RESTful.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'CHANGES'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
warning: no previously-included files matching '*.pyc' found under directory
'tests'
warning: no previously-included files matching '*.pyo' found under directory
'tests'
warning: no previously-included files matching '*.pyc' found under directory
'examples'
warning: no previously-included files matching '*.pyo' found under directory
'examples'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE'
adding license file 'AUTHORS.md'
writing manifest file 'Flask_RESTful.egg-info/SOURCES.txt'
cd docs; PYTHONPATH=.. http_proxy='127.0.0.1:9' make html
make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v7.4.7
loading translations [en]... done
making output directory... done
Converting `source_suffix = '.rst'` to `source_suffix = {'.rst':
'restructuredtext'}`.
loading intersphinx inventory 'flask' from
/usr/share/doc/python-flask-doc/html/objects.inv...
loading intersphinx inventory 'werkzeug' from
/usr/share/doc/python-werkzeug-doc/html/objects.inv...
loading intersphinx inventory 'python' from
/usr/share/doc/python3-doc/html/objects.inv...
loading intersphinx inventory 'python3' from
/usr/share/doc/python3-doc/html/objects.inv...
loading intersphinx inventory 'six' from
/usr/share/doc/python-six-doc/html/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory '/usr/share/doc/python-six-doc/html/objects.inv' not fetchable
due to <class 'FileNotFoundError'>: [Errno 2] No such file or directory:
'/usr/share/doc/python-six-doc/html/objects.inv'
building [mo]: targets for 0 po files that are out of date
writing output...
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%] extending
reading sources... [ 33%] fields
reading sources... [ 44%] index
reading sources... [ 56%] installation
reading sources... [ 67%] intermediate-usage
reading sources... [ 78%] quickstart
reading sources... [ 89%] reqparse
reading sources... [100%] testing
/<<PKGBUILDDIR>>/flask_restful/__init__.py:docstring of
flask_restful.Api.unauthorized:1: WARNING: duplicate object description of
flask_restful.Api.unauthorized, other instance in api, use :no-index: for one of them
/<<PKGBUILDDIR>>/docs/index.rst:6: WARNING: duplicate object description of
flask_restful, other instance in api, use :no-index: for one of them
/<<PKGBUILDDIR>>/docs/reqparse.rst:217: WARNING: Explicit markup ends without a
blank line; unexpected unindent.
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
copying assets: done
writing output... [ 11%] api
writing output... [ 22%] extending
writing output... [ 33%] fields
writing output... [ 44%] index
writing output... [ 56%] installation
writing output... [ 67%] intermediate-usage
writing output... [ 78%] quickstart
writing output... [ 89%] reqparse
writing output... [100%] testing
/<<PKGBUILDDIR>>/docs/intermediate-usage.rst:80: WARNING: undefined label:
'blueprints'
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, 5 warnings.
The HTML pages are in _build/html.
Build finished. 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:311: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build; python3.12 -m
pytest -k 'not test_media_types_method and not test_media_types_q'
============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.3.0
collected 321 items / 2 deselected / 319 selected
tests/test_accept.py ............ [ 3%]
tests/test_api.py x..................................................... [ 20%]
............................. [ 29%]
tests/test_api_with_blueprint.py ............. [ 33%]
tests/test_cors.py .... [ 35%]
tests/test_fields.py xxxx.........................F...............F..... [ 51%]
.................... [ 57%]
tests/test_inputs.py xxxxxxx.xx.....................x.x [ 68%]
tests/test_reqparse.py ................................................. [ 83%]
..................................................... [100%]
=================================== FAILURES ===================================
______________ FieldsTestCase.test_iso8601_date_field_with_offset ______________
self = <tests.test_fields.FieldsTestCase
testMethod=test_iso8601_date_field_with_offset>
def test_iso8601_date_field_with_offset(self):
obj = {"bar": datetime(2011, 8, 22, 20, 58, 45,
tzinfo=pytz.timezone('CET'))}
field = fields.DateTime(dt_format='iso8601')
self.assertEqual("2011-08-22T20:58:45+01:00", field.output("bar", obj))
E AssertionError: '2011-08-22T20:58:45+01:00' !=
'2011-08-22T20:58:45+00:18'
E - 2011-08-22T20:58:45+01:00
E ? ^^^
E + 2011-08-22T20:58:45+00:18
E ? ++ ^
tests/test_fields.py:378: AssertionError
______________ FieldsTestCase.test_rfc822_date_field_with_offset _______________
self = <tests.test_fields.FieldsTestCase
testMethod=test_rfc822_date_field_with_offset>
def test_rfc822_date_field_with_offset(self):
obj = {"bar": datetime(2011, 8, 22, 20, 58, 45,
tzinfo=pytz.timezone('CET'))}
field = fields.DateTime()
self.assertEqual("Mon, 22 Aug 2011 19:58:45 -0000", field.output("bar",
obj))
E AssertionError: 'Mon, 22 Aug 2011 19:58:45 -0000' != 'Mon, 22 Aug 2011
20:40:45 -0000'
E - Mon, 22 Aug 2011 19:58:45 -0000
E ? ^^ ^^
E + Mon, 22 Aug 2011 20:40:45 -0000
E ? ^^ ^^
tests/test_fields.py:368: AssertionError
=============================== warnings summary ===============================
.pybuild/cpython3_3.12_flask-restful/build/tests/test_api.py:40
.pybuild/cpython3_3.12_flask-restful/build/tests/test_api.py:40:
PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_unpack
will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:28
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:28:
PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_float
will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:38
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:38:
PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_boolean
will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:50
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:50:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_rfc822_datetime_formatters will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:64
.pybuild/cpython3_3.12_flask-restful/build/tests/test_fields.py:64:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_iso8601_datetime_formatters will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:14
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:14:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_reverse_rfc822_datetime will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:25
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:25:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_reverse_iso8601_datetime will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:37
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:37:
PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_urls
will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:69
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:69:
PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_bad_urls
will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:91
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:91:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_bad_url_error_message will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:112
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:112:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_regex_bad_input will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:126
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:126:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_regex_good_input will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:144
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:144:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_regex_flags_good_input will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:157
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:157:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_regex_flags_bad_input will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:243
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:243:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_isointerval will be ignored
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:410
.pybuild/cpython3_3.12_flask-restful/build/tests/test_inputs.py:410:
PytestCollectionWarning: yield tests were removed in pytest 4.0 -
test_bad_isointervals will be ignored
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_fields.py::FieldsTestCase::test_iso8601_date_field_with_offset
FAILED tests/test_fields.py::FieldsTestCase::test_rfc822_date_field_with_offset
===== 2 failed, 301 passed, 2 deselected, 16 xfailed, 16 warnings in 1.05s =====
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-restful/build; python3.12 -m
pytest -k 'not test_media_types_method and not test_media_types_q'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12
returned exit code 13
make: *** [debian/rules:10: 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/202410/
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 affects, so that this is still visible in the BTS web
page for this package.
Thanks.