[packages/python-freezegun] - updated to 0.3.12 - updated mock patch

qboosh qboosh at pld-linux.org
Sat Dec 28 20:36:30 CET 2019


commit 43f7d4e74bbba7387c58ae07d0dbfad034dfdd88
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 28 20:37:20 2019 +0100

    - updated to 0.3.12
    - updated mock patch

 python-freezegun-mock.patch | 17 +++++++++--------
 python-freezegun.spec       | 22 +++++++++++-----------
 2 files changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/python-freezegun.spec b/python-freezegun.spec
index 2790af8..4791342 100644
--- a/python-freezegun.spec
+++ b/python-freezegun.spec
@@ -7,38 +7,38 @@
 Summary:	FreezeGun: Let your Python 2 tests travel through time
 Summary(pl.UTF-8):	FreezeGun - umożliwienie testom Pythona 2 podróżowania w czasie
 Name:		python-freezegun
-Version:	0.3.11
-Release:	2
+Version:	0.3.12
+Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/freezegun/
 Source0:	https://files.pythonhosted.org/packages/source/f/freezegun/freezegun-%{version}.tar.gz
-# Source0-md5:	f4914cb716505cb8067b5ceec7acbba8
+# Source0-md5:	7a289a0473100e726335ea26fb0ef8de
 Patch0:		%{name}-mock.patch
 URL:		https://pypi.org/project/freezegun/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %if %{with tests}
 BuildRequires:	python-dateutil >= 2.1
 BuildRequires:	python-mock
 BuildRequires:	python-modules-sqlite
-BuildRequires:	python-nose
+BuildRequires:	python-pytest
 BuildRequires:	python-six
 %endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-dateutil >= 2.1
-BuildRequires:	python3-nose
+BuildRequires:	python3-pytest
 BuildRequires:	python3-six
 %endif
 %endif
-Requires:	python-modules >= 1:2.6
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -54,7 +54,7 @@ czasie dzięki atrapie modułu datetime.
 Summary:	FreezeGun: Let your Python 3 tests travel through time
 Summary(pl.UTF-8):	FreezeGun - umożliwienie testom Pythona 3 podróżowania w czasie
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
+Requires:	python3-modules >= 1:3.4
 
 %description -n python3-freezegun
 FreezeGun is a library that allows your Python tests to travel through
@@ -73,7 +73,7 @@ czasie dzięki atrapie modułu datetime.
 %py_build
 
 %if %{with tests}
-nosetests-%{py_ver} tests
+%{__python} -m pytest tests
 %endif
 %endif
 
@@ -81,7 +81,7 @@ nosetests-%{py_ver} tests
 %py3_build
 
 %if %{with tests}
-nosetests-%{py3_ver} tests
+%{__python3} -m pytest tests
 %endif
 %endif
 
diff --git a/python-freezegun-mock.patch b/python-freezegun-mock.patch
index 9092cae..a16e895 100644
--- a/python-freezegun-mock.patch
+++ b/python-freezegun-mock.patch
@@ -1,5 +1,5 @@
---- freezegun-0.3.10/tests/test_ticking.py.orig	2018-03-06 01:33:10.000000000 +0100
-+++ freezegun-0.3.10/tests/test_ticking.py	2018-05-26 16:55:23.937804778 +0200
+--- freezegun-0.3.12/tests/test_ticking.py.orig	2019-12-28 20:04:27.061373016 +0100
++++ freezegun-0.3.12/tests/test_ticking.py	2019-12-28 20:20:15.159570062 +0100
 @@ -1,6 +1,9 @@
  import datetime
  import time
@@ -8,18 +8,19 @@
 +    import mock
 +except ImportError:
 +    from unittest import mock
+ import pytest
  
  from freezegun import freeze_time
- from tests import utils
---- freezegun-0.3.10/tests/test_utils.py.orig	2018-03-06 01:33:10.000000000 +0100
-+++ freezegun-0.3.10/tests/test_utils.py	2018-05-26 16:56:12.857804217 +0200
-@@ -1,4 +1,8 @@
+--- freezegun-0.3.12/tests/test_utils.py.orig	2019-12-28 20:04:27.061373016 +0100
++++ freezegun-0.3.12/tests/test_utils.py	2019-12-28 20:28:53.326762910 +0100
+@@ -1,6 +1,9 @@
+ from unittest import SkipTest
+ 
 -import mock
 +try:
 +    import mock
 +except ImportError:
 +    from unittest import mock
-+
- from nose.plugins import skip
  
  from freezegun import api
+ from tests import utils
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-freezegun.git/commitdiff/43f7d4e74bbba7387c58ae07d0dbfad034dfdd88



More information about the pld-cvs-commit mailing list