Source: python-oauthlib Version: 3.2.2-1 Severity: normal User: [email protected] Usertags: python3.13 Forwarded: https://github.com/oauthlib/oauthlib/pull/866
This package failed build from source when test-built against a version of python3-defaults that includes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_oauthlib/build; python3.13 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> plugins: typeguard-4.3.0 collected 654 items tests/oauth1/rfc5849/endpoints/test_access_token.py ....... [ 1%] tests/oauth1/rfc5849/endpoints/test_authorization.py ..... [ 1%] tests/oauth1/rfc5849/endpoints/test_base.py ................... [ 4%] tests/oauth1/rfc5849/endpoints/test_request_token.py ........ [ 5%] tests/oauth1/rfc5849/endpoints/test_resource.py ....... [ 7%] tests/oauth1/rfc5849/endpoints/test_signature_only.py .... [ 7%] tests/oauth1/rfc5849/test_client.py ......................... [ 11%] tests/oauth1/rfc5849/test_parameters.py ..... [ 12%] tests/oauth1/rfc5849/test_request_validator.py ... [ 12%] tests/oauth1/rfc5849/test_signatures.py ................ [ 15%] tests/oauth1/rfc5849/test_utils.py ..F.. [ 15%] tests/oauth2/rfc6749/clients/test_backend_application.py .. [ 16%] tests/oauth2/rfc6749/clients/test_base.py ........... [ 17%] tests/oauth2/rfc6749/clients/test_legacy_application.py ... [ 18%] tests/oauth2/rfc6749/clients/test_mobile_application.py ... [ 18%] tests/oauth2/rfc6749/clients/test_service_application.py ... [ 19%] tests/oauth2/rfc6749/clients/test_web_application.py ....... [ 20%] tests/oauth2/rfc6749/endpoints/test_base_endpoint.py .... [ 20%] tests/oauth2/rfc6749/endpoints/test_client_authentication.py ....... [ 22%] tests/oauth2/rfc6749/endpoints/test_credentials_preservation.py ..... [ 22%] tests/oauth2/rfc6749/endpoints/test_error_responses.py ................. [ 25%] ..... [ 26%] tests/oauth2/rfc6749/endpoints/test_extra_credentials.py .. [ 26%] tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py ........... [ 28%] tests/oauth2/rfc6749/endpoints/test_metadata.py ....... [ 29%] tests/oauth2/rfc6749/endpoints/test_resource_owner_association.py .... [ 29%] tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py ........ [ 31%] tests/oauth2/rfc6749/endpoints/test_scope_handling.py .... [ 31%] tests/oauth2/rfc6749/grant_types/test_authorization_code.py ............ [ 33%] ............................ [ 37%] tests/oauth2/rfc6749/grant_types/test_client_credentials.py ..... [ 38%] tests/oauth2/rfc6749/grant_types/test_implicit.py ... [ 38%] tests/oauth2/rfc6749/grant_types/test_refresh_token.py ................. [ 41%] . [ 41%] tests/oauth2/rfc6749/grant_types/test_resource_owner_password.py ....... [ 42%] ..... [ 43%] tests/oauth2/rfc6749/test_parameters.py ........ [ 44%] tests/oauth2/rfc6749/test_request_validator.py . [ 44%] tests/oauth2/rfc6749/test_server.py ................. [ 47%] tests/oauth2/rfc6749/test_tokens.py ........ [ 48%] tests/oauth2/rfc6749/test_utils.py ....... [ 49%] tests/oauth2/rfc8628/clients/test_device.py .. [ 50%] tests/openid/connect/core/endpoints/test_claims_handling.py .. [ 50%] tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py . [ 50%] .. [ 50%] tests/openid/connect/core/endpoints/test_userinfo_endpoint.py ...... [ 51%] tests/openid/connect/core/grant_types/test_authorization_code.py ....... [ 52%] ........................................................................ [ 63%] ...... [ 64%] tests/openid/connect/core/grant_types/test_base.py ........ [ 66%] tests/openid/connect/core/grant_types/test_dispatchers.py ....... [ 67%] tests/openid/connect/core/grant_types/test_hybrid.py ................... [ 70%] ........................................................................ [ 81%] ............ [ 82%] tests/openid/connect/core/grant_types/test_implicit.py .............. [ 85%] tests/openid/connect/core/grant_types/test_refresh_token.py ............ [ 86%] ........................... [ 90%] tests/openid/connect/core/test_request_validator.py . [ 91%] tests/openid/connect/core/test_server.py ........ [ 92%] tests/openid/connect/core/test_tokens.py ....... [ 93%] tests/test_common.py ................................ [ 98%] tests/test_uri_validate.py ......ss... [100%] =================================== FAILURES =================================== ________________________ UtilsTests.test_filter_params _________________________ self = <tests.oauth1.rfc5849.test_utils.UtilsTests testMethod=test_filter_params> def test_filter_params(self): # The following is an isolated test function used to test the filter_params decorator. @filter_params def special_test_function(params, realm=None): """ I am a special test function """ return 'OAuth ' + ','.join(['='.join([k, v]) for k, v in params]) # check that the docstring got through > self.assertEqual(special_test_function.__doc__, " I am a special test > function ") E AssertionError: 'I am a special test function ' != ' I am a special test function ' E - I am a special test function E + I am a special test function E ? + tests/oauth1/rfc5849/test_utils.py:60: AssertionError =============================== warnings summary =============================== .pybuild/cpython3_3.13_oauthlib/build/tests/oauth2/rfc6749/clients/test_web_application.py::WebApplicationClientTest::test_prepare_request_body /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_oauthlib/build/oauthlib/oauth2/rfc6749/clients/web_application.py:163: DeprecationWarning: `client_id` has been deprecated in favor of `include_client_id`, a boolean value which will include the already configured `self.client_id`. warnings.warn("`client_id` has been deprecated in favor of " .pybuild/cpython3_3.13_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_authorization_grant .pybuild/cpython3_3.13_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_client_grant .pybuild/cpython3_3.13_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_password_grant .pybuild/cpython3_3.13_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_scopes_and_user_id_stored_in_access_token /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_oauthlib/build/oauthlib/common.py:203: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = datetime.datetime.utcnow() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/oauth1/rfc5849/test_utils.py::UtilsTests::test_filter_params - A... ============= 1 failed, 651 passed, 2 skipped, 5 warnings in 3.90s ============= E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_oauthlib/build; python3.13 -m pytest tests I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_oauthlib/build; python3.12 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> plugins: typeguard-4.3.0 collected 654 items tests/oauth1/rfc5849/endpoints/test_access_token.py ....... [ 1%] tests/oauth1/rfc5849/endpoints/test_authorization.py ..... [ 1%] tests/oauth1/rfc5849/endpoints/test_base.py ................... [ 4%] tests/oauth1/rfc5849/endpoints/test_request_token.py ........ [ 5%] tests/oauth1/rfc5849/endpoints/test_resource.py ....... [ 7%] tests/oauth1/rfc5849/endpoints/test_signature_only.py .... [ 7%] tests/oauth1/rfc5849/test_client.py ......................... [ 11%] tests/oauth1/rfc5849/test_parameters.py ..... [ 12%] tests/oauth1/rfc5849/test_request_validator.py ... [ 12%] tests/oauth1/rfc5849/test_signatures.py ................ [ 15%] tests/oauth1/rfc5849/test_utils.py ..... [ 15%] tests/oauth2/rfc6749/clients/test_backend_application.py .. [ 16%] tests/oauth2/rfc6749/clients/test_base.py ........... [ 17%] tests/oauth2/rfc6749/clients/test_legacy_application.py ... [ 18%] tests/oauth2/rfc6749/clients/test_mobile_application.py ... [ 18%] tests/oauth2/rfc6749/clients/test_service_application.py ... [ 19%] tests/oauth2/rfc6749/clients/test_web_application.py ....... [ 20%] tests/oauth2/rfc6749/endpoints/test_base_endpoint.py .... [ 20%] tests/oauth2/rfc6749/endpoints/test_client_authentication.py ....... [ 22%] tests/oauth2/rfc6749/endpoints/test_credentials_preservation.py ..... [ 22%] tests/oauth2/rfc6749/endpoints/test_error_responses.py ................. [ 25%] ..... [ 26%] tests/oauth2/rfc6749/endpoints/test_extra_credentials.py .. [ 26%] tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py ........... [ 28%] tests/oauth2/rfc6749/endpoints/test_metadata.py ....... [ 29%] tests/oauth2/rfc6749/endpoints/test_resource_owner_association.py .... [ 29%] tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py ........ [ 31%] tests/oauth2/rfc6749/endpoints/test_scope_handling.py .... [ 31%] tests/oauth2/rfc6749/grant_types/test_authorization_code.py ............ [ 33%] ............................ [ 37%] tests/oauth2/rfc6749/grant_types/test_client_credentials.py ..... [ 38%] tests/oauth2/rfc6749/grant_types/test_implicit.py ... [ 38%] tests/oauth2/rfc6749/grant_types/test_refresh_token.py ................. [ 41%] . [ 41%] tests/oauth2/rfc6749/grant_types/test_resource_owner_password.py ....... [ 42%] ..... [ 43%] tests/oauth2/rfc6749/test_parameters.py ........ [ 44%] tests/oauth2/rfc6749/test_request_validator.py . [ 44%] tests/oauth2/rfc6749/test_server.py ................. [ 47%] tests/oauth2/rfc6749/test_tokens.py ........ [ 48%] tests/oauth2/rfc6749/test_utils.py ....... [ 49%] tests/oauth2/rfc8628/clients/test_device.py .. [ 50%] tests/openid/connect/core/endpoints/test_claims_handling.py .. [ 50%] tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py . [ 50%] .. [ 50%] tests/openid/connect/core/endpoints/test_userinfo_endpoint.py ...... [ 51%] tests/openid/connect/core/grant_types/test_authorization_code.py ....... [ 52%] ........................................................................ [ 63%] ...... [ 64%] tests/openid/connect/core/grant_types/test_base.py ........ [ 66%] tests/openid/connect/core/grant_types/test_dispatchers.py ....... [ 67%] tests/openid/connect/core/grant_types/test_hybrid.py ................... [ 70%] ........................................................................ [ 81%] ............ [ 82%] tests/openid/connect/core/grant_types/test_implicit.py .............. [ 85%] tests/openid/connect/core/grant_types/test_refresh_token.py ............ [ 86%] ........................... [ 90%] tests/openid/connect/core/test_request_validator.py . [ 91%] tests/openid/connect/core/test_server.py ........ [ 92%] tests/openid/connect/core/test_tokens.py ....... [ 93%] tests/test_common.py ................................ [ 98%] tests/test_uri_validate.py ......ss... [100%] =============================== warnings summary =============================== .pybuild/cpython3_3.12_oauthlib/build/tests/oauth2/rfc6749/clients/test_web_application.py::WebApplicationClientTest::test_prepare_request_body /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_oauthlib/build/oauthlib/oauth2/rfc6749/clients/web_application.py:163: DeprecationWarning: `client_id` has been deprecated in favor of `include_client_id`, a boolean value which will include the already configured `self.client_id`. warnings.warn("`client_id` has been deprecated in favor of " .pybuild/cpython3_3.12_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_authorization_grant .pybuild/cpython3_3.12_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_client_grant .pybuild/cpython3_3.12_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_password_grant .pybuild/cpython3_3.12_oauthlib/build/tests/oauth2/rfc6749/test_server.py::SignedTokenEndpointTest::test_scopes_and_user_id_stored_in_access_token /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_oauthlib/build/oauthlib/common.py:203: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = datetime.datetime.utcnow() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 652 passed, 2 skipped, 5 warnings in 3.99s ================== dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 make: *** [debian/rules:8: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T04:46:47Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/786499/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano

