[packages/python3-amqp] Up to 5.4.2
arekm
arekm at pld-linux.org
Thu Nov 12 07:16:33 CET 2026
commit 9ff387d36bae5c4ace1a52be61f430500a3cc1f2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 01:00:16 2026 +0100
Up to 5.4.2
python3-amqp-test-gssapi-installed.patch | 21 +++++++++++++++++++++
python3-amqp.spec | 10 ++++++----
2 files changed, 27 insertions(+), 4 deletions(-)
---
diff --git a/python3-amqp.spec b/python3-amqp.spec
index 2a11e7f..78162b7 100644
--- a/python3-amqp.spec
+++ b/python3-amqp.spec
@@ -7,14 +7,15 @@
Summary: AMQP 0.9.1 client library
Summary(pl.UTF-8): Biblioteka kliencka AMQP 0.9.1
Name: python3-%{module}
-Version: 5.3.1
+Version: 5.4.2
Release: 1
License: BSD
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/a/amqp/%{module}-%{version}.tar.gz
-# Source0-md5: 6f23f380ba02c1dbdc035f5f90c31475
+# Source0-md5: e24be083720d7976b3e4211078588eb8
+Patch0: %{name}-test-gssapi-installed.patch
URL: https://amqp.readthedocs.io/
-BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-modules >= 1:3.10
BuildRequires: python3-setuptools >= 1:20.6.7
%if %{with tests}
BuildRequires: python3-pytest >= 6.2.5
@@ -30,7 +31,7 @@ BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: python3-sphinx_celery >= 2.1.3
BuildRequires: sphinx-pdg-3
%endif
-Requires: python3-modules >= 1:3.7
+Requires: python3-modules >= 1:3.10
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -62,6 +63,7 @@ Dokumentacja API modułu amqp.
%prep
%setup -q -n %{module}-%{version}
+%patch -P0 -p1
%build
%py3_build
diff --git a/python3-amqp-test-gssapi-installed.patch b/python3-amqp-test-gssapi-installed.patch
new file mode 100644
index 0000000..69b4b29
--- /dev/null
+++ b/python3-amqp-test-gssapi-installed.patch
@@ -0,0 +1,21 @@
+test_gssapi_missing fails whenever python3-gssapi is installed: popping it from
+sys.modules only makes the next import load it again.
+
+--- amqp-5.4.2.orig/t/unit/test_sasl.py 2026-09-19 09:36:43.302515000 +0200
++++ amqp-5.4.2/t/unit/test_sasl.py 2026-11-12 00:59:21.886740649 +0100
+@@ -50,12 +50,11 @@
+ assert response == NotImplemented
+
+ def test_gssapi_missing(self):
+- gssapi = sys.modules.pop('gssapi', None)
+- GSSAPI = sasl._get_gssapi_mechanism()
++ # popping it is not enough: an installed gssapi is just re-imported
++ with patch.dict(sys.modules, {'gssapi': None}):
++ GSSAPI = sasl._get_gssapi_mechanism()
+ with pytest.raises(NotImplementedError):
+ GSSAPI()
+- if gssapi is not None:
+- sys.modules['gssapi'] = gssapi
+
+ @contextlib.contextmanager
+ def fake_gssapi(self):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-amqp.git/commitdiff/9ff387d36bae5c4ace1a52be61f430500a3cc1f2
More information about the pld-cvs-commit
mailing list