From f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 30 Sep 2020 17:27:54 +0100 Subject: gentoo resync : 30.09.2020 --- dev-python/python-memcached/Manifest | 4 +- dev-python/python-memcached/metadata.xml | 8 ++-- .../python-memcached-1.59-r1.ebuild | 49 ++++++++++++++++++++++ 3 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 dev-python/python-memcached/python-memcached-1.59-r1.ebuild (limited to 'dev-python/python-memcached') diff --git a/dev-python/python-memcached/Manifest b/dev-python/python-memcached/Manifest index 30bfbe50c045..9cdc3fa7b723 100644 --- a/dev-python/python-memcached/Manifest +++ b/dev-python/python-memcached/Manifest @@ -1,3 +1,5 @@ +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 +EBUILD python-memcached-1.59-r1.ebuild 1192 BLAKE2B f8139adc31ebb7c85299cdc98bf3a4c9b56e762522b732e7aa71d496cd2750985039c4e6598b88aabb0e20b2c4c3e595b6b22638a8999adfddfdf454ce481f76 SHA512 42374eaf1dbeb21ed49793105a55e95f7821b5e1dfcff3874a3c34d57c12f565b7307972dc0b98f855c4f2d4a5ef1067a6bc508e4898d7d40f92fe148043f93a EBUILD python-memcached-1.59.ebuild 1255 BLAKE2B bb04c0eeaaa34086942176c298e3c01cbe71c014dae7c2abd85e57e01e2de401b6b6a88654215ac48ec6f6802eb695cfab53752b4f52412afdbc4261834fddc9 SHA512 708ea202402b8fb3af376b76c4cf39c32af13cc9c0c23aac102a574b0cbe579abb3bd7da942955c7512acf334e4031d278944fdf18eae141eeea6fcc73f3d067 -MISC metadata.xml 611 BLAKE2B fa7a75bea6b08f6ab65ff4b5d4d8e3022912ba8cb86c6dd3fd2d8f5bb224f89ae9db977c2197a39e6541193ed41366c4bdaa404138a18b2d31afc412b967cacc SHA512 9070f42bf5f3fb721f41309c7a24f29168f1179f9327f1334dcd5bd7b38ae98bbc682c2f0cfb7874c8e20e92ce25bffdc5d3f21870316c6d35cd57e1049f8d90 +MISC metadata.xml 758 BLAKE2B fafd3d180cab6721b98fb30317f4e614b3300aa2b5a0b525057bd11e6628d959a17c2520dbc3bb941382d454095a1a25d1be47e0105d036aed3b6639ef8355ad SHA512 ea503ead23c8bf720372aff57740c744ce4c97b2d9016d503d3e3c3d3ece462c36ef417c535877dab1a42571c105ba3f3d13daeb2b6f883d20efe38c0df1ceec diff --git a/dev-python/python-memcached/metadata.xml b/dev-python/python-memcached/metadata.xml index 5a0000d36d7e..2f8d37bd82d5 100644 --- a/dev-python/python-memcached/metadata.xml +++ b/dev-python/python-memcached/metadata.xml @@ -10,10 +10,12 @@ Python -This is a Python based API (implemented in 100% python) for communicating with -the memcached distributed memory object cache daemon. - + This is a Python based API (implemented in 100% python) for communicating with + the memcached distributed memory object cache daemon. + python-memcached + linsomniac/python-memcached + https://github.com/linsomniac/python-memcached/issues 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 000000000000..a8c482faaf46 --- /dev/null +++ b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild @@ -0,0 +1,49 @@ +# 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? ( + dev-python/mock[${PYTHON_USEDEP}] + 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 +} -- cgit v1.2.3