Bug 2576468
| Summary: | python-git-changelog fails to build with Python 3.16: ValueError: Port could not be cast to integer value as 'example' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-git-changelog | Assignee: | Felix Wang <topazus> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ksurma, mhroncok, neuro-sig, python-packagers-sig, topazus, vanessaigwe1 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-git-changelog-2.12.0-2.fc46 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-11-21 07:12:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2567340 | ||
FEDORA-2026-7b579365a1 (python-git-changelog-2.12.0-2.fc46) has been submitted as an update to Fedora 46. https://bodhi.fedoraproject.org/updates/FEDORA-2026-7b579365a1 FEDORA-2026-7b579365a1 (python-git-changelog-2.12.0-2.fc46) has been pushed to the Fedora 46 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-318ca2dde5 (python-git-changelog-2.12.0-2.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-318ca2dde5 |
python-git-changelog fails to build with Python 3.16.0a2. ________________ test_removing_credentials_from_remotes[repo1] _________________ repo = <tests.helpers.GitRepo object at 0x7fdd3b886510> @pytest.mark.parametrize("repo", [VERSIONS, VERSIONS_V], indirect=True) def test_removing_credentials_from_remotes(repo: GitRepo) -> None: """Remove credentials from remotes. Parameters: repo: Temporary Git repository (fixture). """ credentials = [ "ghp_abcdefghijklmnOPQRSTUVWXYZ0123456789", "ghs_abcdefghijklmnOPQRSTUVWXYZ0123456789", "github_pat_abcdefgOPQRS0123456789_abcdefghijklmnOPQRSTUVWXYZ0123456789abcdefgOPQRS0123456789A", "user:password", ] for creds in credentials: repo.git("remote", "set-url", "origin", f"https://{creds}@github.com:example/example") > changelog = Changelog(repo.path) ^^^^^^^^^^^^^^^^^^^^ tests/test_end_to_end.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.16/site-packages/git_changelog/_internal/build.py:290: in __init__ remote_url = self.get_remote_url() ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.16/site-packages/git_changelog/_internal/build.py:406: in get_remote_url urlparts = list(urlsplit(git_url)) ^^^^^^^^^^^^^^^^^ /usr/lib64/python3.16/urllib/parse.py:604: in urlsplit 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 = 'example' 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 'example' /usr/lib64/python3.16/urllib/parse.py:166: ValueError 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/11359647-python-git-changelog/ For all our attempts to build python-git-changelog with Python 3.16, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/python-git-changelog/ 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.