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 4BD58158015 for ; Fri, 29 Dec 2023 04:38:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFBCC2BC070; Fri, 29 Dec 2023 04:38:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 C0C262BC070 for ; Fri, 29 Dec 2023 04:38:22 +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 90CC4341E1C for ; Fri, 29 Dec 2023 04:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BDEE514B5 for ; Fri, 29 Dec 2023 04:38:19 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1703823199.fbb9320c1bd30d3be5e36e0276c262f1c93ece98.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-memcached/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-memcached/Manifest dev-python/python-memcached/python-memcached-1.61.ebuild X-VCS-Directories: dev-python/python-memcached/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: fbb9320c1bd30d3be5e36e0276c262f1c93ece98 X-VCS-Branch: master Date: Fri, 29 Dec 2023 04:38:19 +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: 470bcc2f-882c-4a89-b6a8-6459ecf62488 X-Archives-Hash: 50343d856d8ac52e1b26d57f1aad6812 commit: fbb9320c1bd30d3be5e36e0276c262f1c93ece98 Author: Michał Górny gentoo org> AuthorDate: Fri Dec 29 04:13:19 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Dec 29 04:13:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb9320c dev-python/python-memcached: Bump to 1.61 Signed-off-by: Michał Górny gentoo.org> dev-python/python-memcached/Manifest | 1 + .../python-memcached/python-memcached-1.61.ebuild | 50 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/dev-python/python-memcached/Manifest b/dev-python/python-memcached/Manifest index 10634856161e..56bca01fb4ad 100644 --- a/dev-python/python-memcached/Manifest +++ b/dev-python/python-memcached/Manifest @@ -1,2 +1,3 @@ DIST python-memcached-1.59.gh.tar.gz 32334 BLAKE2B de8d18ba887b03e4737b554cc4b0074a4f16745e26a8b3631a747c45019e1da83612677dc3e98f97d76e851320c61baafbd0a29231a826c14b7d3bf3e477f29e SHA512 d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 DIST python-memcached-1.60.gh.tar.gz 29184 BLAKE2B 54635e493e72d18aeda1e960c67cf92ac4c4f33b900c277f119e3528ebe52c69cf68b59c8c88719ed51664178b03b22d3035541ad529c5390c7f48a184539521 SHA512 d5d0789511ec4c5fd40a0ebc9b265ff0b69ff9aa366e1573b61c27b84ee0edb62c8dbc0563b5f92e6485914a6ff46a6130a8c889dae6ec638d71684ef29147e3 +DIST python-memcached-1.61.gh.tar.gz 29238 BLAKE2B 4b24ae56716a0c17297c2041e26c555e0e675d87d3e77f75fd33e60f9c7f3791f1e4ef0e8fcaf0f895a2dce2f5539ddf5a6d2e42d3198a71d5edcc9a52716442 SHA512 ea66a04129816863d700718ae525838b381aaca6da3a239e3b2ff5cfc92297083a4b66fe0a10c1460f597e066b3d30902cdab1c38999be49b77d745a078d1da2 diff --git a/dev-python/python-memcached/python-memcached-1.61.ebuild b/dev-python/python-memcached/python-memcached-1.61.ebuild new file mode 100644 index 000000000000..02f77889aa8e --- /dev/null +++ b/dev-python/python-memcached/python-memcached-1.61.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Pure python memcached client" +HOMEPAGE=" + https://github.com/linsomniac/python-memcached/ + https://pypi.org/project/python-memcached/ +" +SRC_URI=" + https://github.com/linsomniac/python-memcached/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="PSF-2.4" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux" + +BDEPEND=" + test? ( + net-misc/memcached + ) +" + +distutils_enable_tests unittest + +python_test() { + local pidfile="${TMPDIR}/memcached.pid" + + memcached -d -P "${pidfile}" || die "failed to start memcached" + + eunittest || die "Tests fail with ${EPYTHON}" + + kill "$(<"${pidfile}")" || die "failed to kill memcached" + local elapsed=0 + while [[ -f ${pidfile} ]]; do + if [[ $(( elapsed++ )) -ge 30 ]]; then + kill -KILL "$(<"${pidfile}")" || + die "failed to kill -KILL memcached" + die "memcached failed to stop after 30 seconds" + fi + sleep 1 + done +}