1
0

30 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
2a4a00a2d1 Accepting request 1184152 from devel:languages:python
- add py313-support.patch to fix build with python 3.13

OBS-URL: https://build.opensuse.org/request/show/1184152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=21
2024-07-02 16:14:39 +00:00
4f74070778 Accepting request 1180146 from devel:languages:python
- update to 1.5.1:
  * Fix the typing of the `tick()` method, and improve it's
    behaviour.

OBS-URL: https://build.opensuse.org/request/show/1180146
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=20
2024-06-13 13:37:36 +00:00
c3aaaa730b Accepting request 1171531 from devel:languages:python
- update to 1.5.0:
  * The default ignore list now contains the `queue`-package
  * Added a missing `move_to`-function when calling
    `freeze_time(tick=True)`
  * Fixes a rounding error in `time.time_ns()`
  * Fixed a bug where the default ignore list could not be empty
    (`configure(default_ignore_list=[])`)
  * All `tick()` methods now return the new datetime (instead of
    None)
  * Type improvements

OBS-URL: https://build.opensuse.org/request/show/1171531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=19
2024-05-03 17:44:13 +00:00
6dfdf667ae Accepting request 1135657 from devel:languages:python
- update to 1.4.0:
  * `asyncio`-support from 1.3.x introduced quite a few  bugs, so
    that functionality is now hidden behind a flag:
     `with freeze_time('1970-01-02', real_asyncio=True):`

OBS-URL: https://build.opensuse.org/request/show/1135657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=18
2024-01-05 21:58:24 +00:00
f11e84f1d3 Accepting request 1131703 from devel:languages:python
- update to 1.3.1:
  * Fixed `asyncio` support to avoid `await asyncio.sleep(1)`
    hanging forever.
  * Added support for Python 3.12

    with the name provided in as_kwarg argument
- update to 0.3.10

OBS-URL: https://build.opensuse.org/request/show/1131703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=17
2023-12-09 21:48:59 +00:00
8b77b31bad Accepting request 1081917 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081917
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=16
2023-04-22 20:00:56 +00:00
195374fc28 Accepting request 1004362 from devel:languages:python
- update to 1.2.2:
  * Removes Python 3.6 support
  * Improved static typing definitions
  * Don't freeze pytest timings. This avoids class-level decorator usage
  * messing with pytest timings.  Pass through all setUp and tearDown arguments

OBS-URL: https://build.opensuse.org/request/show/1004362
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=15
2022-09-18 15:32:00 +00:00
dbece16a83 Accepting request 980773 from devel:languages:python
- update to 1.2.1:
  * Added missing typeshed types from distribution
  * Pass all arguments on recursive freeze_time calls
  * Add support for `time.perf_counter` (and `…_ns`)
  * Added typeshed types
  * Dropped support for python 3.5

OBS-URL: https://build.opensuse.org/request/show/980773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=14
2022-06-06 09:10:31 +00:00
2a34d08ee6 Accepting request 885995 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/885995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=13
2021-04-19 19:05:44 +00:00
50cdd54f54 Accepting request 867591 from devel:languages:python
- update to 1.1.0:
  * Add support for `time.monotonic` (and `…_ns`)
  * Allow to configure default ignore list, and also to just extend the default
  * Fixed when accessing from thread after stop()

OBS-URL: https://build.opensuse.org/request/show/867591
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=12
2021-02-01 12:26:53 +00:00
d8668967ae Accepting request 842656 from devel:languages:python
- Update to 1.0.0:
  * Dropped Py2 support
  * Added as_kwarg argument in order to have the frozen time object passed
    with the name provided in as_kwarg argument 
- Drop denose.patch
- Drop python-six from {Build,}Requires
- Update version of python-dateutil in {Build,}Requires

OBS-URL: https://build.opensuse.org/request/show/842656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=11
2020-10-23 10:18:57 +00:00
b2ba7dfefc Accepting request 827695 from devel:languages:python
- We can finally use %pyunittest macro

OBS-URL: https://build.opensuse.org/request/show/827695
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=10
2020-08-25 10:38:05 +00:00
e4c372ec48 Accepting request 783995 from devel:languages:python
- Fix build without python2 available

- update to 0.3.15:
  * Fix locale timestamp bug. CC #328
  * Fix calendar.timegm behavior
  * Fix for Py3.8
  * Reset time.time_ns on stop
- drop remove_dependency_on_mock.patch

OBS-URL: https://build.opensuse.org/request/show/783995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=9
2020-03-26 23:20:24 +00:00
99501ea525 Accepting request 748891 from devel:languages:python
- Add dependency on the full python (which is not pulled by
  setuptools anymore). Use %{pythons} macro now.

OBS-URL: https://build.opensuse.org/request/show/748891
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=8
2019-11-22 09:24:47 +00:00
6954214504 Accepting request 713090 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/713090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=7
2019-07-05 11:47:03 +00:00
Stephan Kulow
b87c76b233 Accepting request 672122 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/672122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=6
2019-02-08 12:48:11 +00:00
91fbd483a1 Accepting request 666515 from devel:languages:python
- Update to 0.3.11:
    * Performance improvements
    * Fix nesting time.time
    * Add nanosecond property
- Remove nose dependency by adding denose.patch
- Remove _u_p37_tests.patch, which is superseeded by new release.

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/666515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=5
2019-01-28 19:46:06 +00:00
e0323d8712 Accepting request 633129 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/633129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=4
2018-09-10 10:29:47 +00:00
66b015f621 Accepting request 622946 from devel:languages:python
- update to 0.3.10 
- add _u_p37_tests.patch
 * Performance improvements
 * Coroutine support (forwarded request 622945 from mimi_vx)

OBS-URL: https://build.opensuse.org/request/show/622946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=3
2018-07-17 07:37:43 +00:00
f28136b0d0 Accepting request 579634 from devel:languages:python
- Drop python-sure BuildRequires. Add python-mock BuildRequires.

OBS-URL: https://build.opensuse.org/request/show/579634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=2
2018-02-25 10:32:18 +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