Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-kafka-python for openSUSE:Factory checked in at 2022-10-12 18:24:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-kafka-python (Old) and /work/SRC/openSUSE:Factory/.python-kafka-python.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-kafka-python" Wed Oct 12 18:24:15 2022 rev:10 rq:1009965 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-kafka-python/python-kafka-python.changes 2022-09-07 11:06:34.372488308 +0200 +++ /work/SRC/openSUSE:Factory/.python-kafka-python.new.2275/python-kafka-python.changes 2022-10-12 18:25:42.481816849 +0200 @@ -1,0 +2,6 @@ +Wed Oct 12 02:26:13 UTC 2022 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch remove-mock.patch: + * Remove use of mock. + +------------------------------------------------------------------- New: ---- remove-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-kafka-python.spec ++++++ --- /var/tmp/diff_new_pack.eQQIJo/_old 2022-10-12 18:25:43.289818868 +0200 +++ /var/tmp/diff_new_pack.eQQIJo/_new 2022-10-12 18:25:43.293818877 +0200 @@ -29,6 +29,8 @@ Source2: https://raw.githubusercontent.com/dpkp/kafka-python/master/test/conftest.py Source3: https://raw.githubusercontent.com/dpkp/kafka-python/master/test/fixtures.py Source4: https://raw.githubusercontent.com/dpkp/kafka-python/master/test/service.py +# PATCH-FIX-OPENSUSE Remove use of mock module +Patch0: remove-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -39,7 +41,6 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module lz4} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-snappy} @@ -55,7 +56,7 @@ is also supported for message sets. %prep -%setup -q -n kafka-python-%{version} +%autosetup -p1 -n kafka-python-%{version} mkdir -p servers/0.11.0.2/resources/ cp %{SOURCE1} servers/0.11.0.2/resources/ ++++++ remove-mock.patch ++++++ Index: kafka-python-2.0.2/test/test_consumer_integration.py =================================================================== --- kafka-python-2.0.2.orig/test/test_consumer_integration.py +++ kafka-python-2.0.2/test/test_consumer_integration.py @@ -1,7 +1,10 @@ import logging import time -from mock import patch +try: + from unittest.mock import patch +except ImportError: + from mock import patch import pytest from kafka.vendor.six.moves import range Index: kafka-python-2.0.2/test/test_conn.py =================================================================== --- kafka-python-2.0.2.orig/test/test_conn.py +++ kafka-python-2.0.2/test/test_conn.py @@ -4,7 +4,10 @@ from __future__ import absolute_import from errno import EALREADY, EINPROGRESS, EISCONN, ECONNRESET import socket -import mock +try: + from unittest import mock +except ImportError: + import mock import pytest from kafka.conn import BrokerConnection, ConnectionStates, collect_hosts