Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/socketpool/
Date: Wed, 27 Nov 2019 18:59:03
Message-Id: 1574881115.ec966ddb7adaefdfb0cd8cdac432332e06c9a386.chutzpah@gentoo
1 commit: ec966ddb7adaefdfb0cd8cdac432332e06c9a386
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Nov 27 18:58:15 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 18:58:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec966ddb
7
8 dev-python/socketpool-0.5.3-r2: revbump, cleanups, py38 and pypy3
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/socketpool/socketpool-0.5.3-r2.ebuild | 41 ++++++++++++++++++++++++
15 1 file changed, 41 insertions(+)
16
17 diff --git a/dev-python/socketpool/socketpool-0.5.3-r2.ebuild b/dev-python/socketpool/socketpool-0.5.3-r2.ebuild
18 new file mode 100644
19 index 00000000000..e5d4e8ce43b
20 --- /dev/null
21 +++ b/dev-python/socketpool/socketpool-0.5.3-r2.ebuild
22 @@ -0,0 +1,41 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="A simple Python socket pool"
33 +HOMEPAGE="https://github.com/benoitc/socketpool/"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
37 +IUSE="examples test"
38 +LICENSE="|| ( MIT public-domain )"
39 +SLOT="0"
40 +
41 +RDEPEND="$(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' 'python2*')"
42 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
43 +
44 +PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch )
45 +
46 +distutils_enable_tests pytest
47 +
48 +python_test() {
49 + cp -r examples tests "${BUILD_DIR}" || die
50 +
51 + pushd "${BUILD_DIR}" >/dev/null || die
52 + pytest -vv tests || die "Tests fail with ${EPYTHON}"
53 + popd >/dev/null || die
54 +}
55 +
56 +python_install_all() {
57 + distutils-r1_python_install_all
58 +
59 + use examples && dodoc -r examples
60 +
61 + # package installs unneeded LICENSE files here
62 + rm -r "${ED}"/usr/socketpool || die
63 +}