[packages/python-fixtures] - updated URLs, mock patch cosmetic
qboosh
qboosh at pld-linux.org
Thu Jul 26 20:34:58 CEST 2018
commit f0eb6a8208fbf86ac3f9ef567c38f265b1de99e3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 26 20:36:58 2018 +0200
- updated URLs, mock patch cosmetic
python-fixtures-mock.patch | 2 +-
python-fixtures.spec | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/python-fixtures.spec b/python-fixtures.spec
index c5d59cc..c4e8c4a 100644
--- a/python-fixtures.spec
+++ b/python-fixtures.spec
@@ -11,11 +11,11 @@ Version: 3.0.0
Release: 2
License: Apache v2.0 or BSD
Group: Libraries/Python
-#Source0Download: https://pypi.python.org/simple/fixtures/
+#Source0Download: https://pypi.org/simple/fixtures/
Source0: https://files.pythonhosted.org/packages/source/f/fixtures/fixtures-%{version}.tar.gz
# Source0-md5: cd6345b497a62fad739efee66346c2e0
Patch0: %{name}-mock.patch
-URL: https://pypi.python.org/pypi/fixtures
+URL: https://pypi.org/project/fixtures/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
diff --git a/python-fixtures-mock.patch b/python-fixtures-mock.patch
index ac13c9a..2fc7bc5 100644
--- a/python-fixtures-mock.patch
+++ b/python-fixtures-mock.patch
@@ -7,7 +7,7 @@
-import mock # Yes, we only test the rolling backport
+try:
+ from unittest import mock
-+except:
++except ImportError:
+ import mock
import testtools
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-fixtures.git/commitdiff/f0eb6a8208fbf86ac3f9ef567c38f265b1de99e3
More information about the pld-cvs-commit
mailing list