From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F165C15800F for ; Thu, 19 Jan 2023 22:17:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30DDFE0896; Thu, 19 Jan 2023 22:17:30 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A052E0896 for ; Thu, 19 Jan 2023 22:17:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2116C335C4E for ; Thu, 19 Jan 2023 22:17:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C0CF7DE for ; Thu, 19 Jan 2023 22:17:27 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1674166625.aadea75f9fc1b0dbce9f61d480fca3d6971ca011.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/, dev-python/celery/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/celery/celery-5.3.0_beta1-r1.ebuild dev-python/celery/celery-5.3.0_beta1.ebuild dev-python/celery/files/celery-5.3.0_beta1-sphinx-6.0.patch X-VCS-Directories: dev-python/celery/ dev-python/celery/files/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: aadea75f9fc1b0dbce9f61d480fca3d6971ca011 X-VCS-Branch: dev Date: Thu, 19 Jan 2023 22:17:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4768f87c-995c-4413-8c9b-a284a2a39a8f X-Archives-Hash: e0899eb4a1981c7b41a232c26a2b0693 commit: aadea75f9fc1b0dbce9f61d480fca3d6971ca011 Author: Julien Roy jroy ca> AuthorDate: Thu Jan 19 22:16:34 2023 +0000 Commit: Julien Roy jroy ca> CommitDate: Thu Jan 19 22:17:05 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aadea75f dev-python/celery: backport sphinx 6.0 patch Closes: https://bugs.gentoo.org/890883 Signed-off-by: Julien Roy jroy.ca> ...0_beta1.ebuild => celery-5.3.0_beta1-r1.ebuild} | 12 +++------ .../files/celery-5.3.0_beta1-sphinx-6.0.patch | 31 ++++++++++++++++++++++ 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 similarity index 95% rename from dev-python/celery/celery-5.3.0_beta1.ebuild rename to dev-python/celery/celery-5.3.0_beta1-r1.ebuild index 9fde77c3d..dc527d4aa 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 000000000..5d785b9c6 --- /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 +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):