diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-09-30 01:29:23 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-09-30 01:29:23 +0000 |
| commit | a4b83e568a3d2602d5d4c77153234460abe8fb47 (patch) | |
| tree | 0ffcc93e9a58a7114a947a634df5ec407e7494c0 /dev-python/python-memcached/python-memcached-1.59-r1.ebuild | |
| parent | 559f822cabcf169fe9b3107700968e3594c67bf9 (diff) | |
| download | baldeagleos-repo-a4b83e568a3d2602d5d4c77153234460abe8fb47.tar.gz baldeagleos-repo-a4b83e568a3d2602d5d4c77153234460abe8fb47.tar.xz baldeagleos-repo-a4b83e568a3d2602d5d4c77153234460abe8fb47.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/python-memcached/python-memcached-1.59-r1.ebuild')
| -rw-r--r-- | dev-python/python-memcached/python-memcached-1.59-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
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..1b6d1a10f807 --- /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=( python3_{5,6,7,8,9} pypy3 ) + +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 +} |
