Package: src:pytest-flask
Version: 1.3.0-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

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 cannot 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 add an affects on src:pytest-flask, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
rm -f pytest_flask/_version.py
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --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:131: Building wheel for python3.14 with "build" 
module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pytest-flask  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml 
does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 36, in read_pyproject
    section = defn.get("tool", {})[tool_name]
              ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
/usr/lib/python3/dist-packages/setuptools/dist.py:759: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        
********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX 
license expression:

        License :: OSI Approved :: MIT License

        See 
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license 
for details.
        
********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib/pytest_flask
copying src/pytest_flask/plugin.py -> build/lib/pytest_flask
copying src/pytest_flask/live_server.py -> build/lib/pytest_flask
copying src/pytest_flask/fixtures.py -> build/lib/pytest_flask
copying src/pytest_flask/pytest_compat.py -> build/lib/pytest_flask
copying src/pytest_flask/_version.py -> build/lib/pytest_flask
copying src/pytest_flask/_internal.py -> build/lib/pytest_flask
copying src/pytest_flask/__init__.py -> build/lib/pytest_flask
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/pytest_flask
copying build/lib/pytest_flask/plugin.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/live_server.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/fixtures.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/pytest_compat.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/_version.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/_internal.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/__init__.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
running install_egg_info
running egg_info
creating src/pytest_flask.egg-info
writing src/pytest_flask.egg-info/PKG-INFO
writing dependency_links to src/pytest_flask.egg-info/dependency_links.txt
writing entry points to src/pytest_flask.egg-info/entry_points.txt
writing requirements to src/pytest_flask.egg-info/requires.txt
writing top-level names to src/pytest_flask.egg-info/top_level.txt
writing manifest file 'src/pytest_flask.egg-info/SOURCES.txt'
reading manifest file 'src/pytest_flask.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'src/pytest_flask.egg-info/SOURCES.txt'
Copying src/pytest_flask.egg-info to 
build/bdist.linux-x86_64/wheel/./pytest_flask-1.3.0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/pytest_flask-1.3.0.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pytest-flask/.tmp-v47ooyze/pytest_flask-1.3.0-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pytest_flask/__init__.py'
adding 'pytest_flask/_internal.py'
adding 'pytest_flask/_version.py'
adding 'pytest_flask/fixtures.py'
adding 'pytest_flask/live_server.py'
adding 'pytest_flask/plugin.py'
adding 'pytest_flask/pytest_compat.py'
adding 'pytest_flask-1.3.0.dist-info/licenses/LICENSE'
adding 'pytest_flask-1.3.0.dist-info/METADATA'
adding 'pytest_flask-1.3.0.dist-info/WHEEL'
adding 'pytest_flask-1.3.0.dist-info/entry_points.txt'
adding 'pytest_flask-1.3.0.dist-info/top_level.txt'
adding 'pytest_flask-1.3.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built pytest_flask-1.3.0-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with 
"installer" module
I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" 
module
I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pytest-flask  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml 
does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 36, in read_pyproject
    section = defn.get("tool", {})[tool_name]
              ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
/usr/lib/python3/dist-packages/setuptools/dist.py:759: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        
********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX 
license expression:

        License :: OSI Approved :: MIT License

        See 
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license 
for details.
        
********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
copying src/pytest_flask/_version.py -> build/lib/pytest_flask
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/pytest_flask
copying build/lib/pytest_flask/plugin.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/live_server.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/fixtures.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/pytest_compat.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/_version.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/_internal.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
copying build/lib/pytest_flask/__init__.py -> 
build/bdist.linux-x86_64/wheel/./pytest_flask
running install_egg_info
running egg_info
writing src/pytest_flask.egg-info/PKG-INFO
writing dependency_links to src/pytest_flask.egg-info/dependency_links.txt
writing entry points to src/pytest_flask.egg-info/entry_points.txt
writing requirements to src/pytest_flask.egg-info/requires.txt
writing top-level names to src/pytest_flask.egg-info/top_level.txt
reading manifest file 'src/pytest_flask.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'src/pytest_flask.egg-info/SOURCES.txt'
Copying src/pytest_flask.egg-info to 
build/bdist.linux-x86_64/wheel/./pytest_flask-1.3.0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/pytest_flask-1.3.0.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pytest-flask/.tmp-d0zhd9qb/pytest_flask-1.3.0-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pytest_flask/__init__.py'
adding 'pytest_flask/_internal.py'
adding 'pytest_flask/_version.py'
adding 'pytest_flask/fixtures.py'
adding 'pytest_flask/live_server.py'
adding 'pytest_flask/plugin.py'
adding 'pytest_flask/pytest_compat.py'
adding 'pytest_flask-1.3.0.dist-info/licenses/LICENSE'
adding 'pytest_flask-1.3.0.dist-info/METADATA'
adding 'pytest_flask-1.3.0.dist-info/WHEEL'
adding 'pytest_flask-1.3.0.dist-info/entry_points.txt'
adding 'pytest_flask-1.3.0.dist-info/top_level.txt'
adding 'pytest_flask-1.3.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built pytest_flask-1.3.0-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with 
"installer" module
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYTHONPATH=/<<PKGBUILDDIR>> PYBUILD_SYSTEM=custom 
PYBUILD_TEST_ARGS="{interpreter} -m pytest -x -v tests" dh_auto_test
I: pybuild base:317: python3.14 -m pytest -x -v tests
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 -- 
/usr/bin/python3.14
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>
configfile: tox.ini
plugins: flask-1.3.0, typeguard-4.4.4
collecting ... collected 35 items

