17
0

8 Commits

Author SHA256 Message Date
5dab891705 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
5722e5dc4c 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
2a3730cd43 - 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
1a80316130 Accepting request 1297683 from home:glaubitz:branches:devel:languages:python
- Update to 1.5.4
  * Fix: Ability to yield fixtures (broken in 1.5.3)

OBS-URL: https://build.opensuse.org/request/show/1297683
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
fb7ffa75e1 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
18d1ad0b3b - 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
512ecb47a2 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
4a777c02eb Accepting request 1290187 from home:glaubitz:branches:devel:languages:python
- 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/request/show/1290187
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 36 additions and 41 deletions

Binary file not shown.

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

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

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,31 @@
-------------------------------------------------------------------
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +20,12 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-freezegun Name: python-freezegun
Version: 1.5.1 Version: 1.5.4
Release: 0 Release: 0
Summary: Mock time date for Python Summary: Mock time date for Python
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/spulec/freezegun URL: https://github.com/spulec/freezegun
Source: https://files.pythonhosted.org/packages/source/f/freezegun/freezegun-%{version}.tar.gz 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 base >= 3.7}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@@ -55,7 +55,7 @@ time by mocking the datetime module.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pyunittest %pyunittest -v
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE