Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-celery-beat for 
openSUSE:Factory checked in at 2024-02-13 22:43:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-celery-beat (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-celery-beat.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-celery-beat"

Tue Feb 13 22:43:24 2024 rev:2 rq:1146299 version:2.5.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-celery-beat/python-django-celery-beat.changes
      2023-07-25 11:50:22.297195453 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-celery-beat.new.1815/python-django-celery-beat.changes
    2024-02-13 22:43:51.723468554 +0100
@@ -1,0 +2,6 @@
+Tue Feb 13 04:32:32 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch support-zoneinfo.patch:
+  * Use correct method for zoneinfo instances.
+
+-------------------------------------------------------------------

New:
----
  support-zoneinfo.patch

BETA DEBUG BEGIN:
  New:
- Add patch support-zoneinfo.patch:
  * Use correct method for zoneinfo instances.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-django-celery-beat.spec ++++++
--- /var/tmp/diff_new_pack.W6ukUa/_old  2024-02-13 22:43:52.447494698 +0100
+++ /var/tmp/diff_new_pack.W6ukUa/_new  2024-02-13 22:43:52.451494842 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-celery-beat
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,31 +23,34 @@
 License:        BSD-3-Clause
 URL:            https://github.com/celery/django-celery-beat
 Source:         
https://files.pythonhosted.org/packages/source/d/django-celery-beat/django-celery-beat-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
+# PATCH-FIX-UPSTREAM gh#celery/django-celery-beat#664
+Patch0:         support-zoneinfo.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
+BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module celery >= 5.2.3}
+BuildRequires:  %{python_module Django >= 3.2}
+BuildRequires:  %{python_module case >= 1.3.1}
 BuildRequires:  %{python_module cron-descriptor >= 1.2.32}
 BuildRequires:  %{python_module django-timezone-field >= 5.0}
-BuildRequires:  %{python_module python-crontab >= 2.3.4}
-BuildRequires:  %{python_module case >= 1.3.1}
-BuildRequires:  %{python_module Django >= 3.2}
 BuildRequires:  %{python_module ephem}
+BuildRequires:  %{python_module importlib-metadata}
 BuildRequires:  %{python_module pytest >= 6.2.5}
 BuildRequires:  %{python_module pytest-django >= 4.5.2}
 BuildRequires:  %{python_module pytest-timeout}
-BuildRequires:  %{python_module importlib-metadata}
+BuildRequires:  %{python_module python-crontab >= 2.3.4}
+BuildRequires:  %{python_module tzdata}
 BuildRequires:  timezone
 # /SECTION
 BuildRequires:  fdupes
+Requires:       python-Django >= 3.2
 Requires:       python-celery >= 5.2.3
 Requires:       python-cron-descriptor >= 1.2.32
-Requires:       python-Django >= 3.2
 Requires:       python-django-timezone-field >= 5.0
 Requires:       python-python-crontab >= 2.3.4
-Requires:       timezone
+Requires:       python-tzdata
 Suggests:       python-importlib-metadata < 5.0
 Suggests:       python-backports.zoneinfo
 BuildArch:      noarch

++++++ support-zoneinfo.patch ++++++
>From 916ab26f463be22ef17aaf1b3b4f1531dddc1c8f Mon Sep 17 00:00:00 2001
From: Stanislav Filin <stasfi...@hotmail.com>
Date: Thu, 13 Jul 2023 14:19:31 +0000
Subject: [PATCH 1/6] Change assert self.app.timezone.zone  to assert
 self.app.timezone.key

Signed-off-by: Stanislav Filin <stasfi...@hotmail.com>
---
 t/unit/test_schedulers.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/unit/test_schedulers.py b/t/unit/test_schedulers.py
index 161d1e2a..f44d88cb 100644
--- a/t/unit/test_schedulers.py
+++ b/t/unit/test_schedulers.py
@@ -159,7 +159,7 @@ def test_entry_is_due__no_use_tz(self):
         os.environ["TZ"] = "Europe/Berlin"
         if hasattr(time, "tzset"):
             time.tzset()
-        assert self.app.timezone.zone == 'Europe/Berlin'
+        assert self.app.timezone.key == 'Europe/Berlin'
 
         # simulate last_run_at from DB - not TZ aware but localtime
         right_now = datetime.utcnow()
@@ -191,7 +191,7 @@ def 
test_entry_and_model_last_run_at_with_utc_no_use_tz(self, monkeypatch):
         os.environ["TZ"] = "Europe/Berlin"
         if hasattr(time, "tzset"):
             time.tzset()
-        assert self.app.timezone.zone == 'Europe/Berlin'
+        assert self.app.timezone.key == 'Europe/Berlin'
         # simulate last_run_at from DB - not TZ aware but localtime
         right_now = datetime.utcnow()
         # make sure to use fixed date time
