python-httplib2 fails to build with Python 3.9.5 and 3.10.0b1: ______________________________ test_inject_space _______________________________ tests/test_http.py:738: in test_inject_space assert req.uri == "/?q=%20HTTP/1.1%0D%0Aignore-http:" E AssertionError: assert '/?q=%20HTTP/1.1ignore-http:' == '/?q=%20HTTP/...Aignore-http:' E - /?q=%20HTTP/1.1%0D%0Aignore-http: E ? ------ E + /?q=%20HTTP/1.1ignore-http: content = b'GET /?q=%20HTTP/1.1ignore-http: HTTP/1.1\r\nHost: localhost:60717\r\nuser-agent: Python-httplib2/0.19.1 (gzip)\r\naccept-encoding: gzip, deflate\r\n\r\n' danger_url = 'http://localhost:60717/?q= HTTP/1.1ignore-http:' http = <httplib2.Http object at 0x7f8525f2cf70> req = <class 'tests.HttpRequest'> {'headers': {'host': 'localhost:60717', 'user-agent': 'Python-httplib2/0.19.1 (gzip)', 'ac...hod': 'GET', 'uri': '/?q=%20HTTP/1.1ignore-http:', 'proto': 'HTTP/1.1', 'version': '1.1', 'body': b'', 'body_raw': b''} response = {'content-length': '142', 'status': '200', 'content-location': 'http://localhost:60717/?q=%20HTTP/1.1ignore-http:'} uri = 'http://localhost:60717/' https://koschei.fedoraproject.org/package/python-httplib2 This is might be related to some space related security changes in Python: https://docs.python.org/release/3.9.5/whatsnew/changelog.html#python-3-9-5-final For the build logs with Python 3.10, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02171185-python-httplib2/ For all our attempts to build python-httplib2 with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-httplib2/ 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.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. 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.
Workaround in https://src.fedoraproject.org/rpms/python-httplib2/pull-request/7
FEDORA-2021-0d5edf7c76 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0d5edf7c76
FEDORA-2021-0d5edf7c76 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.