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 36E2A138359 for ; Sun, 9 Aug 2020 13:10:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78EB0E085E; Sun, 9 Aug 2020 13:10:35 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 65CECE085E for ; Sun, 9 Aug 2020 13:10:35 +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 40AD334EE1D for ; Sun, 9 Aug 2020 13:10:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8EFC2CE for ; Sun, 9 Aug 2020 13:10:19 +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: <1596978493.3526ec7c90064d85e83f378c6cb00d96fd8c9170.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/deprecation/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/deprecation/deprecation-2.0.7.ebuild X-VCS-Directories: dev-python/deprecation/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3526ec7c90064d85e83f378c6cb00d96fd8c9170 X-VCS-Branch: master Date: Sun, 9 Aug 2020 13:10:19 +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: 0b811415-ab5b-4591-923d-ba333d87986c X-Archives-Hash: df5363b2a824b94f3b7f05c97544a046 commit: 3526ec7c90064d85e83f378c6cb00d96fd8c9170 Author: Michał Górny gentoo org> AuthorDate: Sun Aug 9 12:48:52 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Aug 9 13:08:13 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3526ec7c dev-python/deprecation: Port to py3.9 Signed-off-by: Michał Górny gentoo.org> dev-python/deprecation/deprecation-2.0.7.ebuild | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/dev-python/deprecation/deprecation-2.0.7.ebuild b/dev-python/deprecation/deprecation-2.0.7.ebuild index 112502583e0..e60bd893598 100644 --- a/dev-python/deprecation/deprecation-2.0.7.ebuild +++ b/dev-python/deprecation/deprecation-2.0.7.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( pypy3 python3_{6,7} ) +PYTHON_COMPAT=( pypy3 python3_{6..9} ) inherit distutils-r1 @@ -14,31 +14,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm64 x86" -IUSE="doc test" -RESTRICT="!test? ( test )" RDEPEND="dev-python/packaging[${PYTHON_USEDEP}]" BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( dev-python/unittest2[${PYTHON_USEDEP}] - ${RDEPEND} ) " -python_prepare_all() { - sed -i "s/, 'sphinx.ext.intersphinx'//" docs/conf.py || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - sphinx-build docs docs/_build/html || die - HTML_DOCS=( docs/_build/html/. ) - fi -} - -python_test() { - "${EPYTHON}" -m unittest discover -v || die "tests failed with ${EPYTHON}" -} +distutils_enable_sphinx docs +distutils_enable_tests unittest