[gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/
commit: a02c6163a389d69a946a7b85759125c640b8998c Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sat Dec 30 18:13:05 2023 + Commit: Michael Mair-Keimberger levelnine at> CommitDate: Sat Dec 30 18:20:01 2023 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a02c6163 dev-python/celery: remove unused patch Signed-off-by: Michael Mair-Keimberger levelnine.at> .../files/celery-5.3.0_beta1-sphinx-6.0.patch | 31 -- 1 file changed, 31 deletions(-) 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 deleted file mode 100644 index 5d785b9c6e..00 --- a/dev-python/celery/files/celery-5.3.0_beta1-sphinx-6.0.patch +++ /dev/null @@ -1,31 +0,0 @@ -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):
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/, dev-python/celery/
commit: aadea75f9fc1b0dbce9f61d480fca3d6971ca011 Author: Julien Roy jroy ca> AuthorDate: Thu Jan 19 22:16:34 2023 + Commit: Julien Roy jroy ca> CommitDate: Thu Jan 19 22:17:05 2023 + 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 0..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):
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/
commit: 7eff1ebc7f5fcd457e8d02b924b1971ebab9d507 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Mon Oct 24 19:25:58 2022 + Commit: Anna Vyalkova sysrq in> CommitDate: Mon Oct 24 19:31:57 2022 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7eff1ebc dev-python/celery: fixup openrc script Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-python/celery/files/celery.initd-r2 | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-python/celery/files/celery.initd-r2 b/dev-python/celery/files/celery.initd-r2 index 91dd838a6..2f10491fe 100644 --- a/dev-python/celery/files/celery.initd-r2 +++ b/dev-python/celery/files/celery.initd-r2 @@ -15,10 +15,10 @@ depend() { : ${CELERYD_LOG_LEVEL:="INFO"} : ${CELERYD_NODES:="celery"} -${CELERYBEAT_ENABLED:="no"} -${CELERYBEAT_PID_FILE:="/run/celery/celerybeat.pid"} -${CELERYBEAT_LOG_FILE:="/var/log/celery/celerybeat.log"} -${CELERYBEAT_LOG_LEVEL:="INFO"} +: ${CELERYBEAT_ENABLED:="no"} +: ${CELERYBEAT_PID_FILE:="/run/celery/celerybeat.pid"} +: ${CELERYBEAT_LOG_FILE:="/var/log/celery/celerybeat.log"} +: ${CELERYBEAT_LOG_LEVEL:="INFO"} export CELERY_LOADER
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/, dev-python/celery/
commit: ff7f99366c423cf1e3957096cf1fb831bb2581d2 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Fri Oct 21 15:39:35 2022 + Commit: Anna Vyalkova sysrq in> CommitDate: Sun Oct 23 20:48:22 2022 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff7f9936 dev-python/celery: add 5.3.0_beta1, drop 5.2.6 Closes: https://bugs.gentoo.org/859769 Closes: https://bugs.gentoo.org/841970 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-python/celery/Manifest | 2 +- ...lery-5.2.6.ebuild => celery-5.3.0_beta1.ebuild} | 57 +- dev-python/celery/files/celery.initd-r2| 51 ++- 3 files changed, 61 insertions(+), 49 deletions(-) diff --git a/dev-python/celery/Manifest b/dev-python/celery/Manifest index ef4f9c17e..e5bf84e1d 100644 --- a/dev-python/celery/Manifest +++ b/dev-python/celery/Manifest @@ -1 +1 @@ -DIST celery-5.2.6.tar.gz 1490948 BLAKE2B 1470b74b5d9345ddbb466ec83e684c71fd999fb9671be8a99c795d82ee53a45a5ec5e5c383104933ef2359b655043c408eef8de7dce7c5327a42b7d978a0b711 SHA512 80565cee3ac20a4a28e64582bd2a8cd807980447254d5cbad41c9954a012c025c402c5113d9610f879e74bf170ae7e3c70b5a3ace7228ae510feee380b9b48f9 +DIST celery-5.3.0_beta1.gh.tar.gz 1509819 BLAKE2B 8864d9895823fde8ed1938a8b418906e624f14f6d306f1afb54bfc3c1897facfb22a85e368b2fb3ac96992d639e5f03589bfc78488de9ce060c88d9d1321e4ab SHA512 c617a03ca85120b7889eb94b36e41b3ba45b93acfe239c56c93b0860042a06fceaad1c396342e27f941ae58fd3d7468bf22d6b042b04e246b55abe5eedb63016 diff --git a/dev-python/celery/celery-5.2.6.ebuild b/dev-python/celery/celery-5.3.0_beta1.ebuild similarity index 59% rename from dev-python/celery/celery-5.2.6.ebuild rename to dev-python/celery/celery-5.3.0_beta1.ebuild index 0b047820e..0075e42b3 100644 --- a/dev-python/celery/celery-5.2.6.ebuild +++ b/dev-python/celery/celery-5.3.0_beta1.ebuild @@ -4,47 +4,53 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -MYPV="${PV/_beta/b}" -PYTHON_COMPAT=( python3_{8..9} ) - +PYTHON_COMPAT=( python3_{8..10} ) inherit bash-completion-r1 distutils-r1 optfeature +MY_PV="${PV/_beta/b}" DESCRIPTION="Asynchronous task queue/job queue based on distributed message passing" HOMEPAGE=" https://docs.celeryproject.org/en/stable/index.html https://pypi.org/project/celery/ https://github.com/celery/celery " -SRC_URI="https://github.com/celery/celery/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-${MYPV}" +SRC_URI="https://github.com/celery/celery/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" -# There are a number of other optional 'extras' IUSE="examples" -#RESTRICT="!test? ( test )" -RESTRICT="test" # 'celery' not found in `markers` configuration option RDEPEND=" >=dev-python/billiard-3.6.4.0[${PYTHON_USEDEP}] - =dev-python/kombu-5.3.0_beta1[${PYTHON_USEDEP}] =dev-python/kombu-5.2.1[${PYTHON_USEDEP}] dev-python/pytz[${PYTHON_USEDEP}] + dev-python/vine[${PYTHON_USEDEP}] " -DEPEND=" - ${RDEPEND} +BDEPEND=" test? ( + $(python_gen_impl_dep 'ncurses(+)') >=dev-python/boto3-1.9.178[${PYTHON_USEDEP}] - >=dev-python/case-1.3.1[${PYTHON_USEDEP}] + dev-python/elasticsearch-py[${PYTHON_USEDEP}] >=dev-python/moto-1.3.7[${PYTHON_USEDEP}] - >=dev-python/pytest-6.2[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/pylibmc[${PYTHON_USEDEP}] + dev-python/pymongo[${PYTHON_USEDEP}] dev-python/pytest-celery[${PYTHON_USEDEP}] + dev-python/pytest-click[${PYTHON_USEDEP}] dev-python/pytest-subtests[${PYTHON_USEDEP}] >=dev-python/pytest-timeout-1.4.2[${PYTHON_USEDEP}] >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] - >=dev-python/pyzmq-13.1.0[${PYTHON_USEDEP}] + dev-python/redis-py[${PYTHON_USEDEP}] + dev-python/sphinx-testing[${PYTHON_USEDEP}] + dev-python/tblib[${PYTHON_USEDEP}] ) doc? ( dev-python/docutils[${PYTHON_USEDEP}] @@ -55,9 +61,18 @@ DEPEND=" ) " -# testsuite needs it own source -DISTUTILS_IN_SOURCE_BUILD=1 +EPYTEST_DESELECT=( + t/unit/tasks/test_result.py::test_EagerResult::test_wait_raises + t/unit/tasks/test_tasks.py::test_task_retries + t/unit/tasks/test_tasks.py::test_apply_task::test_apply + t/unit/utils/test_collections.py::test_ExceptionInfo::test_exception_info + t/unit/worker/test_request.py::test_trace_task::test_execute_jail_failure + t/unit/worker/test_request.py::test_Request + t/unit/worker/test_request.py::test_create_request_class::test_on_success__SystemExit +) + distutils_enable_tests pytest + distutils_enable_sphinx docs --no-autodoc python_inst
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/
commit: 4ffb5c5953fb11bf336119e369cf550c4cc51161 Author: Alessandro Barbieri gmail com> AuthorDate: Thu Apr 28 08:02:59 2022 + Commit: Alessandro Barbieri gmail com> CommitDate: Thu Apr 28 08:02:59 2022 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4ffb5c59 dev-python/celery: fix header Signed-off-by: Alessandro Barbieri gmail.com> dev-python/celery/files/celery.initd-r2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/celery/files/celery.initd-r2 b/dev-python/celery/files/celery.initd-r2 index f34c13669..3789dc016 100644 --- a/dev-python/celery/files/celery.initd-r2 +++ b/dev-python/celery/files/celery.initd-r2 @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the BSD license extra_started_commands="reload"
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/celery/files/, dev-python/celery/
commit: e3de43a2144298f7bace23b72556ff935a5787e4 Author: Alessandro Barbieri gmail com> AuthorDate: Fri May 7 11:23:12 2021 + Commit: Alessandro Barbieri gmail com> CommitDate: Fri May 7 11:31:15 2021 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e3de43a2 dev-python/celery: initial import Signed-off-by: Alessandro Barbieri gmail.com> dev-python/celery/Manifest | 1 + dev-python/celery/celery-5.1.0_beta2.ebuild | 102 ++ dev-python/celery/files/celery.confd-r2 | 51 +++ dev-python/celery/files/celery.initd-r2 | 205 dev-python/celery/metadata.xml | 12 ++ 5 files changed, 371 insertions(+) diff --git a/dev-python/celery/Manifest b/dev-python/celery/Manifest new file mode 100644 index 0..7443b7b5d --- /dev/null +++ b/dev-python/celery/Manifest @@ -0,0 +1 @@ +DIST celery-5.1.0_beta2.tar.gz 1459863 BLAKE2B 1b5a49728fa97e00112cc31731998ac06b2bb77ed621321b119d44d8cf0e4ec347d92b0857f316bda48f61a0ce0bd5c9d55392a8e3053369577d503af7aafc35 SHA512 d430a33cbc34950d68cf228707e8e868834f80a7f6c40491d8a67b056af5395c03e27c2b2ba1e2b9a390598d7d8bb3609bd88b388dfb18a34d0441ed54245192 diff --git a/dev-python/celery/celery-5.1.0_beta2.ebuild b/dev-python/celery/celery-5.1.0_beta2.ebuild new file mode 100644 index 0..3f2f4e684 --- /dev/null +++ b/dev-python/celery/celery-5.1.0_beta2.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7,8} ) + +inherit bash-completion-r1 distutils-r1 eutils optfeature + +MYPV="${PV/_beta/b}" +DESCRIPTION="Asynchronous task queue/job queue based on distributed message passing" +HOMEPAGE=" + http://celeryproject.org + https://pypi.org/project/celery + https://github.com/celery/celery +" +SRC_URI="https://github.com/celery/celery/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +# There are a number of other optional 'extras' +IUSE="examples" +#RESTRICT="!test? ( test )" +RESTRICT="test" #'celery' not found in `markers` configuration option +S="${WORKDIR}/${PN}-${MYPV}" + +RDEPEND=" + >=dev-python/billiard-3.6.4.0[${PYTHON_USEDEP}] + =dev-python/click-7[${PYTHON_USEDEP}] + =dev-python/click-didyoumean-0.0.3[${PYTHON_USEDEP}] + >=dev-python/click-plugins-1.1.1[${PYTHON_USEDEP}] + >=dev-python/click-repl-0.1.6[${PYTHON_USEDEP}] + =dev-python/kombu-5[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + >=dev-python/vine-5[${PYTHON_USEDEP}] + /dev/null) + + while [ -n "${PID}" ] && [ "${timeout}" -ge 1 ]; do + kill -0 ${PID} 2>/dev/null || break + kill -TERM "${PID}" + timeout=$((${timeout} - 1)) + sleep 0.5 + done + + [ "${timeout}" -lt 1 ] && return 1 + [ -f ${pidfile} ] && rm -f ${pidfile} + return 0 +} + +# celeryd +start_workers() { + yesno "${CELERYD_ENABLED}" || return 0 + + ${CELERYD_MULTI} start ${CELERYD_NODES} ${DAEMON_OPTS} \ + --pidfile="${CELERYD_PID_FILE}" \ + --logfile="${CELERYD_LOG_FILE}" \ + --loglevel="${CELERYD_LOG_LEVEL}" \ + ${CELERYD_OPTS} +} + +stop_workers() { + yesno "${CELERYD_ENABLED}" || return 0 + + local timeout=${STOPTIMEOUT:-"10"} + + ${CELERYD_MULTI} stop ${CELERYD_NODES} --pidfile="${CELERYD_PID_FILE}" || return 1 + + # Wait for each node + for node in ${CELERYD_NODES}; do + local pidfile=${CELERYD_PID_FILE/\%n/${node}} + local PID=$(cat "${pidfile}" 2>/dev/null) + while [ -n "${PID}" ] && [ "${timeout}" -ge 1 ]; do + kill -0 ${PID} 2>/dev/null || break + timeout=$((${timeout} - 1)) + sleep 0.5 + done + done + + [ "${timeout}" -lt 1 ] && return 1 + return 0 +} + +restart_workers() { + yesno "${CELERYD_ENABLED}" || return 0 + + ${CELERYD_MULTI} restart ${CELERYD_NODES} ${DAEMON_OPTS} \ + --pidfile="${CELERYD_PID_FILE}" \ + --logfile="${CELERYD_LOG_FILE}" \ + --loglevel="${CELERYD_LOG_LEVEL}" \ + ${CELERYD_OPTS} +} + +# celerybeat +start_beat() { + yesno "${CELERYBEAT_ENABLED}" || return 0 + + ebegin "Starting celerybeat" + ${CELERYBEAT} ${CELERYBEAT_OPTS} ${DAEMON_OPTS} --detach \ + --pidfile="${CELERYBEAT_PID_FILE}" + eend ${?} +} + + +stop_beat() { + yesno "${CELERYBEAT_ENABLED}" || return 0 + + ebegin "Stopping celerybeat" + if [ -f "${CELERYBEAT_PID_FILE}" ]; then + wait_pid "${CELERYBEAT_PID_FILE}" + else + ewarn "not running" +