Fedora Account System
Red Hat Associate
Red Hat Customer
python-plaster fails to build with Python 3.16.0a2. _______________________________ TestURL.test_url _______________________________ self = <tests.test_uri.TestURL object at 0x7faadfea9f30> def test_url(self): > uri = self._callFUT("redis://username@password:localhost/foo?a=b#main") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_uri.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_uri.py:10: in _callFUT return parse_uri(uri) ^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.16/site-packages/plaster/uri.py:87: in parse_uri parts = parse.urlparse(config_uri) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.16/urllib/parse.py:486: in urlparse scheme, netloc, url, params, query, fragment = _urlparse(url, scheme, allow_fragments) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.16/urllib/parse.py:499: in _urlparse scheme, netloc, url, query, fragment = _urlsplit(url, scheme, allow_fragments) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.16/urllib/parse.py:646: in _urlsplit _checknetloc(netloc) /usr/lib64/python3.16/urllib/parse.py:547: in _checknetloc _validate_port(port) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ port = 'localhost' def _validate_port(port): if port.isdigit() and port.isascii(): port = int(port) else: > raise ValueError(f"Port could not be cast to integer value as {port!r}") E ValueError: Port could not be cast to integer value as 'localhost' https://docs.python.org/3.16/whatsnew/3.16.html: urllib.parse.urlsplit() and urllib.parse.urlparse() now raise ValueError when the URL is parsed if the port is not a decimal number or is outside the range 0–65535. Previously, the error was only raised when the port attribute was read. This also affects urljoin(), and urldefrag() for URLs with a fragment. Code which never read port may now fail on URLs such as: SCP-style addresses given a scheme, such as git+ssh://git:org/repo.git; multi-host URLs with ports, such as mongodb://h1:27017,h2:27017/db or postgresql://h1:5432,h2:5433/db; URL templates with a placeholder port, such as http://localhost:{port}/. These are not valid URLs under RFC 3986. To process them, split off the netloc yourself before calling urlsplit(), for example by replacing it with a placeholder host, or fill in templates before parsing them. (Contributed by Miguel Brito and Senthil Kumaran in gh-88037.) For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359674-python-plaster/ For all our attempts to build python-plaster with Python 3.16, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/python-plaster/ 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.16: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/ Let us know here if you have any questions. Python 3.16 is planned to be included in Fedora 47. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16. 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.