Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-multipart for openSUSE:Factory checked in at 2022-04-10 00:41:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-multipart (Old) and /work/SRC/openSUSE:Factory/.python-python-multipart.new.1900 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-multipart" Sun Apr 10 00:41:55 2022 rev:3 rq:967920 version:0.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-multipart/python-python-multipart.changes 2022-02-04 21:52:28.139121701 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-multipart.new.1900/python-python-multipart.changes 2022-04-10 00:41:56.597087816 +0200 @@ -1,0 +2,8 @@ +Fri Apr 8 09:51:38 UTC 2022 - pgaj...@suse.com + +- do not require python-mock for build +- added patches + fix https://github.com/andrew-d/python-multipart/commit/8cff1aac7479fbb69087e355f66315b21640bab0 + + python-python-multipart-no-mock.patch + +------------------------------------------------------------------- New: ---- python-python-multipart-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-multipart.spec ++++++ --- /var/tmp/diff_new_pack.JdkSc2/_old 2022-04-10 00:41:57.149081679 +0200 +++ /var/tmp/diff_new_pack.JdkSc2/_new 2022-04-10 00:41:57.157081589 +0200 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-python-multipart Version: 0.0.5 Release: 0 @@ -25,12 +26,13 @@ URL: http://github.com/andrew-d/python-multipart Source: https://files.pythonhosted.org/packages/source/p/python-multipart/python-multipart-%{version}.tar.gz Patch0: support-pyyaml-6.patch +# https://github.com/andrew-d/python-multipart/commit/8cff1aac7479fbb69087e355f66315b21640bab0 +Patch1: python-python-multipart-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module six >= 1.4.0} BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes ++++++ python-python-multipart-no-mock.patch ++++++ diff --git a/multipart/tests/test_multipart.py b/multipart/tests/test_multipart.py index 5769905..7913cd2 100644 --- a/multipart/tests/test_multipart.py +++ b/multipart/tests/test_multipart.py @@ -16,7 +16,10 @@ from io import BytesIO from six import binary_type, text_type -from mock import MagicMock, Mock, patch +try: + from unittest.mock import MagicMock, Mock, patch +except ImportError: + from mock import MagicMock, Mock, patch from ..multipart import *