15
0
forked from pool/python-celery
Files
python-celery/python-celery.spec
Steve Kowalik ad3163ef03 - Update to 5.6.2:
* Fix recursive WorkController instantiation in DjangoWorkerFixup +
    AttributeError when pool_cls is a string
  * Bugfix: Revoked tasks now immediately update backend status to REVOKED
  * Fix Redis Sentinel ACL authentication support
  * Fix: Broker heartbeats not sent during graceful shutdown
  * close DB pools only in prefork mode
  * Fix: Avoid unnecessary Django database connection creation during cleanup
  * reliable prefork detection
  * Stop importing pytest_subtests
  * Only use exceptiongroup backport for Python < 3.11
  * Drop support for Python 3.8 (EOL).
  * Fixed a security issue where broker URLs containing passwords were
  * being logged in plaintext by the delayed delivery mechanism. Broker
  * credentials are now properly sanitized in all log output.
  * New configuration options allow specifying the queue type and exchange
  * type when Celery auto-creates missing queues.
  * asynpool: Don't return from inside a finally block
  * Add support for Django Connection pool
  * fix(worker): continue to attempt to bind other queues after a native
    delayed delivery binding failure has occurred
  * Handle UnpicklingError in persistent scheduler initialization
  * Bug Fix: Nested Chords Fail When Using django-celery-results with a Redis
    Backend
  * Add support pymongo 4.12
  * Feature: Add support credential_provider to Redis Backend
  * Celery.timezone: try tzlocal.get_localzone() before using LocalTimezone
  * Add documentation for task_id param for apply_async function
  * Support redis client name
  * fix: restrict disable-prefetch feature to Redis brokers only

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=174
2026-01-12 23:45:10 +00:00

141 lines
4.7 KiB
RPMSpec

#
# spec file for package python-celery
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%bcond_with ringdisabled
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-celery%{psuffix}
Version: 5.6.2
Release: 0
Summary: Distributed Task Queue module for Python
License: BSD-3-Clause
URL: https://celeryproject.org
Source: https://files.pythonhosted.org/packages/source/c/celery/celery-%{version}.tar.gz
Patch0: move-pytest-configuration-to-conftest.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-billiard >= 4.2.1
Requires: python-click >= 8.1.2
Requires: python-click-didyoumean >= 0.3.0
Requires: python-click-plugins >= 1.1.1
Requires: python-click-repl >= 0.2.0
Requires: python-dbm
Requires: python-kombu >= 5.6.0
Requires: python-python-dateutil >= 2.8.2
Requires: python-tzlocal
Requires: python-vine >= 5.1.0
Recommends: python-cryptography
Recommends: python-curses
Suggests: python-eventlet
Suggests: python-gevent
Suggests: python-pymongo
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module PyYAML >= 3.10}
BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module azure-storage-blob}
BuildRequires: %{python_module boto3 >= 1.9.178}
BuildRequires: %{python_module case >= 1.3.1}
BuildRequires: %{python_module celery = %{version}}
BuildRequires: %{python_module cryptography >= 36.0.2}
BuildRequires: %{python_module curses}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module eventlet >= 0.32.0}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module google-cloud-core}
BuildRequires: %{python_module google-cloud-firestore}
BuildRequires: %{python_module google-cloud-storage}
BuildRequires: %{python_module moto >= 2.2.6}
BuildRequires: %{python_module msgpack}
BuildRequires: %{python_module pydantic}
BuildRequires: %{python_module pymongo >= 4.0.2}
BuildRequires: %{python_module pytest >= 4.5.0}
BuildRequires: %{python_module pytest-click}
BuildRequires: %{python_module pytest-subtests if %python-pytest < 9}
BuildRequires: %{python_module redis}
%if %{with ringdisabled}
ExclusiveArch: do-not-build
%endif
%endif
%python_subpackages
%description
Celery is an asynchronous task queue/job queue based on distributed
message passing. It is focused on real-time operation, but supports
scheduling as well.
%prep
%autosetup -p1 -n celery-%{version}
%build
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/celery
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# test_check_privileges_no_fchown - first it deletes fchown from the system, so it needs root privileges, and then it runs the worker and complains about root privileges
# test_init_mongodb_dnspython2_pymongo4_seedlist - pymongo.errors.ConfigurationError: cannot open /etc/resolv.conf
# Temporary, remove
# test_aaa_eventlet_patch::test_aaa_blockdetecet - AssertionError: expected call not found.
# test_AsynPool::test_gen_not_started
# Fails if the system timezone is UTC
# test_uses_utc_timezone
%pytest -k "not test_check_privileges_no_fchown and not test_aaa_blockdetecet and not test_gen_not_started and not test_init_mongodb_dnspython2_pymongo4_seedlist and not test_uses_utc_timezone"
%endif
%if !%{with test}
%pre
%python_libalternatives_reset_alternative celery
%files %{python_files}
%{python_sitelib}/celery
%{python_sitelib}/celery-%{version}.dist-info
%license LICENSE
%doc README.rst TODO
%python_alternative %{_bindir}/celery
%endif
%changelog