From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8003B138335 for ; Fri, 9 Nov 2018 14:21:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43021E0D36; Fri, 9 Nov 2018 14:21:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1DC67E0D36 for ; Fri, 9 Nov 2018 14:21:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0C70335CEA for ; Fri, 9 Nov 2018 14:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D5F41462 for ; Fri, 9 Nov 2018 14:20:57 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1541773196.3c38c4354a3283346e9c1b824c58fbf254a91497.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/socketpool/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/socketpool/socketpool-0.5.3-r1.ebuild X-VCS-Directories: dev-python/socketpool/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 3c38c4354a3283346e9c1b824c58fbf254a91497 X-VCS-Branch: master Date: Fri, 9 Nov 2018 14:20:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: beb10d26-abc2-49d4-9c79-cc09d023fc46 X-Archives-Hash: 42e818946027f5c71663832154136c5c commit: 3c38c4354a3283346e9c1b824c58fbf254a91497 Author: Alexey Shvetsov gentoo org> AuthorDate: Fri Nov 9 14:01:44 2018 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Fri Nov 9 14:19:56 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c38c435 dev-python/socketpool: eapi7 + py3_7 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Alexey Shvetsov gentoo.org> dev-python/socketpool/socketpool-0.5.3-r1.ebuild | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/dev-python/socketpool/socketpool-0.5.3-r1.ebuild b/dev-python/socketpool/socketpool-0.5.3-r1.ebuild new file mode 100644 index 00000000000..0f319c590b2 --- /dev/null +++ b/dev-python/socketpool/socketpool-0.5.3-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy ) + +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 ~arm ~arm64 ~ppc ~ppc64 ~s390 ~sh ~x86" +IUSE="examples test" +LICENSE="|| ( MIT public-domain )" +SLOT="0" + +RDEPEND="$(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' 'python2*')" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch ) + +python_test() { + py.test tests || die +} + +python_install_all() { + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi + distutils-r1_python_install_all + + # package installs unneeded LICENSE files here + rm -rf "${ED}"/usr/socketpool || die +}