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 7B3DE158041 for ; Mon, 6 Sep 2021 08:53:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5231E0839; Mon, 6 Sep 2021 08:53:17 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 99DEEE0839 for ; Mon, 6 Sep 2021 08:53:17 +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 711B7335D80 for ; Mon, 6 Sep 2021 08:53:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0233B96 for ; Mon, 6 Sep 2021 08:53:15 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1630918355.f185929d2e82d44c01a8ef44bc42913fe71db5b9.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mmtf-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild X-VCS-Directories: dev-python/mmtf-python/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: f185929d2e82d44c01a8ef44bc42913fe71db5b9 X-VCS-Branch: master Date: Mon, 6 Sep 2021 08:53:15 +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: 47c2fb62-e230-468f-be37-ca44e7cc80a9 X-Archives-Hash: 827448d7a6334cbf4e594ba809a7bc9d commit: f185929d2e82d44c01a8ef44bc42913fe71db5b9 Author: Arthur Zamarin gentoo org> AuthorDate: Mon Sep 6 08:52:35 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Mon Sep 6 08:52:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f185929d dev-python/mmtf-python: enable py3.10, enable tests, EAPI=8 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild b/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild index 30c4a5814f6..fd6c4965d1c 100644 --- a/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild +++ b/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="The python implementation of the MMTF API, decoder and encoder" @@ -13,9 +13,16 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" +RDEPEND="dev-python/msgpack[${PYTHON_USEDEP}]" BDEPEND=" - dev-python/msgpack[${PYTHON_USEDEP}]" -RDEPEND=" - ${BDEPEND}" + test? ( + ${RDEPEND} + dev-python/numpy[${PYTHON_USEDEP}] + )" + +python_test() { + "${EPYTHON}" mmtf/tests/codec_tests.py -v || die "Tests failed with ${EPYTHON}" +}