python-oauthlib fails to build with Python 3.13.0a1. ________________________ 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 =========================== short test summary info ============================ FAILED tests/oauth1/rfc5849/test_utils.py::UtilsTests::test_filter_params - A... Compiler now strip indents from docstrings. This will reduce the size of bytecode cache (e.g. .pyc file). For example, cache file size for sqlalchemy.orm.session in SQLAlchemy 2.0 is reduced by about 5%. This change will affect tools using docstrings, like doctest. (Contributed by Inada Naoki in gh-81283.) https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06573295-python-oauthlib/ For all our attempts to build python-oauthlib with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-oauthlib/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
I've proposed a fix in https://src.fedoraproject.org/rpms/python-oauthlib/pull-request/10 -- it has been built in our Copr as well, which is why some of the builds at https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-oauthlib/ are successful.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.