From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1210690-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4B9AE138359 for <garchives@archives.gentoo.org>; Tue, 29 Sep 2020 22:41:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65436E0AC6; Tue, 29 Sep 2020 22:41:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 48101E0AC6 for <gentoo-commits@lists.gentoo.org>; Tue, 29 Sep 2020 22:41:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8BF88335DCA for <gentoo-commits@lists.gentoo.org>; Tue, 29 Sep 2020 22:41:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 61E67332 for <gentoo-commits@lists.gentoo.org>; Tue, 29 Sep 2020 22:41:01 +0000 (UTC) From: "Louis Sautier" <sbraz@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" <sbraz@gentoo.org> Message-ID: <1601419233.50f1d559b947fb1165b9049f8f2cee68c8ee5a84.sbraz@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.59-r1.ebuild X-VCS-Directories: dev-python/python-memcached/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 50f1d559b947fb1165b9049f8f2cee68c8ee5a84 X-VCS-Branch: master Date: Tue, 29 Sep 2020 22:41:01 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6ba05e6b-5136-4f35-948a-2eb0230d30c2 X-Archives-Hash: 49c58498c544af49396132dc961cf2a3 commit: 50f1d559b947fb1165b9049f8f2cee68c8ee5a84 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> AuthorDate: Tue Sep 29 22:10:14 2020 +0000 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> CommitDate: Tue Sep 29 22:40:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50f1d559 dev-python/python-memcached: support PyPy3+Py3.{8,9} and fix tests Switch to the GitHub tarball that contains tests. Bug: https://bugs.gentoo.org/718418 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> dev-python/python-memcached/Manifest | 1 + .../python-memcached-1.59-r1.ebuild | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-python/python-memcached/Manifest b/dev-python/python-memcached/Manifest index 9a85bb36945..00b745958fa 100644 --- a/dev-python/python-memcached/Manifest +++ b/dev-python/python-memcached/Manifest @@ -1 +1,2 @@ +DIST python-memcached-1.59-gh.tar.gz 32334 BLAKE2B de8d18ba887b03e4737b554cc4b0074a4f16745e26a8b3631a747c45019e1da83612677dc3e98f97d76e851320c61baafbd0a29231a826c14b7d3bf3e477f29e SHA512 d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 DIST python-memcached-1.59.tar.gz 22210 BLAKE2B 50387821d50cf974ada738346e016eb736043078721bf905782f41df1f27574244d03b6b94ac9e5ccab7aeecfa8ca4c5a78cec2c41d15fda8756c7cb3bce9aa1 SHA512 a25cbb9efb3babe85e1523bdabfe4644b93b3a6a7268787a3928f724f833ce0eea7d2ef676d1b7f894cdfe293129975b35cb46ec553c92810dbc18013bfabece diff --git a/dev-python/python-memcached/python-memcached-1.59-r1.ebuild b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild new file mode 100644 index 00000000000..3b81d2ee352 --- /dev/null +++ b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6..9} ) + +inherit distutils-r1 + +DESCRIPTION="Pure python memcached client" +HOMEPAGE=" + https://www.tummy.com/Community/software/python-memcached/ + https://pypi.org/project/python-memcached/ +" +# PyPI tarballs don't contain tests +SRC_URI="https://github.com/linsomniac/python-memcached/archive/${PV}.tar.gz -> ${P}-gh.tar.gz" + +LICENSE="OSL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +BDEPEND="test? ( net-misc/memcached )" + +distutils_enable_tests nose + +python_test() { + local pidfile="${TMPDIR}/memcached.pid" + + memcached -d -P "$pidfile" || die "failed to start memcached" + + nosetests -v || 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 + let elapsed++ + done +}