From a2a822108df018dfcf4da9c876801f3508613aee Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 2 Jun 2025 12:41:33 +0300 Subject: python3-freezegun: Upgrade 1.5.1 -> 1.5.2 Upgrade to release 1.5.2: - Remove support for Python 3.7 - Explicitly marks support for Python 3.13 - Improved project documentation Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../1777174bb97c0b514033a09b820078b0d117f4a8.patch | 37 ---------------------- .../python/python3-freezegun_1.5.1.bb | 22 ------------- .../python/python3-freezegun_1.5.2.bb | 18 +++++++++++ 3 files changed, 18 insertions(+), 59 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch delete mode 100644 meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-freezegun_1.5.2.bb diff --git a/meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch b/meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch deleted file mode 100644 index 4604da2b57..0000000000 --- a/meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 1777174bb97c0b514033a09b820078b0d117f4a8 Mon Sep 17 00:00:00 2001 -From: Bert Blommers -Date: Fri, 28 Jun 2024 19:21:04 +0000 -Subject: [PATCH] Admin: Support Python 3.13 - -Upstream-Status: Backport [https://github.com/spulec/freezegun/pull/550] -Signed-off-by: Khem Raj ---- - .github/workflows/ci.yaml | 9 ++++++--- - tests/test_datetimes.py | 6 +++--- - 2 files changed, 9 insertions(+), 6 deletions(-) - -diff --git a/tests/test_datetimes.py b/tests/test_datetimes.py -index a6f1989..b75ad3b 100644 ---- 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') diff --git a/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb b/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb deleted file mode 100644 index 9d823da507..0000000000 --- a/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb +++ /dev/null @@ -1,22 +0,0 @@ -SUMMARY = "FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module." -HOMEPAGE = "https://github.com/spulec/freezegun" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=acf1d209bb6eddae4cbe6ffd6a0144fe" - -SRC_URI[sha256sum] = "b29dedfcda6d5e8e083ce71b2b542753ad48cfec44037b3fc79702e2980a89e9" - -inherit pypi python_setuptools_build_meta ptest-python-pytest - -SRC_URI += " \ - file://1777174bb97c0b514033a09b820078b0d117f4a8.patch \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-sqlite3 \ -" - -RDEPENDS:${PN} = "\ - python3-asyncio \ - python3-dateutil \ - python3-unittest \ -" diff --git a/meta-python/recipes-devtools/python/python3-freezegun_1.5.2.bb b/meta-python/recipes-devtools/python/python3-freezegun_1.5.2.bb new file mode 100644 index 0000000000..56674c448b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-freezegun_1.5.2.bb @@ -0,0 +1,18 @@ +SUMMARY = "FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module." +HOMEPAGE = "https://github.com/spulec/freezegun" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=acf1d209bb6eddae4cbe6ffd6a0144fe" + +SRC_URI[sha256sum] = "a54ae1d2f9c02dbf42e02c18a3ab95ab4295818b549a34dac55592d72a905181" + +inherit pypi python_setuptools_build_meta ptest-python-pytest + +RDEPENDS:${PN}-ptest += " \ + python3-sqlite3 \ +" + +RDEPENDS:${PN} = "\ + python3-asyncio \ + python3-dateutil \ + python3-unittest \ +" -- cgit v1.2.3-54-g00ecf