aboutsummaryrefslogtreecommitdiff
blob: 75e411a00b46c3da5b4fff8607155bbda1098b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit databases distutils-r1

DESCRIPTION="A comprehensive, fast, pure-Python memcached client"
HOMEPAGE="
	https://github.com/pinterest/pymemcache
	https://pypi.org/project/pymemcache/
"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="
	test? (
		dev-python/Faker[${PYTHON_USEDEP}]
		dev-python/zstd[${PYTHON_USEDEP}]
		$(ememcached --get-depend)
	)
"

DOCS=( {ChangeLog,README}.rst )

EPYTEST_IGNORE=(
	# useless
	pymemcache/test/test_benchmark.py
)

distutils_enable_tests pytest

#distutils_enable_sphinx docs \
#	dev-python/sphinxcontrib-apidoc \
#	dev-python/sphinx-rtd-theme

src_test() {
	ememcached --start 11221
	distutils-r1_src_test
	ememcached --stop
}

python_test() {
	epytest --override-ini="addopts=" --port 11221 pymemcache/test
}