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 C6B0D158019 for ; Mon, 4 Oct 2021 14:22:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2E98E0876; Mon, 4 Oct 2021 14:22:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6D32E0874 for ; Mon, 4 Oct 2021 14:22:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E43A5343031 for ; Mon, 4 Oct 2021 14:22:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 013EB138 for ; Mon, 4 Oct 2021 14:22:18 +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: <1633357306.271ccf11f2a6af294c41f01e27decd1da00cb8f5.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pgzero/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pgzero/pgzero-1.2.1-r1.ebuild X-VCS-Directories: dev-python/pgzero/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 271ccf11f2a6af294c41f01e27decd1da00cb8f5 X-VCS-Branch: master Date: Mon, 4 Oct 2021 14:22:18 +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: 487decd7-c84f-47d5-aa43-7b40059b2f5c X-Archives-Hash: c400493995dd3e42d11b0e0e7d205a6a commit: 271ccf11f2a6af294c41f01e27decd1da00cb8f5 Author: Arthur Zamarin gentoo org> AuthorDate: Mon Oct 4 14:19:26 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Mon Oct 4 14:21:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271ccf11 dev-python/pgzero: enable py3.10, cleanup ebuild Signed-off-by: Arthur Zamarin gentoo.org> dev-python/pgzero/pgzero-1.2.1-r1.ebuild | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/dev-python/pgzero/pgzero-1.2.1-r1.ebuild b/dev-python/pgzero/pgzero-1.2.1-r1.ebuild index abeeb71b78e..fe32cc7764f 100644 --- a/dev-python/pgzero/pgzero-1.2.1-r1.ebuild +++ b/dev-python/pgzero/pgzero-1.2.1-r1.ebuild @@ -3,16 +3,18 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8,9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 -distutils_enable_tests unittest MY_PV="${PV/_p/.post}" MY_P="${PN}-${MY_PV}" + DESCRIPTION="A zero-boilerplate games programming framework based on Pygame" HOMEPAGE="https://pygame-zero.readthedocs.io/" SRC_URI="https://github.com/lordmauve/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64" @@ -22,15 +24,16 @@ RDEPEND=" dev-python/pygame[${PYTHON_USEDEP}] " -DEPEND=" - ${RDEPEND} +BDEPEND=" test? ( media-libs/sdl2-image[png] media-libs/sdl2-mixer[vorbis] ) " +distutils_enable_tests unittest -S="${WORKDIR}/${MY_P}" - -# Allow the tests to pass without real audio or video. -export SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy +python_test() { + # Allow the tests to pass without real audio or video. + local -x SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy + eunittest +}