Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-smpplib for openSUSE:Factory checked in at 2022-05-04 15:11:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-smpplib (Old) and /work/SRC/openSUSE:Factory/.python-smpplib.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-smpplib" Wed May 4 15:11:13 2022 rev:5 rq:974870 version:2.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-smpplib/python-smpplib.changes 2021-11-24 23:54:45.876420192 +0100 +++ /work/SRC/openSUSE:Factory/.python-smpplib.new.1538/python-smpplib.changes 2022-05-04 15:11:35.244204250 +0200 @@ -1,0 +2,7 @@ +Wed May 4 07:55:32 UTC 2022 - pgaj...@suse.com + +- added patches + fix https://github.com/python-smpplib/python-smpplib/issues/200 + + python-smpplib-no-mock.patch + +------------------------------------------------------------------- New: ---- python-smpplib-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-smpplib.spec ++++++ --- /var/tmp/diff_new_pack.vTfkTj/_old 2022-05-04 15:11:35.728204846 +0200 +++ /var/tmp/diff_new_pack.vTfkTj/_new 2022-05-04 15:11:35.736204855 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-smpplib # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2016-2021, Martin Hauke <mar...@gmx.de> # # All modifications and additions to the file contributed by third parties @@ -27,12 +27,13 @@ URL: https://pypi.org/project/smpplib/ #Git-Clone: https://github.com/python-smpplib/python-smpplib.git Source: https://github.com/python-smpplib/python-smpplib/archive/%{version}.tar.gz#/smpplib-%{version}.tar.gz +# https://github.com/python-smpplib/python-smpplib/issues/200 +Patch0: python-smpplib-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest} -BuildRequires: %{python_module mock} # /SECTION BuildRequires: fdupes Requires: python-six @@ -47,6 +48,7 @@ %prep %setup -q -n python-smpplib-%{version} +%patch0 -p1 %build %python_build ++++++ python-smpplib-no-mock.patch ++++++ diff -upr python-smpplib-2.2.1.orig/smpplib/tests/test_client.py python-smpplib-2.2.1/smpplib/tests/test_client.py --- python-smpplib-2.2.1.orig/smpplib/tests/test_client.py 2022-05-04 09:38:34.127959320 +0200 +++ python-smpplib-2.2.1/smpplib/tests/test_client.py 2022-05-04 09:38:34.147959444 +0200 @@ -1,6 +1,6 @@ import warnings import pytest -from mock import Mock, call +from unittest.mock import Mock, call from smpplib.client import Client from smpplib.smpp import make_pdu diff -upr python-smpplib-2.2.1.orig/smpplib/tests/test_gsm.py python-smpplib-2.2.1/smpplib/tests/test_gsm.py --- python-smpplib-2.2.1.orig/smpplib/tests/test_gsm.py 2022-05-04 09:38:34.127959320 +0200 +++ python-smpplib-2.2.1/smpplib/tests/test_gsm.py 2022-05-04 09:38:34.147959444 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf8 -*- -import mock +from unittest import mock from pytest import mark, raises from smpplib import consts