public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Major Hayden <major@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-oci] rawhide: fix(spec): drop unpackaged python-pkcs11 dependency
Date: Fri, 06 Nov 2026 21:02:21 GMT [thread overview]
Message-ID: <179399894179.1.15560606566622636726.rpms-python-oci-77149df6e903@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-06 21:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179399894179.1.15560606566622636726.rpms-python-oci-77149df6e903@fedoraproject.org \
--to=major@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox