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 6224E1382C5 for ; Tue, 30 Jan 2018 18:19:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6898E0D0D; Tue, 30 Jan 2018 18:19:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 A6586E0D0D for ; Tue, 30 Jan 2018 18:19:56 +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 D6314335C63 for ; Tue, 30 Jan 2018 18:19:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F4A81B4 for ; Tue, 30 Jan 2018 18:19:54 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1517336389.cdbac832c1d38c302486d4f4b525ae99b93de673.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysha3/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pysha3/pysha3-1.0.2-r1.ebuild X-VCS-Directories: dev-python/pysha3/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: cdbac832c1d38c302486d4f4b525ae99b93de673 X-VCS-Branch: master Date: Tue, 30 Jan 2018 18:19:54 +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: 631cb3c3-860e-45b7-8586-a47a73cf3afb X-Archives-Hash: b2be1faef3d962623f6b2715800e325a commit: cdbac832c1d38c302486d4f4b525ae99b93de673 Author: Michał Górny gentoo org> AuthorDate: Tue Jan 30 17:57:49 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jan 30 18:19:49 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdbac832 dev-python/pysha3: Fix tests on PyPy and enable PyPy support Remove the meaningless AttributeError tests that checked for Python implementation correctness more than anything relevant to pysha3 users. This fixes PyPy test failures and allows us to enable PyPy support. dev-python/pysha3/pysha3-1.0.2-r1.ebuild | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/dev-python/pysha3/pysha3-1.0.2-r1.ebuild b/dev-python/pysha3/pysha3-1.0.2-r1.ebuild new file mode 100644 index 00000000000..2ce78133003 --- /dev/null +++ b/dev-python/pysha3/pysha3-1.0.2-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) +inherit distutils-r1 + +DESCRIPTION="SHA-3 (Keccak) for Python 2.7 - 3.5" +HOMEPAGE="https://github.com/tiran/pysha3 https://pypi.python.org/pypi/pysha3" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="CC0-1.0 PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare_all() { + # Remove meaningless AttributeError checks. They don't really test + # the implementation but Python implementation behavior, and they + # fail with PyPy. Oh yes, and this doesn't affect correctly written + # programs. + sed -i -e '/AttributeError/d' tests.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +}