From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/socketpool/
Date: Mon, 13 Apr 2020 07:07:26 +0000 (UTC) [thread overview]
Message-ID: <1586761643.5639442ef18c497f7d4fe35b1f00af65947a1d8e.mgorny@gentoo> (raw)
commit: 5639442ef18c497f7d4fe35b1f00af65947a1d8e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 13 07:03:26 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 13 07:07:23 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5639442e
dev-python/socketpool: Add optional dep on eventlet
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/socketpool/metadata.xml | 4 ++
dev-python/socketpool/socketpool-0.5.3-r3.ebuild | 62 ++++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git a/dev-python/socketpool/metadata.xml b/dev-python/socketpool/metadata.xml
index d9df93424f6..d83b6559d4a 100644
--- a/dev-python/socketpool/metadata.xml
+++ b/dev-python/socketpool/metadata.xml
@@ -10,6 +10,10 @@
<remote-id type="github">benoitc/socketpool</remote-id>
</upstream>
<use>
+ <flag name="eventlet">
+ Install <pkg>dev-python/eventlet</pkg> as needed for the eventlet
+ backend.
+ </flag>
<flag name="gevent">
Install <pkg>dev-python/gevent</pkg> as needed for the gevent
backend.
diff --git a/dev-python/socketpool/socketpool-0.5.3-r3.ebuild b/dev-python/socketpool/socketpool-0.5.3-r3.ebuild
new file mode 100644
index 00000000000..144926c2bd4
--- /dev/null
+++ b/dev-python/socketpool/socketpool-0.5.3-r3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A simple Python socket pool"
+HOMEPAGE="https://github.com/benoitc/socketpool/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="eventlet examples gevent"
+LICENSE="|| ( MIT public-domain )"
+SLOT="0"
+
+RDEPEND="
+ eventlet? (
+ $(python_gen_cond_dep '
+ dev-python/eventlet[${PYTHON_USEDEP}]
+ ' 'python3*')
+ )
+ gevent? (
+ $(python_gen_cond_dep '
+ dev-python/gevent[${PYTHON_USEDEP}]
+ ' 'python*')
+ )"
+
+BDEPEND="
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/eventlet[${PYTHON_USEDEP}]
+ ' 'python3*')
+ !ia64? (
+ $(python_gen_cond_dep '
+ dev-python/gevent[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch )
+
+distutils_enable_tests pytest
+
+python_test() {
+ cp -r examples tests "${BUILD_DIR}" || die
+
+ pushd "${BUILD_DIR}" >/dev/null || die
+ pytest -vv tests || die "Tests fail with ${EPYTHON}"
+ popd >/dev/null || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ use examples && dodoc -r examples
+
+ # package installs unneeded LICENSE files here
+ rm -r "${ED}"/usr/socketpool || die
+}
next reply other threads:[~2020-04-13 7:07 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 7:07 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-05-30 19:45 [gentoo-commits] repo/gentoo:master commit in: dev-python/socketpool/ Michał Górny
2020-08-24 15:11 Michał Górny
2020-07-25 8:31 Michał Górny
2020-07-11 22:28 Sam James
2020-07-11 22:08 Sam James
2020-07-11 8:57 Michał Górny
2020-07-11 8:57 Michał Górny
2020-07-09 8:27 Agostino Sarubbo
2020-07-09 8:16 Agostino Sarubbo
2020-06-04 14:06 Michał Górny
2020-05-30 12:48 Michał Górny
2020-05-30 7:40 Michał Górny
2020-05-29 8:46 Michał Górny
2020-05-26 18:32 Michał Górny
2020-05-26 18:09 Michał Górny
2020-05-16 19:47 Sergei Trofimovich
2020-05-03 21:55 Sergei Trofimovich
2020-05-03 7:08 Michał Górny
2020-05-03 6:36 Michał Górny
2020-03-16 20:09 Matt Turner
2020-03-07 15:03 Michał Górny
2020-03-07 11:06 Agostino Sarubbo
2020-03-07 11:03 Agostino Sarubbo
2020-03-07 10:54 Agostino Sarubbo
2020-03-07 10:50 Agostino Sarubbo
2020-03-07 9:44 Agostino Sarubbo
2020-03-07 8:25 Agostino Sarubbo
2019-11-27 18:58 Patrick McLean
2019-03-13 19:33 Sergei Trofimovich
2019-03-03 10:54 Mikle Kolyada
2018-11-09 14:20 Alexey Shvetsov
2018-03-26 10:09 Maxim Koltsov
2017-06-25 14:42 Alexis Ballier
2017-05-16 12:06 Manuel Rüger
2016-05-29 14:19 Pacho Ramos
2016-03-26 2:07 Matt Thode
2015-11-18 15:40 Justin Lecher
2015-10-14 15:43 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1586761643.5639442ef18c497f7d4fe35b1f00af65947a1d8e.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox