Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5dab891705 | |||
| 5722e5dc4c | |||
| 2a3730cd43 | |||
| 1a80316130 | |||
| fb7ffa75e1 | |||
| 18d1ad0b3b | |||
| 512ecb47a2 | |||
| 4a777c02eb |
BIN
freezegun-1.5.1.tar.gz
LFS
BIN
freezegun-1.5.1.tar.gz
LFS
Binary file not shown.
3
freezegun-1.5.4.tar.gz
Normal file
3
freezegun-1.5.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:798b9372fdd4d907f33e8b6a58bc64e682d9ffa8d494ce60f780197ee81faed1
|
||||
size 35644
|
||||
@@ -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')
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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.4
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user