--- Begin Message ---
Source: requests
Version: 2.31.0+dfsg-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules build
> dh build --with python3,sphinxdoc --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py config
> /usr/lib/python3/dist-packages/setuptools/command/test.py:11:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> from pkg_resources import (
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'provides-extra' will not be supported in
> future
> versions. Please use the underscore name 'provides_extra' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'requires-dist' will not be supported in
> future
> versions. Please use the underscore name 'requires_dist' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293:
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> running config
> I: pybuild base:310: python3.11 setup.py config
> /usr/lib/python3/dist-packages/setuptools/command/test.py:11:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> from pkg_resources import (
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'provides-extra' will not be supported in
> future
> versions. Please use the underscore name 'provides_extra' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'requires-dist' will not be supported in
> future
> versions. Please use the underscore name 'requires_dist' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293:
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build
> /usr/lib/python3/dist-packages/setuptools/command/test.py:11:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> from pkg_resources import (
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'provides-extra' will not be supported in
> future
> versions. Please use the underscore name 'provides_extra' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'requires-dist' will not be supported in
> future
> versions. Please use the underscore name 'requires_dist' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293:
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/auth.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/compat.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/status_codes.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/cookies.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/help.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/exceptions.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/models.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/structures.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/_internal_utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/adapters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/api.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/packages.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/__version__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/hooks.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/sessions.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> copying requests/certs.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests
> running egg_info
> creating requests.egg-info
> writing requests.egg-info/PKG-INFO
> writing dependency_links to requests.egg-info/dependency_links.txt
> writing requirements to requests.egg-info/requires.txt
> writing top-level names to requests.egg-info/top_level.txt
> writing manifest file 'requests.egg-info/SOURCES.txt'
> reading manifest file 'requests.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'pytest.ini'
> adding license file 'LICENSE'
> writing manifest file 'requests.egg-info/SOURCES.txt'
> I: pybuild base:310: /usr/bin/python3 setup.py build
> /usr/lib/python3/dist-packages/setuptools/command/test.py:11:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> from pkg_resources import (
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'provides-extra' will not be supported in
> future
> versions. Please use the underscore name 'provides_extra' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/dist.py:744:
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
>
>
> ********************************************************************************
> Usage of dash-separated 'requires-dist' will not be supported in
> future
> versions. Please use the underscore name 'requires_dist' instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> opt = self.warn_dash_deprecation(opt, section)
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293:
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove
> deprecated
> calls to avoid build errors in the future.
>
> See
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
> details.
>
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/auth.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/compat.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/status_codes.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/cookies.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/help.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/exceptions.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/models.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/structures.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/_internal_utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/adapters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/api.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/packages.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/__version__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/hooks.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/sessions.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> copying requests/certs.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests
> running egg_info
> writing requests.egg-info/PKG-INFO
> writing dependency_links to requests.egg-info/dependency_links.txt
> writing requirements to requests.egg-info/requires.txt
> writing top-level names to requests.egg-info/top_level.txt
> reading manifest file 'requests.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'pytest.ini'
> adding license file 'LICENSE'
> writing manifest file 'requests.egg-info/SOURCES.txt'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build; python3.12 -m pytest
> tests -k "not test_use_proxy_from_environment and not TestGetEnvironProxies
> and not test_mixed_case_scheme_acceptable and not
> test_HTTP_200_OK_GET_ALTERNATIVE and not test_unicode_get and not
> test_HTTP_302_ALLOW_REDIRECT_GET and not test_HTTP_307_ALLOW_REDIRECT_POST
> and not test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE and not
> test_HTTP_302_TOO_MANY_REDIRECTS and not
> test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS and not
> test_http_301_changes_post_to_get and not
> test_http_301_doesnt_change_head_to_get and not
> test_http_302_changes_post_to_get and not
> test_http_302_doesnt_change_head_to_get and not
> test_http_303_changes_post_to_get and not
> test_http_303_doesnt_change_head_to_get and not
> test_header_and_body_removal_on_redirect and not
> test_transfer_enc_removal_on_redirect and not
> test_fragment_maintained_on_redirect and not test_HTTP_200_OK_GET_WITH_PARAMS
> and not test_HTTP_200_OK_GET_WITH_MIXED_PARAMS and not test_set_cookie_on_301
> and not test_cookie_sent_on_redirect and not test_cookie_removed_on_expire
> and not test_cookie_quote_wrapped and not test_cookie_persists_via_api and
> not test_request_cookie_overrides_session_cookie and not
> test_request_cookies_not_persisted and not test_generic_cookiejar_works and
> not test_param_cookiejar_works and not test_cookielib_cookiejar_on_redirect
> and not test_requests_in_history_are_not_overridden and not
> test_history_is_always_a_list and not test_user_agent_transfers and not
> test_HTTP_200_OK_HEAD and not test_HTTP_200_OK_PUT and not
> test_BASICAUTH_TUPLE_HTTP_200_OK_GET and not
> test_proxy_authorization_preserved_on_request and not
> test_basicauth_with_netrc and not test_DIGEST_HTTP_200_OK_GET and not
> test_DIGEST_AUTH_RETURNS_COOKIE and not test_DIGEST_AUTH_SETS_SESSION_COOKIES
> and not test_DIGEST_STREAM and not test_DIGESTAUTH_WRONG_HTTP_401_GET and not
> test_DIGESTAUTH_QUOTES_QOP_VALUE and not test_POSTBIN_GET_POST_FILES and not
> test_invalid_files_input and not test_POSTBIN_SEEKED_OBJECT_WITH_NO_ITER and
> not test_POSTBIN_GET_POST_FILES_WITH_DATA and not
> test_post_with_custom_mapping and not test_conflicting_post_params and not
> test_request_ok_set and not test_status_raising and not test_decompress_gzip
> and not test_unicode_header_name and not test_pyopenssl_redirect and not
> test_http_with_certificate and not test_certificate_failure and not
> test_urlencoded_get_query_multivalued_param and not
> test_different_encodings_dont_break_post and not test_unicode_multipart_post
> and not test_unicode_method_name and not
> test_unicode_method_name_with_request_object and not test_custom_content_type
> and not test_hook_receives_request_arguments and not
> test_prepared_request_hook and not test_prepared_from_session and not
> test_request_with_bytestring_host and not test_time_elapsed_blank and not
> test_request_and_response_are_pickleable and not
> test_prepared_request_is_pickleable and not
> test_prepared_request_with_file_is_pickleable and not
> test_prepared_request_with_hook_is_pickleable and not test_session_pickling
> and not test_fixes_1329 and not test_uppercase_scheme_redirect and not
> test_header_remove_is_case_insensitive and not
> test_params_are_merged_case_sensitive and not test_header_validation and not
> test_auth_is_stripped_on_http_downgrade and not
> test_auth_is_retained_for_redirect_on_host and not
> test_manual_redirect_with_partial_body_read and not
> test_redirect_with_wrong_gzipped_header and not
> test_requests_history_is_saved and not
> test_json_param_post_content_type_works and not test_response_iter_lines and
> not test_response_context_manager and not
> test_unconsumed_session_response_closes_connection and not
> test_response_json_when_content_is_None and not test_custom_redirect_mixin
> and not test_stream_timeout and not test_none_timeout and not
> test_read_timeout and not test_connect_timeout and not
> test_total_timeout_connect and not test_encoded_methods and not
> test_proxy_env_vars_override_default and not test_urllib3_retries and not
> test_redirecting_to_bad_url and not test_json_decode_compatibility and not
> test_set_environ and not test_json_decode_persists_doc_attr and not
> test_header_with_subclass_types and not test_urllib3_pool_connection_closed"
> Traceback (most recent call last):
> File "<frozen runpy>", line 198, in _run_module_as_main
> File "<frozen runpy>", line 88, in _run_code
> File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 5, in
> <module>
> raise SystemExit(pytest.console_main())
> ^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 192,
> in console_main
> code = main()
> ^^^^^^
> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 150,
> in main
> config = _prepareconfig(args, plugins)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 331,
> in _prepareconfig
> config = pluginmanager.hook.pytest_cmdline_parse(
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 493, in
> __call__
> return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 115, in
> _hookexec
> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 130, in
> _multicall
> teardown[0].send(outcome)
> File "/usr/lib/python3/dist-packages/_pytest/helpconfig.py", line 104, in
> pytest_cmdline_parse
> config: Config = outcome.get_result()
> ^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/pluggy/_result.py", line 114, in
> get_result
> raise exc.with_traceback(exc.__traceback__)
> File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 77, in
> _multicall
> res = hook_impl.function(*args)
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
> 1075, in pytest_cmdline_parse
> self.parse(args)
> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
> 1425, in parse
> self._preparse(args, addopts=addopts)
> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
> 1305, in _preparse
> self.pluginmanager.load_setuptools_entrypoints("pytest11")
> File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 398, in
> load_setuptools_entrypoints
> plugin = ep.load()
> ^^^^^^^^^
> File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
> module = import_module(match.group('module'))
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 994, in exec_module
> File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
> File "/usr/lib/python3/dist-packages/pytest_httpbin/plugin.py", line 3, in
> <module>
> from httpbin import app as httpbin_app
> File "/usr/lib/python3/dist-packages/httpbin/__init__.py", line 3, in
> <module>
> from .core import *
> File "/usr/lib/python3/dist-packages/httpbin/core.py", line 36, in <module>
> from flasgger import Swagger, NO_SANITIZER
> File "/usr/lib/python3/dist-packages/flasgger/__init__.py", line 10, in
> <module>
> from .base import Swagger, Flasgger, NO_SANITIZER, BR_SANITIZER,
> MK_SANITIZER, LazyJSONEncoder # noqa
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/flasgger/base.py", line 36, in <module>
> from .utils import extract_definitions
> File "/usr/lib/python3/dist-packages/flasgger/utils.py", line 5, in <module>
> import imp
> ModuleNotFoundError: No module named 'imp'
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build; python3.12 -m pytest
> tests -k "not test_use_proxy_from_environment and not TestGetEnvironProxies
> and not test_mixed_case_scheme_acceptable and not
> test_HTTP_200_OK_GET_ALTERNATIVE and not test_unicode_get and not
> test_HTTP_302_ALLOW_REDIRECT_GET and not test_HTTP_307_ALLOW_REDIRECT_POST
> and not test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE and not
> test_HTTP_302_TOO_MANY_REDIRECTS and not
> test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS and not
> test_http_301_changes_post_to_get and not
> test_http_301_doesnt_change_head_to_get and not
> test_http_302_changes_post_to_get and not
> test_http_302_doesnt_change_head_to_get and not
> test_http_303_changes_post_to_get and not
> test_http_303_doesnt_change_head_to_get and not
> test_header_and_body_removal_on_redirect and not
> test_transfer_enc_removal_on_redirect and not
> test_fragment_maintained_on_redirect and not test_HTTP_200_OK_GET_WITH_PARAMS
> and not test_HTTP_200_OK_GET_WITH_MIXED_PARAMS and not test_set_cookie_on_301
> and not test_cookie_sent_on_redirect and not test_cookie_removed_on_expire
> and not test_cookie_quote_wrapped and not test_cookie_persists_via_api and
> not test_request_cookie_overrides_session_cookie and not
> test_request_cookies_not_persisted and not test_generic_cookiejar_works and
> not test_param_cookiejar_works and not test_cookielib_cookiejar_on_redirect
> and not test_requests_in_history_are_not_overridden and not
> test_history_is_always_a_list and not test_user_agent_transfers and not
> test_HTTP_200_OK_HEAD and not test_HTTP_200_OK_PUT and not
> test_BASICAUTH_TUPLE_HTTP_200_OK_GET and not
> test_proxy_authorization_preserved_on_request and not
> test_basicauth_with_netrc and not test_DIGEST_HTTP_200_OK_GET and not
> test_DIGEST_AUTH_RETURNS_COOKIE and not test_DIGEST_AUTH_SETS_SESSION_COOKIES
> and not test_DIGEST_STREAM and not test_DIGESTAUTH_WRONG_HTTP_401_GET and not
> test_DIGESTAUTH_QUOTES_QOP_VALUE and not test_POSTBIN_GET_POST_FILES and not
> test_invalid_files_input and not test_POSTBIN_SEEKED_OBJECT_WITH_NO_ITER and
> not test_POSTBIN_GET_POST_FILES_WITH_DATA and not
> test_post_with_custom_mapping and not test_conflicting_post_params and not
> test_request_ok_set and not test_status_raising and not test_decompress_gzip
> and not test_unicode_header_name and not test_pyopenssl_redirect and not
> test_http_with_certificate and not test_certificate_failure and not
> test_urlencoded_get_query_multivalued_param and not
> test_different_encodings_dont_break_post and not test_unicode_multipart_post
> and not test_unicode_method_name and not
> test_unicode_method_name_with_request_object and not test_custom_content_type
> and not test_hook_receives_request_arguments and not
> test_prepared_request_hook and not test_prepared_from_session and not
> test_request_with_bytestring_host and not test_time_elapsed_blank and not
> test_request_and_response_are_pickleable and not
> test_prepared_request_is_pickleable and not
> test_prepared_request_with_file_is_pickleable and not
> test_prepared_request_with_hook_is_pickleable and not test_session_pickling
> and not test_fixes_1329 and not test_uppercase_scheme_redirect and not
> test_header_remove_is_case_insensitive and not
> test_params_are_merged_case_sensitive and not test_header_validation and not
> test_auth_is_stripped_on_http_downgrade and not
> test_auth_is_retained_for_redirect_on_host and not
> test_manual_redirect_with_partial_body_read and not
> test_redirect_with_wrong_gzipped_header and not
> test_requests_history_is_saved and not
> test_json_param_post_content_type_works and not test_response_iter_lines and
> not test_response_context_manager and not
> test_unconsumed_session_response_closes_connection and not
> test_response_json_when_content_is_None and not test_custom_redirect_mixin
> and not test_stream_timeout and not test_none_timeout and not
> test_read_timeout and not test_connect_timeout and not
> test_total_timeout_connect and not test_encoded_methods and not
> test_proxy_env_vars_override_default and not test_urllib3_retries and not
> test_redirecting_to_bad_url and not test_json_decode_compatibility and not
> test_set_environ and not test_json_decode_persists_doc_attr and not
> test_header_with_subclass_types and not test_urllib3_pool_connection_closed"
> I: pybuild base:310: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build; python3.11 -m pytest
> tests -k "not test_use_proxy_from_environment and not TestGetEnvironProxies
> and not test_mixed_case_scheme_acceptable and not
> test_HTTP_200_OK_GET_ALTERNATIVE and not test_unicode_get and not
> test_HTTP_302_ALLOW_REDIRECT_GET and not test_HTTP_307_ALLOW_REDIRECT_POST
> and not test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE and not
> test_HTTP_302_TOO_MANY_REDIRECTS and not
> test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS and not
> test_http_301_changes_post_to_get and not
> test_http_301_doesnt_change_head_to_get and not
> test_http_302_changes_post_to_get and not
> test_http_302_doesnt_change_head_to_get and not
> test_http_303_changes_post_to_get and not
> test_http_303_doesnt_change_head_to_get and not
> test_header_and_body_removal_on_redirect and not
> test_transfer_enc_removal_on_redirect and not
> test_fragment_maintained_on_redirect and not test_HTTP_200_OK_GET_WITH_PARAMS
> and not test_HTTP_200_OK_GET_WITH_MIXED_PARAMS and not test_set_cookie_on_301
> and not test_cookie_sent_on_redirect and not test_cookie_removed_on_expire
> and not test_cookie_quote_wrapped and not test_cookie_persists_via_api and
> not test_request_cookie_overrides_session_cookie and not
> test_request_cookies_not_persisted and not test_generic_cookiejar_works and
> not test_param_cookiejar_works and not test_cookielib_cookiejar_on_redirect
> and not test_requests_in_history_are_not_overridden and not
> test_history_is_always_a_list and not test_user_agent_transfers and not
> test_HTTP_200_OK_HEAD and not test_HTTP_200_OK_PUT and not
> test_BASICAUTH_TUPLE_HTTP_200_OK_GET and not
> test_proxy_authorization_preserved_on_request and not
> test_basicauth_with_netrc and not test_DIGEST_HTTP_200_OK_GET and not
> test_DIGEST_AUTH_RETURNS_COOKIE and not test_DIGEST_AUTH_SETS_SESSION_COOKIES
> and not test_DIGEST_STREAM and not test_DIGESTAUTH_WRONG_HTTP_401_GET and not
> test_DIGESTAUTH_QUOTES_QOP_VALUE and not test_POSTBIN_GET_POST_FILES and not
> test_invalid_files_input and not test_POSTBIN_SEEKED_OBJECT_WITH_NO_ITER and
> not test_POSTBIN_GET_POST_FILES_WITH_DATA and not
> test_post_with_custom_mapping and not test_conflicting_post_params and not
> test_request_ok_set and not test_status_raising and not test_decompress_gzip
> and not test_unicode_header_name and not test_pyopenssl_redirect and not
> test_http_with_certificate and not test_certificate_failure and not
> test_urlencoded_get_query_multivalued_param and not
> test_different_encodings_dont_break_post and not test_unicode_multipart_post
> and not test_unicode_method_name and not
> test_unicode_method_name_with_request_object and not test_custom_content_type
> and not test_hook_receives_request_arguments and not
> test_prepared_request_hook and not test_prepared_from_session and not
> test_request_with_bytestring_host and not test_time_elapsed_blank and not
> test_request_and_response_are_pickleable and not
> test_prepared_request_is_pickleable and not
> test_prepared_request_with_file_is_pickleable and not
> test_prepared_request_with_hook_is_pickleable and not test_session_pickling
> and not test_fixes_1329 and not test_uppercase_scheme_redirect and not
> test_header_remove_is_case_insensitive and not
> test_params_are_merged_case_sensitive and not test_header_validation and not
> test_auth_is_stripped_on_http_downgrade and not
> test_auth_is_retained_for_redirect_on_host and not
> test_manual_redirect_with_partial_body_read and not
> test_redirect_with_wrong_gzipped_header and not
> test_requests_history_is_saved and not
> test_json_param_post_content_type_works and not test_response_iter_lines and
> not test_response_context_manager and not
> test_unconsumed_session_response_closes_connection and not
> test_response_json_when_content_is_None and not test_custom_redirect_mixin
> and not test_stream_timeout and not test_none_timeout and not
> test_read_timeout and not test_connect_timeout and not
> test_total_timeout_connect and not test_encoded_methods and not
> test_proxy_env_vars_override_default and not test_urllib3_retries and not
> test_redirecting_to_bad_url and not test_json_decode_compatibility and not
> test_set_environ and not test_json_decode_persists_doc_attr and not
> test_header_with_subclass_types and not test_urllib3_pool_connection_closed"
> /usr/lib/python3/dist-packages/flasgger/utils.py:5: DeprecationWarning: the
> imp module is deprecated in favour of importlib and slated for removal in
> Python 3.12; see the module's documentation for alternative uses
> import imp
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build
> configfile: pyproject.toml
> plugins: httpbin-1.0.0, mock-3.12.0
> collected 596 items / 167 deselected / 429 selected
>
> tests/test_help.py ... [
> 0%]
> tests/test_hooks.py ... [
> 1%]
> tests/test_lowlevel.py ........... [
> 3%]
> tests/test_packages.py ... [
> 4%]
> tests/test_requests.py ................................................. [
> 16%]
> ........................................................................ [
> 32%]
> ........................................................................ [
> 49%]
> ....... [
> 51%]
> tests/test_structures.py .................... [
> 55%]
> tests/test_testserver.py ......s.... [
> 58%]
> tests/test_utils.py ..s................................................. [
> 70%]
> ........................................................................ [
> 87%]
> ...........................................sssssssssss
> [100%]
>
> =============================== warnings summary
> ===============================
> tests/test_requests.py::TestRequests::test_set_basicauth[42-42]
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:36:
> DeprecationWarning: Non-string usernames will no longer be supported in
> Requests 3.0.0. Please convert the object you've passed in (42) to a string
> or bytes object in the near future to avoid problems.
> warnings.warn(
>
> tests/test_requests.py::TestRequests::test_set_basicauth[42-42]
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:46:
> DeprecationWarning: Non-string passwords will no longer be supported in
> Requests 3.0.0. Please convert the object you've passed in (<class 'int'>) to
> a string or bytes object in the near future to avoid problems.
> warnings.warn(
>
> tests/test_requests.py::TestRequests::test_set_basicauth[None-None]
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:36:
> DeprecationWarning: Non-string usernames will no longer be supported in
> Requests 3.0.0. Please convert the object you've passed in (None) to a string
> or bytes object in the near future to avoid problems.
> warnings.warn(
>
> tests/test_requests.py::TestRequests::test_set_basicauth[None-None]
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:46:
> DeprecationWarning: Non-string passwords will no longer be supported in
> Requests 3.0.0. Please convert the object you've passed in (<class
> 'NoneType'>) to a string or bytes object in the near future to avoid problems.
> warnings.warn(
>
> tests/test_requests.py::TestRequests::test_https_warnings
> /usr/lib/python3/dist-packages/_pytest/python.py:194:
> PytestRemovedIn8Warning: Passing None has been deprecated.
> See
> https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests
> for alternatives in common use cases.
> result = testfunction(**testargs)
>
> tests/test_requests.py::TestRequests::test_https_warnings
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:911: ResourceWarning:
> unclosed <ssl.SSLSocket fd=13, family=2, type=1, proto=0, laddr=('127.0.0.1',
> 36273)>
> next(it)
> Enable tracemalloc to get traceback where the object was allocated.
> See
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
> for more info.
>
> tests/test_testserver.py::TestTestServer::test_server_closes
> /usr/lib/python3/dist-packages/_pytest/python.py:194: ResourceWarning:
> unclosed <socket.socket fd=13, family=2, type=1, proto=0, laddr=('0.0.0.0',
> 55848)>
> result = testfunction(**testargs)
> Enable tracemalloc to get traceback where the object was allocated.
> See
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
> for more info.
>
> tests/test_testserver.py::TestTestServer::test_basic_waiting_server
> /usr/lib/python3/dist-packages/_pytest/python.py:194: ResourceWarning:
> unclosed <socket.socket fd=14, family=2, type=1, proto=0, laddr=('127.0.0.1',
> 56692)>
> result = testfunction(**testargs)
> Enable tracemalloc to get traceback where the object was allocated.
> See
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
> for more info.
>
> tests/test_utils.py::TestContentEncodingDetection::test_none
> tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<meta
> charset="UTF-8">]
> tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<meta
> http-equiv="Content-type" content="text/html;charset=UTF-8">]
> tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<meta
> http-equiv="Content-type" content="text/html;charset=UTF-8" />]
> tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<?xml
> version="1.0" encoding="UTF-8"?>]
> tests/test_utils.py::TestContentEncodingDetection::test_precedence
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/utils.py:493:
> DeprecationWarning: In requests 3.0, get_encodings_from_content will be
> removed. For more information, please see the discussion on issue #2266.
> (This warning should only appear once.)
> warnings.warn(
>
> tests/test_utils.py::test_should_bypass_proxies_win_registry_bad_values
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:701: ResourceWarning:
> unclosed <socket.socket fd=11, family=2, type=1, proto=0, laddr=('127.0.0.1',
> 38251)>
> subrequest.node.addfinalizer(lambda:
> fixturedef.finish(request=subrequest))
> Enable tracemalloc to get traceback where the object was allocated.
> See
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
> for more info.
>
> tests/test_utils.py::test_should_bypass_proxies_win_registry_bad_values
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:701: ResourceWarning:
> unclosed <socket.socket fd=12, family=2, type=1, proto=0, laddr=('127.0.0.1',
> 43255)>
> subrequest.node.addfinalizer(lambda:
> fixturedef.finish(request=subrequest))
> Enable tracemalloc to get traceback where the object was allocated.
> See
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
> for more info.
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ======== 416 passed, 13 skipped, 167 deselected, 16 warnings in 31.26s
> =========
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11"
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/12/12/requests_2.31.0+dfsg-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&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.
--- End Message ---