Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-freezegun for
openSUSE:Factory checked in at 2022-09-18 17:32:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-freezegun (Old)
and /work/SRC/openSUSE:Factory/.python-freezegun.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-freezegun"
Sun Sep 18 17:32:00 2022 rev:15 rq:1004362 version:1.2.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-freezegun/python-freezegun.changes
2022-06-06 11:10:38.767318356 +0200
+++
/work/SRC/openSUSE:Factory/.python-freezegun.new.2083/python-freezegun.changes
2022-09-18 17:32:01.781737145 +0200
@@ -1,0 +2,9 @@
+Sat Sep 17 15:53:33 UTC 2022 - Dirk M??ller <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
freezegun-1.2.1.tar.gz
New:
----
freezegun-1.2.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-freezegun.spec ++++++
--- /var/tmp/diff_new_pack.mGFFHh/_old 2022-09-18 17:32:02.233738463 +0200
+++ /var/tmp/diff_new_pack.mGFFHh/_new 2022-09-18 17:32:02.237738475 +0200
@@ -17,14 +17,14 @@
%{?!python_module:%define python_module() python3-%{**}}
-%define skip_python2 1
Name: python-freezegun
-Version: 1.2.1
+Version: 1.2.2
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
+BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil > 2.7}
BuildRequires: %{python_module setuptools}
++++++ freezegun-1.2.1.tar.gz -> freezegun-1.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/AUTHORS.rst
new/freezegun-1.2.2/AUTHORS.rst
--- old/freezegun-1.2.1/AUTHORS.rst 2022-03-18 10:05:17.000000000 +0100
+++ new/freezegun-1.2.2/AUTHORS.rst 2022-08-12 14:11:55.000000000 +0200
@@ -19,3 +19,4 @@
- `Julian Mehnle <github.com/jmehnle>`_
- `Lukasz Balcerzak <https://github.com/lukaszb>`_
- `Hannes Ljungberg <[email protected]>`_
+- `staticdev <[email protected]>`_
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/CHANGELOG
new/freezegun-1.2.2/CHANGELOG
--- old/freezegun-1.2.1/CHANGELOG 2022-03-18 10:05:17.000000000 +0100
+++ new/freezegun-1.2.2/CHANGELOG 2022-08-12 14:21:48.000000000 +0200
@@ -1,6 +1,18 @@
Freezegun Changelog
===================
+1.2.2
+-----
+
+* Removes Python 3.6 support, which reached its EOL on 2021-12-23
(https://devguide.python.org/versions/?highlight=End-of-life#unsupported-versions).
+
+* 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
+
+
1.2.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/PKG-INFO new/freezegun-1.2.2/PKG-INFO
--- old/freezegun-1.2.1/PKG-INFO 2022-03-18 10:06:23.193919200 +0100
+++ new/freezegun-1.2.2/PKG-INFO 2022-08-12 14:23:50.008313000 +0200
@@ -1,15 +1,17 @@
Metadata-Version: 2.1
Name: freezegun
-Version: 1.2.1
+Version: 1.2.2
Summary: Let your Python tests travel through time
Home-page: https://github.com/spulec/freezegun
Author: Steve Pulec
Author-email: [email protected]
License: Apache 2.0
-Platform: UNKNOWN
+Project-URL: Bug Tracker, https://github.com/spulec/freezegun/issues
+Project-URL: Changes, https://github.com/spulec/freezegun/blob/master/CHANGELOG
+Project-URL: Documentation,
https://github.com/spulec/freezegun/blob/master/README.rst
+Project-URL: Source Code, https://github.com/spulec/freezegun
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
@@ -51,7 +53,7 @@
def test():
assert datetime.datetime.now() == datetime.datetime(2012, 1, 14)
- # Or a unittest TestCase - freezes for every test, from the start of
setUpClass to the end of tearDownClass
+ # Or a unittest TestCase - freezes for every test, and set up and tear
down code
@freeze_time("1955-11-12")
class MyTests(unittest.TestCase):
@@ -163,7 +165,7 @@
~~~~~~~~~~~~~~~~~
FreezeGun has an additional ``tick`` argument which will restart time at the
given
-value, but then time will keep ticking. This is alternative to the default
+value, but then time will keep ticking. This is an alternative to the default
parameters which will keep time stopped.
.. code-block:: python
@@ -176,7 +178,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FreezeGun has an additional ``auto_tick_seconds`` argument which will
autoincrement the
-value every time by the given amount from the start value. This is alternative
to the default
+value every time by the given amount from the start value. This is an
alternative to the default
parameters which will keep time stopped. Note that given ``auto_tick_seconds``
the ``tick`` parameter will be ignored.
.. code-block:: python
@@ -337,5 +339,3 @@
import freezegun
freezegun.configure(extend_ignore_list=['tensorflow'])
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/README.rst
new/freezegun-1.2.2/README.rst
--- old/freezegun-1.2.1/README.rst 2022-03-03 12:59:06.000000000 +0100
+++ new/freezegun-1.2.2/README.rst 2022-08-12 14:11:55.000000000 +0200
@@ -30,7 +30,7 @@
def test():
assert datetime.datetime.now() == datetime.datetime(2012, 1, 14)
- # Or a unittest TestCase - freezes for every test, from the start of
setUpClass to the end of tearDownClass
+ # Or a unittest TestCase - freezes for every test, and set up and tear
down code
@freeze_time("1955-11-12")
class MyTests(unittest.TestCase):
@@ -142,7 +142,7 @@
~~~~~~~~~~~~~~~~~
FreezeGun has an additional ``tick`` argument which will restart time at the
given
-value, but then time will keep ticking. This is alternative to the default
+value, but then time will keep ticking. This is an alternative to the default
parameters which will keep time stopped.
.. code-block:: python
@@ -155,7 +155,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FreezeGun has an additional ``auto_tick_seconds`` argument which will
autoincrement the
-value every time by the given amount from the start value. This is alternative
to the default
+value every time by the given amount from the start value. This is an
alternative to the default
parameters which will keep time stopped. Note that given ``auto_tick_seconds``
the ``tick`` parameter will be ignored.
.. code-block:: python
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/freezegun/__init__.py
new/freezegun-1.2.2/freezegun/__init__.py
--- old/freezegun-1.2.1/freezegun/__init__.py 2022-03-18 10:05:17.000000000
+0100
+++ new/freezegun-1.2.2/freezegun/__init__.py 2022-08-12 14:21:48.000000000
+0200
@@ -9,7 +9,7 @@
from .config import configure
__title__ = 'freezegun'
-__version__ = '1.2.1'
+__version__ = '1.2.2'
__author__ = 'Steve Pulec'
__license__ = 'Apache License 2.0'
__copyright__ = 'Copyright 2012 Steve Pulec'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/freezegun/api.py
new/freezegun-1.2.2/freezegun/api.py
--- old/freezegun-1.2.1/freezegun/api.py 2022-03-18 10:05:17.000000000
+0100
+++ new/freezegun-1.2.2/freezegun/api.py 2022-08-12 14:11:55.000000000
+0200
@@ -563,8 +563,10 @@
def decorate_class(self, klass):
if issubclass(klass, unittest.TestCase):
- # If it's a TestCase, we assume you want to freeze the time for the
- # tests, from setUpClass to tearDownClass
+ # If it's a TestCase, we freeze time around setup and teardown, as
well
+ # as for every test case. This requires some care to avoid freezing
+ # the time pytest sees, as otherwise this would distort the
reported
+ # timings.
orig_setUpClass = klass.setUpClass
orig_tearDownClass = klass.tearDownClass
@@ -575,10 +577,12 @@
self.start()
if orig_setUpClass is not None:
orig_setUpClass()
+ self.stop()
# noinspection PyDecorator
@classmethod
def tearDownClass(cls):
+ self.start()
if orig_tearDownClass is not None:
orig_tearDownClass()
self.stop()
@@ -586,6 +590,22 @@
klass.setUpClass = setUpClass
klass.tearDownClass = tearDownClass
+ orig_setUp = klass.setUp
+ orig_tearDown = klass.tearDown
+
+ def setUp(*args, **kwargs):
+ self.start()
+ if orig_setUp is not None:
+ orig_setUp(*args, **kwargs)
+
+ def tearDown(*args, **kwargs):
+ if orig_tearDown is not None:
+ orig_tearDown(*args, **kwargs)
+ self.stop()
+
+ klass.setUp = setUp
+ klass.tearDown = tearDown
+
return klass
else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/freezegun/api.pyi
new/freezegun-1.2.2/freezegun/api.pyi
--- old/freezegun-1.2.1/freezegun/api.pyi 2022-03-03 12:59:06.000000000
+0100
+++ new/freezegun-1.2.2/freezegun/api.pyi 2022-08-12 14:11:55.000000000
+0200
@@ -1,57 +1,60 @@
+from collections.abc import Awaitable, Callable, Iterator, Sequence
from datetime import date, datetime, timedelta
from numbers import Real
-from typing import Any, Awaitable, Callable, Iterator, Optional, Sequence,
Type, TypeVar, Union, overload
+from typing import Any, TypeVar, overload
+from typing_extensions import TypeAlias
_T = TypeVar("_T")
-_Freezable = Union[str, datetime, date, timedelta]
+_Freezable: TypeAlias = str | datetime | date | timedelta
-class TickingDateTimeFactory(object):
+class TickingDateTimeFactory:
def __init__(self, time_to_freeze: datetime, start: datetime) -> None: ...
def __call__(self) -> datetime: ...
-class FrozenDateTimeFactory(object):
+class FrozenDateTimeFactory:
def __init__(self, time_to_freeze: datetime) -> None: ...
def __call__(self) -> datetime: ...
- def tick(self, delta: Union[float, Real, timedelta] = ...) -> None: ...
- def move_to(self, target_datetime: Optional[_Freezable]) -> None: ...
+ def tick(self, delta: float | Real | timedelta = ...) -> None: ...
+ def move_to(self, target_datetime: _Freezable | None) -> None: ...
-class StepTickTimeFactory(object):
+class StepTickTimeFactory:
def __init__(self, time_to_freeze: datetime, step_width: float) -> None:
...
def __call__(self) -> datetime: ...
- def tick(self, delta: Optional[timedelta] = ...) -> None: ...
+ def tick(self, delta: timedelta | None = ...) -> None: ...
def update_step_width(self, step_width: float) -> None: ...
- def move_to(self, target_datetime: Optional[_Freezable]) -> None: ...
+ def move_to(self, target_datetime: _Freezable | None) -> None: ...
class _freeze_time:
def __init__(
self,
- time_to_freeze_str: Optional[_Freezable],
- tz_offset: float,
+ time_to_freeze_str: _Freezable | None,
+ tz_offset: int | timedelta,
ignore: Sequence[str],
tick: bool,
as_arg: bool,
- as_kwarg: bool,
+ as_kwarg: str,
auto_tick_seconds: float,
) -> None: ...
@overload
- def __call__(self, func: Type[_T]) -> Type[_T]: ...
+ def __call__(self, func: type[_T]) -> type[_T]: ...
@overload
def __call__(self, func: Callable[..., Awaitable[_T]]) -> Callable[...,
Awaitable[_T]]: ...
@overload
def __call__(self, func: Callable[..., _T]) -> Callable[..., _T]: ...
- def __enter__(self) -> Any: ...
- def __exit__(self, *args: Any) -> None: ...
+ def __enter__(self) -> FrozenDateTimeFactory | StepTickTimeFactory: ...
+ def __exit__(self, *args: object) -> None: ...
def start(self) -> Any: ...
def stop(self) -> None: ...
- def decorate_class(self, klass: Type[_T]) -> _T: ...
+ def decorate_class(self, klass: type[_T]) -> _T: ...
def decorate_coroutine(self, coroutine: _T) -> _T: ...
def decorate_callable(self, func: Callable[..., _T]) -> Callable[..., _T]:
...
def freeze_time(
- time_to_freeze: Optional[Union[_Freezable, Callable[..., _Freezable],
Iterator[_Freezable]]] = ...,
- tz_offset: Optional[float] = ...,
- ignore: Optional[Sequence[str]] = ...,
- tick: Optional[bool] = ...,
- as_arg: Optional[bool] = ...,
- auto_tick_seconds: Optional[float] = ...,
+ time_to_freeze: _Freezable | Callable[..., _Freezable] |
Iterator[_Freezable] | None = ...,
+ tz_offset: int | timedelta | None = ...,
+ ignore: Sequence[str] | None = ...,
+ tick: bool | None = ...,
+ as_arg: bool | None = ...,
+ as_kwarg: str | None = ...,
+ auto_tick_seconds: float | None = ...,
) -> _freeze_time: ...
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/freezegun.egg-info/PKG-INFO
new/freezegun-1.2.2/freezegun.egg-info/PKG-INFO
--- old/freezegun-1.2.1/freezegun.egg-info/PKG-INFO 2022-03-18
10:06:22.000000000 +0100
+++ new/freezegun-1.2.2/freezegun.egg-info/PKG-INFO 2022-08-12
14:23:49.000000000 +0200
@@ -1,15 +1,17 @@
Metadata-Version: 2.1
Name: freezegun
-Version: 1.2.1
+Version: 1.2.2
Summary: Let your Python tests travel through time
Home-page: https://github.com/spulec/freezegun
Author: Steve Pulec
Author-email: [email protected]
License: Apache 2.0
-Platform: UNKNOWN
+Project-URL: Bug Tracker, https://github.com/spulec/freezegun/issues
+Project-URL: Changes, https://github.com/spulec/freezegun/blob/master/CHANGELOG
+Project-URL: Documentation,
https://github.com/spulec/freezegun/blob/master/README.rst
+Project-URL: Source Code, https://github.com/spulec/freezegun
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
@@ -51,7 +53,7 @@
def test():
assert datetime.datetime.now() == datetime.datetime(2012, 1, 14)
- # Or a unittest TestCase - freezes for every test, from the start of
setUpClass to the end of tearDownClass
+ # Or a unittest TestCase - freezes for every test, and set up and tear
down code
@freeze_time("1955-11-12")
class MyTests(unittest.TestCase):
@@ -163,7 +165,7 @@
~~~~~~~~~~~~~~~~~
FreezeGun has an additional ``tick`` argument which will restart time at the
given
-value, but then time will keep ticking. This is alternative to the default
+value, but then time will keep ticking. This is an alternative to the default
parameters which will keep time stopped.
.. code-block:: python
@@ -176,7 +178,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FreezeGun has an additional ``auto_tick_seconds`` argument which will
autoincrement the
-value every time by the given amount from the start value. This is alternative
to the default
+value every time by the given amount from the start value. This is an
alternative to the default
parameters which will keep time stopped. Note that given ``auto_tick_seconds``
the ``tick`` parameter will be ignored.
.. code-block:: python
@@ -337,5 +339,3 @@
import freezegun
freezegun.configure(extend_ignore_list=['tensorflow'])
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/freezegun.egg-info/SOURCES.txt
new/freezegun-1.2.2/freezegun.egg-info/SOURCES.txt
--- old/freezegun-1.2.1/freezegun.egg-info/SOURCES.txt 2022-03-18
10:06:23.000000000 +0100
+++ new/freezegun-1.2.2/freezegun.egg-info/SOURCES.txt 2022-08-12
14:23:50.000000000 +0200
@@ -18,6 +18,7 @@
freezegun.egg-info/dependency_links.txt
freezegun.egg-info/requires.txt
freezegun.egg-info/top_level.txt
+tests/.DS_Store
tests/__init__.py
tests/another_module.py
tests/fake_module.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/freezegun-1.2.1/setup.cfg
new/freezegun-1.2.2/setup.cfg
--- old/freezegun-1.2.1/setup.cfg 2022-03-18 10:06:23.194251500 +0100
+++ new/freezegun-1.2.2/setup.cfg 2022-08-12 14:23:50.008663000 +0200
@@ -6,11 +6,15 @@
author = Steve Pulec
author_email = [email protected]
url = https://github.com/spulec/freezegun
+project_urls =
+ Bug Tracker = https://github.com/spulec/freezegun/issues
+ Changes = https://github.com/spulec/freezegun/blob/master/CHANGELOG
+ Documentation =
https://github.com/spulec/freezegun/blob/master/README.rst
+ Source Code = https://github.com/spulec/freezegun
license = Apache 2.0
classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3
- Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Binary files old/freezegun-1.2.1/tests/.DS_Store and
new/freezegun-1.2.2/tests/.DS_Store differ