15
0
forked from pool/python-celery

Accepting request 1185136 from home:mcalabkova:branches:devel:languages:python

- Update to 5.4.0
  * Add a Task class specialised for Django
  * Add Google Cloud Storage (GCS) backend
  * Added documentation to the smoke tests infra
  * Bugfix: Missing id on chain
  * Bugfix: Worker not consuming tasks after Redis broker restart
  * Catch UnicodeDecodeError when opening corrupt beat-schedule.db
  * chore(ci): Enhance CI with workflow_dispatch for targeted debugging
  * Enable efficient chord when using dynamicdb as backend store
  * feat(daemon): allows daemonization options to be fetched from app 
    settings
  * Fix DeprecationWarning: datetime.datetime.utcnow()
  * Fix recursive result parents on group in middle of chain
  * Hotfix: Smoke tests didn’t allow customizing the worker’s command 
    arguments, now it does
  * Make custom remote control commands available in CLI
  * Print safe_say() to stdout for non-error flows
  * Support moto 5.0
- Drop support-moto-5.patch

OBS-URL: https://build.opensuse.org/request/show/1185136
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=158
This commit is contained in:
2024-07-04 07:06:05 +00:00
committed by Git OBS Bridge
parent c893ced983
commit efb4b609bf
5 changed files with 30 additions and 81 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:870cc71d737c0200c397290d730344cc991d13a057534353d124c9380267aab9
size 1544498

3
celery-5.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:504a19140e8d3029d5acad88330c541d4c3f64c789d85f94756762d8bca7e706
size 1575692

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Wed Jul 3 13:17:39 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 5.4.0
* Add a Task class specialised for Django
* Add Google Cloud Storage (GCS) backend
* Added documentation to the smoke tests infra
* Bugfix: Missing id on chain
* Bugfix: Worker not consuming tasks after Redis broker restart
* Catch UnicodeDecodeError when opening corrupt beat-schedule.db
* chore(ci): Enhance CI with workflow_dispatch for targeted debugging
* Enable efficient chord when using dynamicdb as backend store
* feat(daemon): allows daemonization options to be fetched from app
settings
* Fix DeprecationWarning: datetime.datetime.utcnow()
* Fix recursive result parents on group in middle of chain
* Hotfix: Smoke tests didnt allow customizing the workers command
arguments, now it does
* Make custom remote control commands available in CLI
* Print safe_say() to stdout for non-error flows
* Support moto 5.0
- Drop support-moto-5.patch
-------------------------------------------------------------------
Fri Feb 9 03:09:55 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -28,25 +28,23 @@
%bcond_with ringdisabled
%{?sle15_python_module_pythons}
Name: python-celery%{psuffix}
Version: 5.3.6
Version: 5.4.0
Release: 0
Summary: Distributed Task Queue module for Python
License: BSD-3-Clause
URL: http://celeryproject.org
Source: https://files.pythonhosted.org/packages/source/c/celery/celery-%{version}.tar.gz
Patch0: move-pytest-configuration-to-conftest.patch
# PATCH-FIX-UPSTREAM gh#celery/celery#8838
Patch1: support-moto-5.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
Requires: python-billiard >= 3.6.4
Requires: python-billiard >= 4.1.0
Requires: python-click >= 8.0.3
Requires: python-click-didyoumean >= 0.0.3
Requires: python-click-plugins >= 1.1.1
Requires: python-click-repl >= 0.2.0
Requires: python-kombu >= 5.2.3
Requires: python-kombu >= 5.3
Requires: python-python-dateutil
Requires: python-tzdata
Requires: python-vine >= 5.0.0
@@ -70,13 +68,13 @@ BuildRequires: %{python_module cryptography >= 36.0.2}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module eventlet >= 0.32.0}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module google-cloud-storage}
BuildRequires: %{python_module moto >= 2.2.6}
BuildRequires: %{python_module msgpack}
BuildRequires: %{python_module pymongo >= 4.0.2}
BuildRequires: %{python_module pytest >= 4.5.0}
BuildRequires: %{python_module pytest-click}
BuildRequires: %{python_module pytest-subtests}
BuildRequires: %{python_module tzdata}
%if %{with ringdisabled}
ExclusiveArch: do-not-build
%endif

View File

@@ -1,72 +0,0 @@
commit 8ebab3d94de46dc7074ffade0aec50d739d36e26
Author: Steve Kowalik <steven@wedontsleep.org>
Date: Fri Feb 9 11:58:01 2024 +1100
Support moto 5.0
moto 5.0 has been released, and the major change is to pull all of the
seperate mock calls into one -- mock_aws. Continue to support moto 4,
since it's easy to do so.
Index: celery-5.3.6/t/unit/backends/test_s3.py
===================================================================
--- celery-5.3.6.orig/t/unit/backends/test_s3.py
+++ celery-5.3.6/t/unit/backends/test_s3.py
@@ -3,7 +3,11 @@ from unittest.mock import patch
import boto3
import pytest
from botocore.exceptions import ClientError
-from moto import mock_s3
+
+try:
+ from moto import mock_aws
+except ImportError:
+ from moto import mock_s3 as mock_aws
from celery import states
from celery.backends.s3 import S3Backend
@@ -84,7 +88,7 @@ class test_S3Backend:
's3', endpoint_url=endpoint_url)
@pytest.mark.parametrize("key", ['uuid', b'uuid'])
- @mock_s3
+ @mock_aws
def test_set_and_get_a_key(self, key):
self._mock_s3_resource()
@@ -97,7 +101,7 @@ class test_S3Backend:
assert s3_backend.get(key) == 'another_status'
- @mock_s3
+ @mock_aws
def test_set_and_get_a_result(self):
self._mock_s3_resource()
@@ -111,7 +115,7 @@ class test_S3Backend:
value = s3_backend.get_result('foo')
assert value == 'baar'
- @mock_s3
+ @mock_aws
def test_get_a_missing_key(self):
self._mock_s3_resource()
@@ -141,7 +145,7 @@ class test_S3Backend:
s3_backend.get('uuidddd')
@pytest.mark.parametrize("key", ['uuid', b'uuid'])
- @mock_s3
+ @mock_aws
def test_delete_a_key(self, key):
self._mock_s3_resource()
@@ -157,7 +161,7 @@ class test_S3Backend:
assert s3_backend.get(key) is None
- @mock_s3
+ @mock_aws
def test_with_a_non_existing_bucket(self):
self._mock_s3_resource()