[packages/python3-freezegun] - updated to 1.5.2

qboosh qboosh at pld-linux.org
Sat Jun 28 21:56:58 CEST 2025


commit e20a811fb61114f0faf251493e8b080ba1f1ae38
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 28 21:58:23 2025 +0200

    - updated to 1.5.2

 python3-freezegun.spec | 10 ++++------
 python3.13.patch       | 34 ----------------------------------
 2 files changed, 4 insertions(+), 40 deletions(-)
---
diff --git a/python3-freezegun.spec b/python3-freezegun.spec
index 0d6d813..3c12479 100644
--- a/python3-freezegun.spec
+++ b/python3-freezegun.spec
@@ -5,16 +5,15 @@
 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:		python3-freezegun
-Version:	1.5.1
+Version:	1.5.2
 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:	fb7324aaa31c6fafabf16a623cc62e38
-Patch0:		python3.13.patch
+# Source0-md5:	b372e78b608c66efdb829fc4a8fdf608
 URL:		https://pypi.org/project/freezegun/
-BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-modules >= 1:3.8
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-dateutil >= 2.7
@@ -22,7 +21,7 @@ BuildRequires:	python3-pytest
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-modules >= 1:3.7
+Requires:	python3-modules >= 1:3.8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -36,7 +35,6 @@ czasie dzięki atrapie modułu datetime.
 
 %prep
 %setup -q -n freezegun-%{version}
-%patch -P0 -p1
 
 %build
 %py3_build
diff --git a/python3.13.patch b/python3.13.patch
deleted file mode 100644
index 8da5e2e..0000000
--- a/python3.13.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 1777174bb97c0b514033a09b820078b0d117f4a8 Mon Sep 17 00:00:00 2001
-From: Bert Blommers <info at bertblommers.nl>
-Date: Fri, 28 Jun 2024 19:21:04 +0000
-Subject: [PATCH] Admin: Support Python 3.13
-
----
- tests/test_datetimes.py   | 6 +++---
- 2 files changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/tests/test_datetimes.py b/tests/test_datetimes.py
-index a6f1989..b75ad3b 100644
---- a/tests/test_datetimes.py
-+++ b/tests/test_datetimes.py
-@@ -534,17 +534,17 @@ def test_method_decorator_works_on_unittest(self) -> None:
-     @freeze_time('2013-04-09', as_kwarg='frozen_time')
-     def test_method_decorator_works_on_unittest_kwarg_frozen_time(self, frozen_time: Any) -> None:
-         self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
--        self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today())
-+        assert frozen_time.time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09"
- 
-     @freeze_time('2013-04-09', as_kwarg='hello')
-     def test_method_decorator_works_on_unittest_kwarg_hello(self, **kwargs: Any) -> None:
-         self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
--        self.assertEqual(datetime.date(2013, 4, 9), kwargs.get('hello').time_to_freeze.today())  # type: ignore
-+        assert kwargs.get("hello").time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09"  # type: ignore
- 
-     @freeze_time(lambda: datetime.date(year=2013, month=4, day=9), as_kwarg='frozen_time')
-     def test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func(self, frozen_time: Any) -> None:
-         self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
--        self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today())
-+        assert frozen_time.time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09"
- 
- 
- @freeze_time('2013-04-09')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-freezegun.git/commitdiff/e20a811fb61114f0faf251493e8b080ba1f1ae38



More information about the pld-cvs-commit mailing list