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 107BB1382C5 for ; Sun, 21 Feb 2021 18:30:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02837E0895; Sun, 21 Feb 2021 18:30: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 D0D50E0895 for ; Sun, 21 Feb 2021 18:30:01 +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 C6759335D9E for ; Sun, 21 Feb 2021 18:30:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E69F53 for ; Sun, 21 Feb 2021 18:29:59 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1613932180.06d25c7dd6203bf3def98603b0f77bd0bc58e7dd.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tagpy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/tagpy/tagpy-2018.1-r1.ebuild X-VCS-Directories: dev-python/tagpy/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 06d25c7dd6203bf3def98603b0f77bd0bc58e7dd X-VCS-Branch: master Date: Sun, 21 Feb 2021 18:29:59 +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: afcf2220-25e9-4675-8876-19277acfc3c9 X-Archives-Hash: 8dddc52d417830d4dbc561a00f3419db commit: 06d25c7dd6203bf3def98603b0f77bd0bc58e7dd Author: David Seifert gentoo org> AuthorDate: Sun Feb 21 18:29:40 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Feb 21 18:29:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06d25c7d dev-python/tagpy: Add python 3.9 * Also add testsuite Closes: https://bugs.gentoo.org/748924 Closes: https://bugs.gentoo.org/767991 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> dev-python/tagpy/tagpy-2018.1-r1.ebuild | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/dev-python/tagpy/tagpy-2018.1-r1.ebuild b/dev-python/tagpy/tagpy-2018.1-r1.ebuild index 35daa217ce9..56a858f2cc9 100644 --- a/dev-python/tagpy/tagpy-2018.1-r1.ebuild +++ b/dev-python/tagpy/tagpy-2018.1-r1.ebuild @@ -1,15 +1,15 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7..9} ) DISTUTILS_IN_SOURCE_BUILD=1 -DISTUTILS_USE_SETUPTOOLS=no inherit distutils-r1 DESCRIPTION="Python Bindings for TagLib" -HOMEPAGE="https://mathema.tician.de//software/tagpy +HOMEPAGE=" + https://mathema.tician.de//software/tagpy https://pypi.org/project/tagpy/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" @@ -20,11 +20,12 @@ IUSE="examples" RDEPEND=" >=dev-libs/boost-1.70:=[python,threads,${PYTHON_USEDEP}] - >=media-libs/taglib-1.8 -" + >=media-libs/taglib-1.8" DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}/${P}-taglib-1.8.patch" ) +distutils_enable_tests pytest + +PATCHES=( "${FILESDIR}"/${P}-taglib-1.8.patch ) python_prepare_all() { cp "${FILESDIR}"/${P}-readme.rst README.rst || die @@ -34,15 +35,20 @@ python_prepare_all() { python_configure() { local boostpy_ver="${EPYTHON#python}" - "${PYTHON}" configure.py \ - --taglib-inc-dir="${EPREFIX}/usr/include/taglib" \ + "${EPYTHON}" configure.py \ + --taglib-inc-dir="${ESYSROOT}"/usr/include/taglib \ --boost-python-libname="boost_python${boostpy_ver/\.}" } +python_test() { + cd test || die + "${EPYTHON}" *.py || die "Testsuite failed under ${EPYTHON}" +} + python_install_all() { if use examples; then docinto examples - dodoc -r test/* + dodoc -r test/. fi distutils-r1_python_install_all