public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-oci] rawhide: fix(spec): drop unpackaged python-pkcs11 dependency
@ 2026-11-06 21:02 Major Hayden
0 siblings, 0 replies; only message in thread
From: Major Hayden @ 2026-11-06 21:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-oci
Branch : rawhide
Commit : 77149df6e903a33c2c54100cad97e11585efdeca
Author : Major Hayden <major@redhat.com>
Date : 2026-11-06T14:58:48-06:00
Stats : +9/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-oci/c/77149df6e903a33c2c54100cad97e11585efdeca?branch=rawhide
Log:
fix(spec): drop unpackaged python-pkcs11 dependency
- Upstream 2.190.0 declares python-pkcs11 as a hard requirement but Fedora has no python-pkcs11 package, so buildroot dependency resolution fails.
- Upstream guards the pkcs11 import behind try/except in oci/auth/signers/__init__.py, so the SDK works without it and only the PKCS#11 signers are unavailable.
- Skip the oci.auth.signers.pkcs11_signer import check because that module imports pkcs11 unconditionally.
Signed-off-by: Major Hayden <major@redhat.com>
---
diff --git a/python-oci.spec b/python-oci.spec
index 9846779..bffcc83 100644
--- a/python-oci.spec
+++ b/python-oci.spec
@@ -60,6 +60,13 @@ Requires: python3dist(six)
# Remove upper limits and pinned dependencies.
sed -i -e 's/,[<= ]\+[0-9\.]\+//' -e 's/==/>=/' pyproject.toml
+# Fedora has no python-pkcs11 package and nothing provides
+# python3dist(python-pkcs11). Upstream treats it as an optional dependency:
+# the import is wrapped in try/except in oci/auth/signers/__init__.py, so
+# the SDK imports and works without it. Only the PKCS#11 signers are
+# unavailable until python-pkcs11 is packaged in Fedora.
+sed -i '/python-pkcs11/d' pyproject.toml
+
# Compatibility with pytest 7.4.0
# reported upstream: https://github.com/oracle/oci-python-sdk/issues/565
sed -i 's/--config-file/--config-file-path/' tests/conftest.py
@@ -78,7 +85,8 @@ sed -i 's/--config-file/--config-file-path/' tests/conftest.py
%check
-%pyproject_check_import -e 'oci.addons.*'
+# oci.auth.signers.pkcs11_signer imports the unpackaged python-pkcs11 module.
+%pyproject_check_import -e 'oci.addons.*' -e 'oci.auth.signers.pkcs11_signer'
%if %{with tests}
%pytest tests/autogentest tests/unit tests/integ
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-06 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 21:02 [rpms/python-oci] rawhide: fix(spec): drop unpackaged python-pkcs11 dependency Major Hayden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox