Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pylibmc/
Date: Fri, 05 Aug 2022 18:50:51
Message-Id: 1659725426.60c0bd2eba02a94100b2b4d6fa3bc29433bb8bba.arthurzam@gentoo
1 commit: 60c0bd2eba02a94100b2b4d6fa3bc29433bb8bba
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 5 18:50:26 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 18:50:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60c0bd2e
7
8 dev-python/pylibmc: add 1.6.2
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pylibmc/Manifest | 1 +
13 dev-python/pylibmc/pylibmc-1.6.2.ebuild | 61 +++++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-python/pylibmc/Manifest b/dev-python/pylibmc/Manifest
17 index 132d9d866ba2..f144b9eb5b6c 100644
18 --- a/dev-python/pylibmc/Manifest
19 +++ b/dev-python/pylibmc/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pylibmc-1.6.1-no-nose.patch 26090 BLAKE2B 160e5b58107dcea0354462370eeeb12739c7fd1549e1c64ddf1fe2451654e50c1408505985eb6a7150ce60185bc7acebba7a20c6444615bef8c6991debfba4cc SHA512 84fb37505def84caaacb1343032d18bd644f5072e6ce7a2d6e88bc33bd2dedc8b303f4cf2a9b57b32c3c4b8e01bef1bebcc09ecb525568c928aed326bee2cace
22 DIST pylibmc-1.6.1.tar.gz 72061 BLAKE2B ebaa6f9dfc341d862a8b46bbbf0db1420ff400cb40390f7bee6bf198ff941ad7967b578040ffe1209721ea84a163a39649108a2a23f3dadc2d579db740b2ccf3 SHA512 a3874435389486b29bab5f1d29e5c179d67655d90995bb27fcb7cd46ce7eb3b60117b94f901602f8a65dc0e587d5f8edfcf15e259effd439411adb58ddb7065e
23 +DIST pylibmc-1.6.2.gh.tar.gz 71581 BLAKE2B 4fc9216150e122b6d80537184422b52c0a518f5b9fbcf5b54f794fde33d5ac6fcd474e08f71b8d71f0443351e91ea5d8ac2c24e94bd568605cf1183259394091 SHA512 1a1575fd5c3644d53e0ed49818bd958e0e28fe0354f41578c944b260f402f1b51a74baca8f98b32adfd0024e61ec8df1795c6ca7363509e35e4f34a907de063e
24
25 diff --git a/dev-python/pylibmc/pylibmc-1.6.2.ebuild b/dev-python/pylibmc/pylibmc-1.6.2.ebuild
26 new file mode 100644
27 index 000000000000..b37179120315
28 --- /dev/null
29 +++ b/dev-python/pylibmc/pylibmc-1.6.2.ebuild
30 @@ -0,0 +1,61 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Libmemcached wrapper written as a Python extension"
42 +HOMEPAGE="
43 + https://sendapatch.se/projects/pylibmc/
44 + https://pypi.org/project/pylibmc/
45 + https://github.com/lericson/pylibmc/
46 +"
47 +SRC_URI="
48 + https://github.com/lericson/pylibmc/archive/${PV}.tar.gz
49 + -> ${P}.gh.tar.gz
50 +"
51 +
52 +LICENSE="BSD"
53 +SLOT="0"
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
55 +
56 +DEPEND="
57 + >=dev-libs/libmemcached-0.32
58 +"
59 +RDEPEND="${DEPEND}"
60 +BDEPEND="
61 + test? (
62 + net-misc/memcached
63 + )
64 +"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/pylibmc-1.6.1-fix-test-failures-r1.patch"
68 +)
69 +
70 +distutils_enable_sphinx docs
71 +distutils_enable_tests pytest
72 +
73 +# needed for docs
74 +export PYLIBMC_DIR=.
75 +
76 +src_test() {
77 + local -x MEMCACHED_PORT=11219
78 + memcached -d -p "${MEMCACHED_PORT}" -u nobody -l localhost \
79 + -P "${T}/m.pid" || die
80 + distutils-r1_src_test
81 + kill "$(<"${T}/m.pid")" || die
82 +}
83 +
84 +python_test() {
85 + local EPYTEST_DESELECT=(
86 + # these require "AmazonElastiCache" running
87 + tests/test_autoconf.py
88 + )
89 +
90 + epytest --doctest-modules --doctest-glob='doctests.txt' src/pylibmc tests
91 +}