tests/test_fixtures.py::TestFixtures::test_config_access PASSED          [  2%]
tests/test_fixtures.py::TestFixtures::test_client PASSED                 [  5%]
tests/test_fixtures.py::TestFixtures::test_accept_json PASSED            [  8%]
tests/test_fixtures.py::TestFixtures::test_accept_jsonp PASSED           [ 11%]
tests/test_fixtures.py::TestFixtures::test_accept_mimetype[application/json] 
PASSED [ 14%]
tests/test_fixtures.py::TestFixtures::test_accept_mimetype[text/html] PASSED [ 
17%]
tests/test_fixtures.py::TestFixtures::test_accept_any[*] PASSED          [ 20%]
tests/test_fixtures.py::TestFixtures::test_accept_any[*/*] PASSED        [ 22%]
tests/test_fixtures.py::TestClientClass::test_client_attribute PASSED    [ 25%]
tests/test_internal.py::TestInternal::test_deprecation_decorator PASSED  [ 28%]
tests/test_json_response.py::TestJSONResponse::test_json_response PASSED [ 31%]
tests/test_json_response.py::TestJSONResponse::test_json_response_compare_to_status_code
 PASSED [ 34%]
tests/test_json_response.py::TestJSONResponse::test_mismatching_eq_comparison 
PASSED [ 37%]
tests/test_live_server.py::TestLiveServer::test_init ERROR               [ 40%]

==================================== ERRORS ====================================
__________________ ERROR at setup of TestLiveServer.test_init __________________

request = <SubRequest 'live_server' for <Function test_init>>
app = <Flask 'conftest'>
pytestconfig = <_pytest.config.Config object at 0x7f49a23741a0>

    @pytest.fixture(scope=_determine_scope)
    def live_server(request, app, pytestconfig):  # pragma: no cover
        """Run application in a separate process.
    
        When the ``live_server`` fixture is applied, the ``url_for`` function
        works as expected::
    
            def test_server_is_up_and_running(live_server):
                index_url = url_for('index', _external=True)
                assert index_url == 'http://localhost:5000/'
    
                res = urllib2.urlopen(index_url)
                assert res.code == 200
    
        """
        # Set or get a port
        port = app.config.get("LIVESERVER_PORT", None)
        if not port:
            port = pytestconfig.getvalue("live_server_port")
    
        if port == 0:
            # Bind to an open port
            s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            s.bind(("", 0))
            port = s.getsockname()[1]
            s.close()
    
        host = pytestconfig.getvalue("live_server_host")
    
        # Explicitly set application ``SERVER_NAME`` for test suite
        original_server_name = app.config["SERVER_NAME"] or 
"localhost.localdomain"
        final_server_name = _rewrite_server_name(original_server_name, 
str(port))
        app.config["SERVER_NAME"] = final_server_name
    
        wait = request.config.getvalue("live_server_wait")
        clean_stop = request.config.getvalue("live_server_clean_stop")
        server = LiveServer(app, host, port, wait, clean_stop)
        if request.config.getvalue("start_live_server"):
>           server.start()

.pybuild/cpython3_3.14_pytest-flask/build/pytest_flask/fixtures.py:78: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.pybuild/cpython3_3.14_pytest-flask/build/pytest_flask/live_server.py:46: in 
start
    self._process.start()
/usr/lib/python3.14/multiprocessing/process.py:121: in start
    self._popen = self._Popen(self)
                  ^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/multiprocessing/context.py:224: in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/multiprocessing/context.py:300: in _Popen
    return Popen(process_obj)
           ^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/multiprocessing/popen_forkserver.py:35: in __init__
    super().__init__(process_obj)
/usr/lib/python3.14/multiprocessing/popen_fork.py:20: in __init__
    self._launch(process_obj)
/usr/lib/python3.14/multiprocessing/popen_forkserver.py:47: in _launch
    reduction.dump(process_obj, buf)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

obj = <Process name='Process-1' parent=111 initial daemon>
file = <_io.BytesIO object at 0x7f49a0de1e90>, protocol = None

    def dump(obj, file, protocol=None):
        '''Replacement for pickle.dump() using ForkingPickler.'''
>       ForkingPickler(file, protocol).dump(obj)
E       _pickle.PicklingError: Can't pickle local object <function 
LiveServer.start.<locals>.worker at 0x7f49a0ded4e0>
E       when serializing dict item '_target'
E       when serializing multiprocessing.context.Process state
E       when serializing multiprocessing.context.Process object

/usr/lib/python3.14/multiprocessing/reduction.py:60: PicklingError
=============================== warnings summary ===============================
../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428: 
PytestConfigWarning: Unknown config option: pep8ignore
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428: 
PytestConfigWarning: Unknown config option: pep8maxlinelength
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_live_server.py::TestLiveServer::test_init - _pickle.Pickling...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
=================== 13 passed, 2 warnings, 1 error in 0.07s ====================
E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: 
python3.14 -m pytest -x -v tests
I: pybuild base:317: python3.13 -m pytest -x -v tests
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 -- 
/usr/bin/python3.13
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>
configfile: tox.ini
plugins: flask-1.3.0, typeguard-4.4.4
collecting ... collected 35 items

tests/test_fixtures.py::TestFixtures::test_config_access PASSED          [  2%]
tests/test_fixtures.py::TestFixtures::test_client PASSED                 [  5%]
tests/test_fixtures.py::TestFixtures::test_accept_json PASSED            [  8%]
tests/test_fixtures.py::TestFixtures::test_accept_jsonp PASSED           [ 11%]
tests/test_fixtures.py::TestFixtures::test_accept_mimetype[application/json] 
PASSED [ 14%]
tests/test_fixtures.py::TestFixtures::test_accept_mimetype[text/html] PASSED [ 
17%]
tests/test_fixtures.py::TestFixtures::test_accept_any[*] PASSED          [ 20%]
tests/test_fixtures.py::TestFixtures::test_accept_any[*/*] PASSED        [ 22%]
tests/test_fixtures.py::TestClientClass::test_client_attribute PASSED    [ 25%]
tests/test_internal.py::TestInternal::test_deprecation_decorator PASSED  [ 28%]
tests/test_json_response.py::TestJSONResponse::test_json_response PASSED [ 31%]
tests/test_json_response.py::TestJSONResponse::test_json_response_compare_to_status_code
 PASSED [ 34%]
