## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without tests # Packaging unstable? #%%global prerel rc1 %global general_version 5.3.6 %global upstream_version %{general_version}%{?prerel} Name: python-celery Version: %{general_version}%{?prerel:~%{prerel}} Release: %autorelease BuildArch: noarch # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://docs.celeryq.dev/ Source0: https://github.com/celery/celery/archive/v%{upstream_version}/%{name}-%{upstream_version}.tar.gz # Fix custom pytest markers for pytest Source1: pytest.ini Summary: Distributed Task Queue %description An open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well. The execution units, called tasks, are executed concurrently on one or more worker nodes using multiprocessing, Eventlet or gevent. Tasks can execute asynchronously (in the background) or synchronously (wait until ready). Celery is used in production systems to process millions of tasks a day. Celery is written in Python, but the protocol can be implemented in any language. It can also operate with other languages using web hooks. The recommended message broker is RabbitMQ, but limited support for Redis, Beanstalk, MongoDB, CouchDB and databases (using SQLAlchemy or the Django ORM) is also available. %package doc Summary: Documentation for python-celery # Automatically converted from old format: CC-BY-SA - review is highly recommended. License: LicenseRef-Callaway-CC-BY-SA %description doc Documentation for python-celery. %package -n python3-celery Summary: Distributed Task Queue # Requires are auto-generated from setup.py (and then from requirements/default.txt) BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} BuildRequires: python3-amqp BuildRequires: python3-billiard BuildRequires: python3-cryptography BuildRequires: python3-click BuildRequires: python3-click-didyoumean BuildRequires: python3-click-plugins BuildRequires: python3-click-repl BuildRequires: python3-dns BuildRequires: python3-dateutil BuildRequires: python3-kombu BuildRequires: python3-msgpack BuildRequires: python3-pytest BuildRequires: python3-pytest-click BuildRequires: python3-pytest-timeout BuildRequires: python3-pytest-subtests BuildRequires: python3-pytz BuildRequires: python3-pyyaml BuildRequires: python3-redis BuildRequires: python3-simplejson %endif %description -n python3-celery %{desc} %prep %autosetup -p1 -n celery-%{upstream_version} # Drop python tzdata requirement which doesn't make sense on Fedora sed -i 's/tzdata>=2022.7//g' requirements/default.txt %build %py3_build #pushd docs # missing python-sphinx_celery (for the moment) #make %{?_smp_mflags} html #popd # fix custom celery markers in pytest cp %{SOURCE1} . %install %py3_install pushd %{buildroot}%{_bindir} mv celery celery-%{python3_version} ln -s celery-%{python3_version} celery-3 ln -s celery-3 celery popd %check # python-moto is not packaged in Fedora, ignore S3 tests # mongodb is not packaged in Fedora, ignore mongodb tests # pytest-celery is not packaged in Fedora, ignore integration test %if %{with tests} # cache tests export TEST_BROKER=redis:// export TEST_BACKEND=cache+pylibmc:// %pytest --ignore=t/unit/backends/test_s3.py --ignore=t/unit/backends/test_mongodb.py --ignore=t/distro/test_CI_reqs.py --ignore=t/integration/test_worker.py # redis tests export TEST_BROKER=redis:// export TEST_BACKEND=redis:// %pytest --ignore=t/unit/backends/test_s3.py --ignore=t/unit/backends/test_mongodb.py --ignore=t/distro/test_CI_reqs.py --ignore=t/integration/test_worker.py # rabbitmq tests export TEST_BROKER=pyamqp:// export TEST_BACKEND=rpc %pytest --ignore=t/unit/backends/test_s3.py --ignore=t/unit/backends/test_mongodb.py --ignore=t/distro/test_CI_reqs.py --ignore=t/integration/test_worker.py %endif %files doc %license LICENSE %files -n python3-celery %license LICENSE %doc README.rst TODO CONTRIBUTORS.txt examples %{_bindir}/celery %{_bindir}/celery-3* %{python3_sitelib}/celery-*.egg-info %{python3_sitelib}/celery %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Miroslav Suchý - 5.3.6-7 - convert license to SPDX * Sun Aug 18 2024 Benjamin A. Beasley - 5.3.6-6 - Remove obsolete BR on orphaned/unmaintained python3-case * Fri Jul 19 2024 Fedora Release Engineering - 5.3.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 5.3.6-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 5.3.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 5.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 04 2023 František Zatloukal - 5.3.6-1 - Celery 5.3.6 (Fixes RHBZ#2236466) * Tue Aug 29 2023 Lumir Balhar - 5.3.1-4 - Remove dependency on python3-future * Fri Jul 21 2023 Fedora Release Engineering - 5.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 10 2023 František Zatloukal - 5.3.1-2 - Python 3.12 rebuild (Fixes RHBZ#2220146) * Mon Jun 19 2023 František Zatloukal - 5.3.1-1 - Celery 5.3.1 (fixes RHBZ#2215772) * Sun Jun 18 2023 František Zatloukal - 5.3.0-1 - Celery 5.3.0 * Wed May 24 2023 František Zatloukal - 5.3.0~rc1-1 - Celery 5.3.0rc1 * Sun Feb 19 2023 Frantisek Zatloukal - 5.3.0~b2-1 - Celery 5.3.0b2 (closes RHBZ#2171242) * Fri Jan 20 2023 Fedora Release Engineering - 5.3.0~b1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 03 2022 Frantisek Zatloukal - 5.3.0~b1-1 - Celery 5.3.0b1 (closes RHBZ#2091392) * Fri Jul 22 2022 Fedora Release Engineering - 5.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 24 2022 Python Maint - 5.2.6-2 - Rebuilt for Python 3.11 * Sat Apr 09 2022 Frantisek Zatloukal - 5.2.6-1 - Celery 5.2.6 * Sun Apr 03 2022 Frantisek Zatloukal - 5.2.5-1 - Celery 5.2.5 * Fri Jan 21 2022 Fedora Release Engineering - 5.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jan 07 2022 Frantisek Zatloukal - 5.2.3-2 - Lighten up some dependency ranges a bit * Thu Jan 06 2022 Frantisek Zatloukal - 5.2.3-1 - Celery 5.2.3 * Mon Nov 22 2021 Frantisek Zatloukal - 5.2.1-1 - Celery 5.2.1 * Wed Nov 10 2021 Frantisek Zatloukal - 5.2.0-1 - Celery 5.2.0 * Wed Nov 03 2021 Frantisek Zatloukal - 5.2.0~rc2-1 - Celery 5.2.0rc2 * Thu Oct 14 2021 Frantisek Zatloukal - 5.2.0~rc1-1 - Celery 5.2.0rc1 * Fri Jul 23 2021 Fedora Release Engineering - 5.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jul 01 2021 Frantisek Zatloukal - 5.1.2-1 - Celery 5.1.2 * Wed Jun 30 2021 Miro Hrončok - 5.1.1-2 - Work with click 8 - Fixes rhbz#1977508 * Wed Jun 23 2021 Frantisek Zatloukal - 5.1.1-1 - Celery 5.1.1 * Fri Jun 04 2021 Python Maint - 5.1.0-2 - Rebuilt for Python 3.10 * Tue May 25 2021 Frantisek Zatloukal - 5.1.0-1 - Celery 5.1.0 * Wed Jan 27 2021 Fedora Release Engineering - 5.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 21 2020 Frantisek Zatloukal - 5.0.5-1 - Celery 5.0.5 * Tue Dec 08 2020 Frantisek Zatloukal - 5.0.4-1 - Celery 5.0.4 - Remove requires from spec, let generators do their job :) * Sun Dec 06 2020 Frantisek Zatloukal - 5.0.3-1 - Celery 5.0.3 * Tue Nov 03 2020 Frantisek Zatloukal - 5.0.2-1 - Celery 5.0.2 * Mon Oct 19 2020 Frantisek Zatloukal - 5.0.1-1 - Celery 5.0.1 * Wed Sep 30 2020 Frantisek Zatloukal - 5.0.0-2 - Enable more tests * Tue Sep 29 2020 Frantisek Zatloukal - 5.0.0-1 - Celery 5.0.0 * Mon Aug 03 2020 Frantisek Zatloukal - 4.4.7-1 - Celery 4.4.7 * Wed Jul 29 2020 Fedora Release Engineering - 4.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Frantisek Zatloukal - 4.4.6-1 - Celery 4.4.6 * Mon Jun 08 2020 Frantisek Zatloukal - 4.4.5-1 - Celery 4.4.5 * Mon Jun 01 2020 Frantisek Zatloukal - 4.4.4-1 - Celery 4.4.4 * Mon Jun 01 2020 Frantisek Zatloukal - 4.4.3-1 - Celery 4.4.3 - Run pytest during rpm build * Mon May 25 2020 Miro Hrončok - 4.3.0-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 4.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 4.3.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 4.3.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 4.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 02 2019 Nils Philippsen - 4.3.0-1 - Update to 4.3.0 * Thu Jun 06 2019 Randy Barlow - 4.2.1-5 - Drop python2-celery, as nothing was using it and it fails to install (#1716370). * Sat Feb 02 2019 Fedora Release Engineering - 4.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 28 2019 Neal Gompa - 4.2.1-3 - Drop old, unused dependencies from Python 2 subpackage * Mon Jan 28 2019 Neal Gompa - 4.2.1-2 - Switch celery binary to Python 3 in F30+ - Switch to bconds for controlling the build - Drop unused macro * Wed Sep 19 2018 Randy Barlow - 4.2.1-1 - Update to 4.2.1 (#1602746). - https://github.com/celery/celery/blob/v4.2.1/Changelog - Correct documentation license to CC-BY-SA. * Fri Jul 13 2018 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 26 2018 Matthias Runge - 4.2.0-2 - rebuild for python 3.7 * Mon Jun 25 2018 Carl George - 4.2.0-1 - Latest upstream * Tue Jun 19 2018 Miro Hrončok - 4.1.1-2 - Rebuilt for Python 3.7 * Tue May 22 2018 Matthias Runge - 4.1.1-1 - update to 4.1.1 (rhbz#1474545) * Sun Feb 11 2018 Iryna Shcherbina - 4.0.2-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 4.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild ## END: Generated by rpmautospec