17
0

10 Commits

Author SHA256 Message Date
f4e7a1acee Accepting request 1305412 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1305412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=25
2025-09-18 19:08:07 +00:00
9f91f62078 - Update to 1.5.5
* Allow parametrized arguments called 'func' (Broken in 1.5.4)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=64
2025-09-17 14:55:56 +00:00
893628b953 Accepting request 1297810 from devel:languages:python
- Make tests more verbose.
- Update to 1.5.4
  * Fix: Ability to yield fixtures (broken in 1.5.3)

OBS-URL: https://build.opensuse.org/request/show/1297810
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=24
2025-08-07 14:48:22 +00:00
9f754459b0 fix multiple copyright lines
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=62
2025-08-05 18:47:13 +00:00
7b6de59d19 - Make tests more verbose.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=61
2025-08-05 18:46:52 +00:00
c79d098fa3 - Update to 1.5.4
* Fix: Ability to yield fixtures (broken in 1.5.3)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=60
2025-08-05 18:44:30 +00:00
e8f619cfbd Accepting request 1294212 from devel:languages:python
- update to 1.5.3:
  * Fix compatibility with pytest 8.4.0 when using fixtures
  * Add (back) class-decorator overload to guarantee Pytype
    understands it

OBS-URL: https://build.opensuse.org/request/show/1294212
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=23
2025-07-18 13:57:45 +00:00
1c946c6582 - update to 1.5.3:
* Fix compatibility with pytest 8.4.0 when using fixtures
  * Add (back) class-decorator overload to guarantee Pytype
    understands it

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=58
2025-07-17 19:19:03 +00:00
6171f8fdbe Accepting request 1290226 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1290226
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=22
2025-07-06 15:00:09 +00:00
189c544e51 - Update to 1.5.2
* Remove support for Python 3.7
  * Explicitly marks support for Python 3.13
  * Improved project documentation
- Drop py313-support.patch, merged upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=56
2025-07-03 12:31:02 +00:00
5 changed files with 42 additions and 41 deletions

Binary file not shown.

3
freezegun-1.5.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac7742a6cc6c25a2c35e9292dfd554b897b517d2dec26891a2e8debf205cb94a
size 35914

View File

@@ -1,33 +0,0 @@
From 1777174bb97c0b514033a09b820078b0d117f4a8 Mon Sep 17 00:00:00 2001
From: Bert Blommers <info@bertblommers.nl>
Date: Fri, 28 Jun 2024 19:21:04 +0000
Subject: [PATCH] Admin: Support Python 3.13
---
.github/workflows/ci.yaml | 9 ++++++---
tests/test_datetimes.py | 6 +++---
2 files changed, 9 insertions(+), 6 deletions(-)
--- 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')

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Wed Sep 17 12:10:16 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.5.5
* Allow parametrized arguments called 'func' (Broken in 1.5.4)
-------------------------------------------------------------------
Tue Aug 5 18:46:39 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make tests more verbose.
-------------------------------------------------------------------
Tue Aug 5 10:31:46 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.5.4
* Fix: Ability to yield fixtures (broken in 1.5.3)
-------------------------------------------------------------------
Thu Jul 17 19:18:42 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 1.5.3:
* Fix compatibility with pytest 8.4.0 when using fixtures
* Add (back) class-decorator overload to guarantee Pytype
understands it
-------------------------------------------------------------------
Thu Jul 3 10:21:07 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.5.2
* Remove support for Python 3.7
* Explicitly marks support for Python 3.13
* Improved project documentation
- Drop py313-support.patch, merged upstream
-------------------------------------------------------------------
Sun Jun 30 21:22:02 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,9 @@
#
# spec file for package python-freezegun
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +20,12 @@
%{?sle15_python_module_pythons}
Name: python-freezegun
Version: 1.5.1
Version: 1.5.5
Release: 0
Summary: Mock time date for Python
License: Apache-2.0
URL: https://github.com/spulec/freezegun
Source: https://files.pythonhosted.org/packages/source/f/freezegun/freezegun-%{version}.tar.gz
# PATCH-FIX-UPSTREAM: https://github.com/spulec/freezegun/commit/1777174bb97c0b514033a09b820078b0d117f4a8
Patch1: py313-support.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -55,7 +55,7 @@ time by mocking the datetime module.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest
%pyunittest -v
%files %{python_files}
%license LICENSE