Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-celery for openSUSE:Factory 
checked in at 2023-05-30 22:02:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-celery (Old)
 and      /work/SRC/openSUSE:Factory/.python-celery.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-celery"

Tue May 30 22:02:20 2023 rev:42 rq:1089865 version:5.2.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-celery/python-celery.changes      
2023-03-28 17:51:27.455580559 +0200
+++ /work/SRC/openSUSE:Factory/.python-celery.new.1533/python-celery.changes    
2023-05-30 22:02:34.831059131 +0200
@@ -1,0 +2,6 @@
+Mon May 29 15:38:50 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add sqlalchemy-2.0.patch to support latest version of sqlalchemy.
+  gh#celery/celery#8271
+
+-------------------------------------------------------------------

New:
----
  sqlalchemy-2.0.patch

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

Other differences:
------------------
++++++ python-celery.spec ++++++
--- /var/tmp/diff_new_pack.DLmfRL/_old  2023-05-30 22:02:35.531063257 +0200
+++ /var/tmp/diff_new_pack.DLmfRL/_new  2023-05-30 22:02:35.535063281 +0200
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
@@ -39,6 +38,8 @@
 # PATCH-FIX-UPSTREAM compatibility with newer billiard
 Patch2:         
https://github.com/celery/celery/commit/b260860988469ef8ad74f2d4225839c2fa91d590.patch
 Patch3:         
https://github.com/celery/celery/commit/879af6341974c3778077d8212d78f093b2d77a4f.patch
+# PATCH-FIX-UPSTREAM sqlalchemy-2.0.patch -- gh#celery/celery#8271
+Patch4:         sqlalchemy-2.0.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  netcfg
@@ -122,7 +123,8 @@
 %python_uninstall_alternative celery
 
 %files %{python_files}
-%{python_sitelib}/*
+%{python_sitelib}/celery
+%{python_sitelib}/celery-%{version}*-info
 %license LICENSE
 %doc README.rst TODO
 %python_alternative %{_bindir}/celery

++++++ 879af6341974c3778077d8212d78f093b2d77a4f.patch ++++++
--- /var/tmp/diff_new_pack.DLmfRL/_old  2023-05-30 22:02:35.583063564 +0200
+++ /var/tmp/diff_new_pack.DLmfRL/_new  2023-05-30 22:02:35.587063588 +0200
@@ -12,7 +12,7 @@
  4 files changed, 23 insertions(+), 12 deletions(-)
 
 diff --git a/celery/app/task.py b/celery/app/task.py
-index 212bc772e0..d6108fbef8 100644
+index 212bc772e01..d6108fbef8c 100644
 --- a/celery/app/task.py
 +++ b/celery/app/task.py
 @@ -1,7 +1,7 @@
@@ -34,7 +34,7 @@
              return retval.sig.apply(retries=retries + 1)
          state = states.SUCCESS if ret.info is None else ret.info.state
 diff --git a/celery/worker/request.py b/celery/worker/request.py
-index d89971468c..d0004a19cc 100644
+index d89971468c6..d0004a19ccc 100644
 --- a/celery/worker/request.py
 +++ b/celery/worker/request.py
 @@ -10,6 +10,7 @@
@@ -85,7 +85,7 @@
              task_ready(self)
  
 diff --git a/t/unit/utils/test_collections.py 
b/t/unit/utils/test_collections.py
-index ce776cebf1..aae685ebc7 100644
+index ce776cebf1a..aae685ebc7c 100644
 --- a/t/unit/utils/test_collections.py
 +++ b/t/unit/utils/test_collections.py
 @@ -145,8 +145,8 @@ def test_exception_info(self):
@@ -100,7 +100,7 @@
  
              assert repr(einfo)
 diff --git a/t/unit/worker/test_request.py b/t/unit/worker/test_request.py
-index a34f70dc80..b818f2837c 100644
+index a34f70dc80d..b818f2837cc 100644
 --- a/t/unit/worker/test_request.py
 +++ b/t/unit/worker/test_request.py
 @@ -155,7 +155,7 @@ def test_execute_jail_failure(self):

++++++ b260860988469ef8ad74f2d4225839c2fa91d590.patch ++++++
--- /var/tmp/diff_new_pack.DLmfRL/_old  2023-05-30 22:02:35.623063800 +0200
+++ /var/tmp/diff_new_pack.DLmfRL/_new  2023-05-30 22:02:35.627063823 +0200
@@ -11,7 +11,7 @@
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/celery/concurrency/asynpool.py b/celery/concurrency/asynpool.py
-index b9f2875a26..489336936c 100644
+index b9f2875a261..489336936c1 100644
 --- a/celery/concurrency/asynpool.py
 +++ b/celery/concurrency/asynpool.py
 @@ -26,7 +26,7 @@

++++++ sqlalchemy-2.0.patch ++++++
Index: celery-5.2.7/t/unit/backends/test_database.py
===================================================================
--- celery-5.2.7.orig/t/unit/backends/test_database.py
+++ celery-5.2.7/t/unit/backends/test_database.py
@@ -410,7 +410,13 @@ class test_SessionManager:
         from sqlalchemy.dialects.sqlite import dialect
         from sqlalchemy.exc import DatabaseError
 
-        sqlite = dialect.dbapi()
+        if hasattr(dialect, 'dbapi'):
+            # Method name in SQLAlchemy < 2.0
+            sqlite = dialect.dbapi()
+        else:
+            # Newer method name in SQLAlchemy 2.0
+            sqlite = dialect.import_dbapi()
+
         manager = SessionManager()
         engine = manager.get_engine('dburi')
 

Reply via email to