From d99162a7a612441939248cd54eb3dd098d1d7838fdcc2b191822b2a405da2648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 26 Jan 2021 14:42:29 +0000 Subject: [PATCH] Accepting request 866850 from home:mcalabkova:branches:devel:languages:python - Update to 0.4 * Officially support Celery 5.0. Drop support for Celery < 4.4. * Drop support for Python < 3.6. - Add celery-fixtures.patch to fix the testsuite OBS-URL: https://build.opensuse.org/request/show/866850 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery-batches?expand=0&rev=9 --- celery-batches-0.3.tar.gz | 3 --- celery-batches-0.4.tar.gz | 3 +++ celery-fixtures.patch | 13 +++++++++++++ python-celery-batches.changes | 8 ++++++++ python-celery-batches.spec | 10 ++++++---- 5 files changed, 30 insertions(+), 7 deletions(-) delete mode 100644 celery-batches-0.3.tar.gz create mode 100644 celery-batches-0.4.tar.gz create mode 100644 celery-fixtures.patch diff --git a/celery-batches-0.3.tar.gz b/celery-batches-0.3.tar.gz deleted file mode 100644 index fdcdd75..0000000 --- a/celery-batches-0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5638a599e0b3675413b03966c2203d9df932dc264898361ab8e846c6a75b40da -size 12295 diff --git a/celery-batches-0.4.tar.gz b/celery-batches-0.4.tar.gz new file mode 100644 index 0000000..fc9bed1 --- /dev/null +++ b/celery-batches-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da30ecedc03074ae8c15f5f5c00a63a57910df2b51f00a5441bac5ac39e3d229 +size 12162 diff --git a/celery-fixtures.patch b/celery-fixtures.patch new file mode 100644 index 0000000..8943e90 --- /dev/null +++ b/celery-fixtures.patch @@ -0,0 +1,13 @@ +Index: celery-batches-0.4/t/integration/test_batches.py +=================================================================== +--- celery-batches-0.4.orig/t/integration/test_batches.py ++++ celery-batches-0.4/t/integration/test_batches.py +@@ -7,6 +7,8 @@ from celery import signals + from celery.app.task import Task + from celery.result import allow_join_result + from celery.contrib.testing.tasks import ping ++# some fixtures ++from celery.contrib.pytest import * + + from .tasks import add, cumadd, Results + diff --git a/python-celery-batches.changes b/python-celery-batches.changes index d103319..9bddd81 100644 --- a/python-celery-batches.changes +++ b/python-celery-batches.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jan 26 13:07:49 UTC 2021 - Markéta Machová + +- Update to 0.4 + * Officially support Celery 5.0. Drop support for Celery < 4.4. + * Drop support for Python < 3.6. +- Add celery-fixtures.patch to fix the testsuite + ------------------------------------------------------------------- Mon Mar 30 13:47:17 UTC 2020 - Marketa Calabkova diff --git a/python-celery-batches.spec b/python-celery-batches.spec index 87b8458..3726abd 100644 --- a/python-celery-batches.spec +++ b/python-celery-batches.spec @@ -1,7 +1,7 @@ # # spec file for package python-celery-batches # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2018 Matthias Fehring # # All modifications and additions to the file contributed by third parties @@ -20,21 +20,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define _pkgname celery-batches Name: python-%{_pkgname} -Version: 0.3 +Version: 0.4 Release: 0 Summary: Django module to process multiple Celery task requests together License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/percipient/celery-batches Source: https://github.com/percipient/%{_pkgname}/archive/v%{version}.tar.gz#/%{_pkgname}-%{version}.tar.gz -BuildRequires: %{python_module celery >= 4.0} +Patch0: celery-fixtures.patch +BuildRequires: %{python_module celery >= 4.4} BuildRequires: %{python_module coverage} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-celery >= 4.0 +Requires: python-celery >= 4.4 BuildArch: noarch %python_subpackages @@ -47,6 +48,7 @@ with any other form application. %prep %setup -q -n %{_pkgname}-%{version} +%patch0 -p1 %build %python_build