tests/test_json_response.py::TestJSONResponse::test_mismatching_eq_comparison 
PASSED [ 37%]
tests/test_live_server.py::TestLiveServer::test_init PASSED              [ 40%]
tests/test_live_server.py::TestLiveServer::test_server_is_alive PASSED   [ 42%]
tests/test_live_server.py::TestLiveServer::test_server_listening PASSED  [ 45%]
tests/test_live_server.py::TestLiveServer::test_url_for PASSED           [ 48%]
tests/test_live_server.py::TestLiveServer::test_set_application_server_name 
PASSED [ 51%]
tests/test_live_server.py::TestLiveServer::test_rewrite_application_server_name 
PASSED [ 54%]
tests/test_live_server.py::TestLiveServer::test_prevent_starting_live_server 
PASSED [ 57%]
tests/test_live_server.py::TestLiveServer::test_start_live_server PASSED [ 60%]
tests/test_live_server.py::TestLiveServer::test_stop_cleanly_join_exception 
PASSED [ 62%]
tests/test_live_server.py::TestLiveServer::test_clean_stop_live_server[True] 
PASSED [ 65%]
tests/test_live_server.py::TestLiveServer::test_clean_stop_live_server[False] 
PASSED [ 68%]
tests/test_live_server.py::TestLiveServer::test_add_endpoint_to_live_server 
PASSED [ 71%]
tests/test_live_server.py::TestLiveServer::test_concurrent_requests_to_live_server
 SKIPPED [ 74%]
tests/test_live_server.py::TestLiveServer::test_live_server_fixed_port[5000] 
PASSED [ 77%]
tests/test_live_server.py::TestLiveServer::test_live_server_fixed_port[5001] 
PASSED [ 80%]
tests/test_live_server.py::TestLiveServer::test_live_server_fixed_host[127.0.0.1]
 PASSED [ 82%]
tests/test_live_server.py::TestLiveServer::test_live_server_fixed_host[0.0.0.0] 
PASSED [ 85%]
tests/test_live_server.py::TestLiveServer::test_respect_wait_timeout PASSED [ 
88%]
tests/test_markers.py::TestOptionMarker::test_not_debug_app PASSED       [ 91%]
tests/test_markers.py::TestOptionMarker::test_update_application_config PASSED 
[ 94%]
tests/test_markers.py::TestOptionMarker::test_application_config_teardown 
PASSED [ 97%]
tests/test_response_overwriting.py::TestResponseOverwriting::test_dont_rewrite_existing_implementation
 PASSED [100%]

=============================== warnings summary ===============================
../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428: 
PytestConfigWarning: Unknown config option: pep8ignore
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428: 
PytestConfigWarning: Unknown config option: pep8maxlinelength
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 34 passed, 1 skipped, 2 warnings in 0.44s ===================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make[1]: *** [debian/rules:25: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to