[packages/python-ddt] - updated to 1.4.4

qboosh qboosh at pld-linux.org
Thu Apr 28 16:59:41 CEST 2022


commit dfa850bd00105ca55d257ee6c59cb2e4a30546a0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 28 17:00:02 2022 +0200

    - updated to 1.4.4

 python-ddt-mock.patch | 14 --------------
 python-ddt.spec       | 21 +++++++++++----------
 2 files changed, 11 insertions(+), 24 deletions(-)
---
diff --git a/python-ddt.spec b/python-ddt.spec
index 2ec756b..84244bf 100644
--- a/python-ddt.spec
+++ b/python-ddt.spec
@@ -7,26 +7,28 @@
 Summary:	Data-Driven Tests - library to multiply test cases
 Summary(pl.UTF-8):	Data-Driven Tests - biblioteka do zwielokrotniania przypadków testowych
 Name:		python-ddt
-Version:	1.2.1
-Release:	7
+Version:	1.4.4
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/ddt/
 Source0:	https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz
-# Source0-md5:	1270d706454088ea108f23fbaa800e56
-Patch0:		%{name}-mock.patch
+# Source0-md5:	6ce9b363798079b7d437a97ef09adb0f
 URL:		https://github.com/txels/ddt
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires:	python-mock
+BuildRequires:	python-enum34
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-mock
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-modules >= 1:3.5
 BuildRequires:	python3-setuptools
 %endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,7 +48,7 @@ testowych.
 Summary:	Data-Driven Tests - library to multiply test cases
 Summary(pl.UTF-8):	Data-Driven Tests - biblioteka do zwielokrotniania przypadków testowych
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
+Requires:	python3-modules >= 1:3.5
 
 %description -n python3-ddt
 DDT (Data-Driven Tests) allows you to multiply one test case by
@@ -61,7 +63,6 @@ testowych.
 
 %prep
 %setup -q -n ddt-%{version}
-%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/python-ddt-mock.patch b/python-ddt-mock.patch
deleted file mode 100644
index 3ff7a1a..0000000
--- a/python-ddt-mock.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- ddt-1.2.1/test/test_functional.py.orig	2019-02-24 08:10:28.000000000 +0100
-+++ ddt-1.2.1/test/test_functional.py	2019-03-22 17:23:41.137209956 +0100
-@@ -2,7 +2,10 @@
- import json
- 
- import six
--import mock
-+try:
-+    import mock
-+except ImportError:
-+    from unittest import mock
- 
- from ddt import ddt, data, file_data
- from nose.tools import (
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ddt.git/commitdiff/dfa850bd00105ca55d257ee6c59cb2e4a30546a0



More information about the pld-cvs-commit mailing list