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 902051382C5 for ; Fri, 5 Jun 2020 16:24:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF587E086D; Fri, 5 Jun 2020 16:24:44 +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 A16D0E086D for ; Fri, 5 Jun 2020 16:24:44 +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 CABA734F28B for ; Fri, 5 Jun 2020 16:24:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A98B283 for ; Fri, 5 Jun 2020 16:24:40 +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: <1591374272.b1196d549dabf334b4e1476a59870ec3ba258a37.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cairocffi/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cairocffi/cairocffi-1.1.0.ebuild X-VCS-Directories: dev-python/cairocffi/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b1196d549dabf334b4e1476a59870ec3ba258a37 X-VCS-Branch: master Date: Fri, 5 Jun 2020 16:24:40 +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: ccaff1f8-bba6-45f8-a214-9162648a7b05 X-Archives-Hash: ab43c2a693dd3523a77aec23fe102f96 commit: b1196d549dabf334b4e1476a59870ec3ba258a37 Author: Michał Górny gentoo org> AuthorDate: Fri Jun 5 16:17:06 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 5 16:24:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1196d54 dev-python/cairocffi: Port to py39, remove docs Closes: https://bugs.gentoo.org/715060 Signed-off-by: Michał Górny gentoo.org> dev-python/cairocffi/cairocffi-1.1.0.ebuild | 34 ++++++----------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/dev-python/cairocffi/cairocffi-1.1.0.ebuild b/dev-python/cairocffi/cairocffi-1.1.0.ebuild index 457f6312111..29fbbca716f 100644 --- a/dev-python/cairocffi/cairocffi-1.1.0.ebuild +++ b/dev-python/cairocffi/cairocffi-1.1.0.ebuild @@ -3,53 +3,33 @@ EAPI="7" -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 virtualx -MY_PN="${PN}" -MY_P="${MY_PN}-${PV}" - DESCRIPTION="CFFI-based drop-in replacement for Pycairo" HOMEPAGE="https://github.com/Kozea/cairocffi" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 x86" -IUSE="doc test" -RESTRICT="!test? ( test )" RDEPEND=" - $(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]' 'python*') + $(python_gen_cond_dep ' + >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}] + ' 'python*') >=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}] x11-libs/cairo:0=[X,xcb(+)] x11-libs/gdk-pixbuf[jpeg]" -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - ${RDEPEND} - dev-python/pytest[${PYTHON_USEDEP}] - )" +distutils_enable_tests pytest PATCHES=( "${FILESDIR}"/${PN}-0.8.0-tests.patch "${FILESDIR}"/${PN}-1.0.2-test-deps.patch ) -S="${WORKDIR}/${MY_P}" - -python_compile_all() { - use doc && esetup.py build_sphinx -} - python_test() { - virtx py.test -v --pyargs cairocffi -} - -python_install_all() { - use doc && HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all + virtx pytest -vv --pyargs cairocffi }