summaryrefslogtreecommitdiff
path: root/dev-python/celery
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/celery')
-rw-r--r--dev-python/celery/celery-5.3.0_beta1-r1.ebuild (renamed from dev-python/celery/celery-5.3.0_beta1.ebuild)12
-rw-r--r--dev-python/celery/files/celery-5.3.0_beta1-sphinx-6.0.patch31
2 files changed, 34 insertions, 9 deletions
diff --git a/dev-python/celery/celery-5.3.0_beta1.ebuild b/dev-python/celery/celery-5.3.0_beta1-r1.ebuild
index 0efd14bef5d6..014ee48e8b51 100644
--- a/dev-python/celery/celery-5.3.0_beta1.ebuild
+++ b/dev-python/celery/celery-5.3.0_beta1-r1.ebuild
@@ -34,15 +34,7 @@ RDEPEND="
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/vine[${PYTHON_USEDEP}]
"
-# TODO:
-# - dev-python/pyArango
-# - dev-python/couchbase
-# - dev-python/pycouchdb
-# Deprecated test deps (don't add):
-# - eventlet
-# - memcached
-# - python-consul
-# - pydocumentdb
+
BDEPEND="
test? (
$(python_gen_impl_dep 'ncurses(+)')
@@ -85,6 +77,8 @@ EPYTEST_DESELECT=(
t/unit/worker/test_request.py::test_create_request_class::test_on_success__SystemExit
)
+PATCHES="${FILESDIR}/celery-5.3.0_beta1-sphinx-6.0.patch"
+
distutils_enable_tests pytest
distutils_enable_sphinx docs --no-autodoc
diff --git a/dev-python/celery/files/celery-5.3.0_beta1-sphinx-6.0.patch b/dev-python/celery/files/celery-5.3.0_beta1-sphinx-6.0.patch
new file mode 100644
index 000000000000..5d785b9c6ef3
--- /dev/null
+++ b/dev-python/celery/files/celery-5.3.0_beta1-sphinx-6.0.patch
@@ -0,0 +1,31 @@
+From 57acb4d0ecb4fcb55daf3bb2d750aa760a81eec6 Mon Sep 17 00:00:00 2001
+From: Mathias Ertl <mati@er.tl>
+Date: Sat, 24 Dec 2022 10:40:19 +0100
+Subject: [PATCH] return list of nodes to make sphinx extension compatible with
+ Sphinx 6.0
+
+---
+ celery/contrib/sphinx.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/celery/contrib/sphinx.py b/celery/contrib/sphinx.py
+index a3a06479ccf..a5505ff189a 100644
+--- a/celery/contrib/sphinx.py
++++ b/celery/contrib/sphinx.py
+@@ -32,6 +32,7 @@
+ """
+ from inspect import signature
+
++from docutils import nodes
+ from sphinx.domains.python import PyFunction
+ from sphinx.ext.autodoc import FunctionDocumenter
+
+@@ -75,7 +76,7 @@ class TaskDirective(PyFunction):
+ """Sphinx task directive."""
+
+ def get_signature_prefix(self, sig):
+- return self.env.config.celery_task_prefix
++ return [nodes.Text(self.env.config.celery_task_prefix)]
+
+
+ def autodoc_skip_member_handler(app, what, name, obj, skip, options):