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 5AC57138350 for ; Mon, 6 Apr 2020 13:58:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C226E0E5A; Mon, 6 Apr 2020 13:58:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 74AF6E0E5A for ; Mon, 6 Apr 2020 13:58:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6DCD734F07C for ; Mon, 6 Apr 2020 13:58:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F13AD1AE for ; Mon, 6 Apr 2020 13:58:33 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1586181495.43aee606b34d6aab660e97e8a5dc08351abf759e.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/contextlib2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/contextlib2/Manifest dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild X-VCS-Directories: dev-python/contextlib2/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 43aee606b34d6aab660e97e8a5dc08351abf759e X-VCS-Branch: master Date: Mon, 6 Apr 2020 13:58:33 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c9768f02-1ab8-4dc1-a132-5b4ece0e75db X-Archives-Hash: 76e7c1451e47b8e4537759e4ef371aeb commit: 43aee606b34d6aab660e97e8a5dc08351abf759e Author: Sebastian Pipping gentoo org> AuthorDate: Mon Apr 6 13:38:07 2020 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Mon Apr 6 13:58:15 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43aee606 dev-python/contextlib2: 0.6.0_p1 + QA Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-2.3.92, Repoman-2.3.22 dev-python/contextlib2/Manifest | 1 + dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-python/contextlib2/Manifest b/dev-python/contextlib2/Manifest index d4dfec53083..c75571aab5a 100644 --- a/dev-python/contextlib2/Manifest +++ b/dev-python/contextlib2/Manifest @@ -1 +1,2 @@ +DIST contextlib2-0.6.0.post1.tar.gz 29670 BLAKE2B 927cbc674c2cb568e71bd110773bea6f848233928bb910e0db7114812b3359b9395e43c01be1645d44f3202f94c62bc21c4db883a155c64feb636a61865dd7d8 SHA512 bd3b458b365bc1d556476f6368bc523fde07e85afdad74037aa98d7a498008103a789f6b481b606700da92606ee6477fc5a817f1596e93a6e3c548ed0d4a5bf8 DIST contextlib2-0.6.0.tar.gz 29607 BLAKE2B 674d0ed2cb71837ec8bed46b44790c31601347e315abb3ab666aac3a7754f07602bbc4f1591a8c905e02949ed9178fb6230f600ca35d244b83353286901510e2 SHA512 01901ac226c7fca40add00e95cedb2535a802e0114a53ae1315c6dfee20744dbafa7d9619986ad76345ad9b9aa3e364ac01d23f51b5eb70dd2febd5af1f1fc56 diff --git a/dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild b/dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild new file mode 100644 index 00000000000..114a17add9f --- /dev/null +++ b/dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) + +inherit distutils-r1 + +MY_P="${PN}-${PV/_p/.post}" +DESCRIPTION="Backports and enhancements for the contextlib module" +HOMEPAGE="https://pypi.org/project/contextlib2/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + +LICENSE="PSF-2.4" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep ' + dev-python/unittest2[${PYTHON_USEDEP}] + ' python2_7 pypy3 + ) + ) +" + +S="${WORKDIR}"/${MY_P} + +RESTRICT="!test? ( test )" + +DOCS=( NEWS.rst README.rst ) + +python_prepare_all() { + sed -i -e 's:unittest.main():unittest.main(verbosity=2):' \ + test_contextlib2.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test_contextlib2.py || die "Tests fail for ${EPYTHON}" +}