P38: python-memcached-1.59-r1
This commit is contained in:
parent
5195a274f6
commit
33643fc3dd
|
@ -8,6 +8,7 @@
|
|||
* re-check beewi-smartclim-0.0.7 DEPS
|
||||
* add hyper-0.7.0
|
||||
* unpin aiohttp in airly-0.0.2-r1
|
||||
* P38: python-memcached-1.59-r1
|
||||
|
||||
2020-09-06
|
||||
* cleanup ruamel-yaml, only 0.15.100 is still needed
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
DIST python-memcached-1.59.tar.gz 22210 BLAKE2B 50387821d50cf974ada738346e016eb736043078721bf905782f41df1f27574244d03b6b94ac9e5ccab7aeecfa8ca4c5a78cec2c41d15fda8756c7cb3bce9aa1 SHA512 a25cbb9efb3babe85e1523bdabfe4644b93b3a6a7268787a3928f724f833ce0eea7d2ef676d1b7f894cdfe293129975b35cb46ec553c92810dbc18013bfabece
|
||||
EBUILD python-memcached-1.59-r1.ebuild 1256 BLAKE2B 86074f43e7539fd5eac1ecae7d85001c8005137218fb46439a8f648f98950123c96fc7fd582f99d1dc58e7929245ef5a72c70f51be29fc0111f2189b198f49d1 SHA512 3fcd2463fb589402a454b12b7f3779b009ac515c938cae66509af71305a41939b9795c193b2e3bd7bddb7a87670ddc33b65a2f11190ceb17e59c19f80c30b528
|
||||
MISC metadata.xml 611 BLAKE2B fa7a75bea6b08f6ab65ff4b5d4d8e3022912ba8cb86c6dd3fd2d8f5bb224f89ae9db977c2197a39e6541193ed41366c4bdaa404138a18b2d31afc412b967cacc SHA512 9070f42bf5f3fb721f41309c7a24f29168f1179f9327f1334dcd5bd7b38ae98bbc682c2f0cfb7874c8e20e92ce25bffdc5d3f21870316c6d35cd57e1049f8d90
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>robbat2@gentoo.org</email>
|
||||
<name>Robin H. Johnson</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This is a Python based API (implemented in 100% python) for communicating with
|
||||
the memcached distributed memory object cache daemon.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">python-memcached</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,47 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6..8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Pure python memcached client"
|
||||
HOMEPAGE="
|
||||
https://www.tummy.com/Community/software/python-memcached/
|
||||
https://pypi.org/project/python-memcached/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="OSL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
net-misc/memcached
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)"
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
|
||||
# Tests try to connect to memcached via TCP/IP. Please do not re-enable
|
||||
# until you get them all to pass properly while using the UNIX socket
|
||||
# only and not even trying to connect to memcached over TCP/IP.
|
||||
RESTRICT=test
|
||||
|
||||
python_test() {
|
||||
# Note: partial. Needs fixing. Stuff like that.
|
||||
|
||||
cd "${TMPDIR}" || die
|
||||
|
||||
local memcached_opts=( -d -P memcached.pid -s memcached.socket )
|
||||
[[ ${EUID} == 0 ]] && memcached_opts+=( -u portage )
|
||||
|
||||
memcached "${memached_opts[@]}" || die
|
||||
|
||||
"${PYTHON}" memcache.py --do-unix || die "Tests fail with ${EPYTHON}"
|
||||
|
||||
kill "$(<memcached.pid)" || die
|
||||
rm memcached.pid || die
|
||||
}
|
Loading…
Reference in New Issue