Fedora Account System
Red Hat Associate
Red Hat Customer
ramalama fails to build with Python 3.16.0a2. ______________________ test_list_models_timezones_in_utc _______________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe99204590> def test_list_models_timezones_in_utc(monkeypatch): label_output = ( '{"name":"oci://localhost/demo:latest","modified":"2026-01-01 00:00:00 +0000","size":123,"ID":"sha256:a"},' ) manifest_output = ( '{"name":"oci://localhost/manifest:latest","modified":"2026-01-01 00:00:00 +0000","size":234,"ID":"sha256:b"},' ) artifact_output = ( '{"name":"oci://localhost/artifact:latest","created":"2026-01-01 00:00:00 +0000","size":"1KB","ID":"sha256:c"},' ) artifact_inspect_output = { "Manifest": { "artifactType": oci_tools.oci_annotations.ArtifactTypeModelManifest, } } def fake_run_cmd(args, **kwargs): if args[:4] == ["podman", "images", "--filter", "label=org.containers.type"]: return _result(label_output) if args[:4] == ["podman", "images", "--filter", "manifest=true"]: return _result(manifest_output) if args[:3] == ["podman", "artifact", "ls"]: return _result(artifact_output) if args[:3] == ["podman", "artifact", "inspect"]: return _result(json.dumps(artifact_inspect_output)) raise AssertionError(f"Unexpected command: {args}") monkeypatch.setattr(oci_tools, "run_cmd", fake_run_cmd) monkeypatch.setattr(oci_tools, "engine_supports_manifest_attributes", lambda engine: False) models = oci_tools.list_models(EngineArgs(engine="podman")) > assert all(isinstance(m['modified'], datetime) for m in models) E assert False E + where False = all(<generator object test_list_models_timezones_in_utc.<locals>.<genexpr> at 0x7fbe9946bf10>) https://docs.python.org/3.16/whatsnew/3.16.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359730-ramalama/ For all our attempts to build ramalama with Python 3.16, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/ramalama/ 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.