@@ -227,7 +227,7 @@ def 
test_entry_is_due__celery_timezone_doesnt_match_time_zone(self):
         os.environ["TZ"] = "Europe/Berlin"
         if hasattr(time, "tzset"):
             time.tzset()
-        assert self.app.timezone.zone == 'America/New_York'
+        assert self.app.timezone.key == 'America/New_York'
 
         # simulate last_run_at all none, doing the same thing that
         # _default_now() would do

>From b8d7cc2ce634df79a4d81250fc3543c747d3ed25 Mon Sep 17 00:00:00 2001
From: Stanislav Filin <stasfi...@hotmail.com>
Date: Thu, 13 Jul 2023 15:00:51 +0000
Subject: [PATCH 2/6] Add docstring to fix pydocstyle

Signed-off-by: Stanislav Filin <stasfi...@hotmail.com>
---
 django_celery_beat/admin.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/django_celery_beat/admin.py b/django_celery_beat/admin.py
index 0ba8a12f..f46dea92 100644
--- a/django_celery_beat/admin.py
+++ b/django_celery_beat/admin.py
@@ -264,6 +264,7 @@ class ClockedScheduleAdmin(admin.ModelAdmin):
 
 
 class CrontabScheduleAdmin(admin.ModelAdmin):
+    """Admin class for CrontabSchedule."""
     list_display = ('__str__', 'human_readable')
 
 

>From 85a5ceea536be2e97e98aa5d6eb54ad6c8192553 Mon Sep 17 00:00:00 2001
From: Stanislav Filin <stasfi...@hotmail.com>
Date: Thu, 13 Jul 2023 15:17:40 +0000
Subject: [PATCH 3/6] Add blank line (PEP 257)

Signed-off-by: Stanislav Filin <stasfi...@hotmail.com>
---
 django_celery_beat/admin.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/django_celery_beat/admin.py b/django_celery_beat/admin.py
index f46dea92..add96779 100644
--- a/django_celery_beat/admin.py
+++ b/django_celery_beat/admin.py
@@ -265,6 +265,7 @@ class ClockedScheduleAdmin(admin.ModelAdmin):
 
 class CrontabScheduleAdmin(admin.ModelAdmin):
     """Admin class for CrontabSchedule."""
+
     list_display = ('__str__', 'human_readable')
 
 

>From f9435971df6d4576fdcf04f2f78c610ec84f4faa Mon Sep 17 00:00:00 2001
From: Stanislav Filin <stasfi...@hotmail.com>
Date: Sat, 15 Jul 2023 09:36:28 +0000
Subject: [PATCH 4/6] Update docs/conf.py

Signed-off-by: Stanislav Filin <stasfi...@hotmail.com>
---
 docs/conf.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index 29e80319..9d6a4fe8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -38,3 +38,7 @@
         ),
     },
 ))
+
+intersphinx_mapping = globals().get('intersphinx_mapping', {})
+intersphinx_mapping['celery'] = ('https://celery.readthedocs.io/en/main/', 
None)
+globals().update({'intersphinx_mapping': intersphinx_mapping})
\ No newline at end of file

>From 17f79e8f658825ed1b922c30f56637a3a05ed146 Mon Sep 17 00:00:00 2001
From: Stanislav Filin <stasfi...@hotmail.com>
Date: Sat, 15 Jul 2023 09:37:14 +0000
Subject: [PATCH 5/6] Add blank line

Signed-off-by: Stanislav Filin <stasfi...@hotmail.com>
---
 docs/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 9d6a4fe8..11587f60 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -41,4 +41,4 @@
 
 intersphinx_mapping = globals().get('intersphinx_mapping', {})
 intersphinx_mapping['celery'] = ('https://celery.readthedocs.io/en/main/', 
None)
-globals().update({'intersphinx_mapping': intersphinx_mapping})
\ No newline at end of file
+globals().update({'intersphinx_mapping': intersphinx_mapping})

>From 691c37229ea080de601c1f870749bfc10ff8fac5 Mon Sep 17 00:00:00 2001
From: Stanislav Filin <stasfi...@hotmail.com>
Date: Sat, 15 Jul 2023 09:39:08 +0000
Subject: [PATCH 6/6] Fix docs/conf.py:43:80: E501 line too long (80 > 79
 characters)

Signed-off-by: Stanislav Filin <stasfi...@hotmail.com>
---
 docs/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 11587f60..2afa72bd 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -40,5 +40,6 @@
 ))
 
 intersphinx_mapping = globals().get('intersphinx_mapping', {})
-intersphinx_mapping['celery'] = ('https://celery.readthedocs.io/en/main/', 
None)
+intersphinx_mapping['celery'] = (
+    'https://celery.readthedocs.io/en/main/', None)
 globals().update({'intersphinx_mapping': intersphinx_mapping})

Reply via email to