[packages/python-freezegun] - updated to 0.3.15 - removed obsolete mock patch

qboosh qboosh at pld-linux.org
Thu Aug 20 21:38:52 CEST 2020


commit 750984f7373052c11058ef6953cd80c1ab1c93de
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Aug 20 21:41:14 2020 +0200

    - updated to 0.3.15
    - removed obsolete mock patch

 python-freezegun-mock.patch | 26 --------------------------
 python-freezegun.spec       | 15 ++++++---------
 2 files changed, 6 insertions(+), 35 deletions(-)
---
diff --git a/python-freezegun.spec b/python-freezegun.spec
index 300be50..5fa59b4 100644
--- a/python-freezegun.spec
+++ b/python-freezegun.spec
@@ -7,14 +7,13 @@
 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.12
-Release:	2
+Version:	0.3.15
+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:	7a289a0473100e726335ea26fb0ef8de
-Patch0:		%{name}-mock.patch
+# Source0-md5:	20d32ddc33d79bf53b6029a265ed2fcc
 URL:		https://pypi.org/project/freezegun/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -30,7 +29,7 @@ BuildRequires:	python-six
 %endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.5
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-dateutil >= 2.1
@@ -54,7 +53,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.4
+Requires:	python3-modules >= 1:3.5
 
 %description -n python3-freezegun
 FreezeGun is a library that allows your Python tests to travel through
@@ -66,7 +65,6 @@ czasie dzięki atrapie modułu datetime.
 
 %prep
 %setup -q -n freezegun-%{version}
-%patch0 -p1
 
 %build
 %if %{with python2}
@@ -81,8 +79,7 @@ czasie dzięki atrapie modułu datetime.
 %py3_build
 
 %if %{with tests}
-# uuid tests fail with python3.8 (as of 0.3.12)
-%{__python3} -m pytest --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_uuid.py::test_uuid1_past tests
+%{__python3} -m pytest tests
 %endif
 %endif
 
diff --git a/python-freezegun-mock.patch b/python-freezegun-mock.patch
deleted file mode 100644
index a16e895..0000000
--- a/python-freezegun-mock.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- 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
--import mock
-+try:
-+    import mock
-+except ImportError:
-+    from unittest import mock
- import pytest
- 
- from freezegun import freeze_time
---- 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 freezegun import api
- from tests import utils
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-freezegun.git/commitdiff/750984f7373052c11058ef6953cd80c1ab1c93de



More information about the pld-cvs-commit mailing list