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 CEE8A138359 for ; Wed, 21 Oct 2020 19:21:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 15551E0922; Wed, 21 Oct 2020 19:21:47 +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 EAA40E0922 for ; Wed, 21 Oct 2020 19:21:46 +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 1F58B340D5E for ; Wed, 21 Oct 2020 19:21:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7ACF426 for ; Wed, 21 Oct 2020 19:21:43 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1603307935.73f67cfe1742a08be85abf964084425cab3d7ae9.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/MechanicalSoup/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/MechanicalSoup/MechanicalSoup-0.12.0.ebuild X-VCS-Directories: dev-python/MechanicalSoup/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 73f67cfe1742a08be85abf964084425cab3d7ae9 X-VCS-Branch: master Date: Wed, 21 Oct 2020 19:21:43 +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: 68b26c0c-18c7-48e4-8052-0072217294ab X-Archives-Hash: df1010b5914ec4dfba93c876f04ea67b commit: 73f67cfe1742a08be85abf964084425cab3d7ae9 Author: Louis Sautier gentoo org> AuthorDate: Wed Oct 21 19:12:41 2020 +0000 Commit: Louis Sautier gentoo org> CommitDate: Wed Oct 21 19:18:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73f67cfe dev-python/MechanicalSoup: add Python 3.9 support Also use distutils_enable_tests and remove unnecessary sed. Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Louis Sautier gentoo.org> dev-python/MechanicalSoup/MechanicalSoup-0.12.0.ebuild | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/dev-python/MechanicalSoup/MechanicalSoup-0.12.0.ebuild b/dev-python/MechanicalSoup/MechanicalSoup-0.12.0.ebuild index 14b661fd659..25a8f0174d7 100644 --- a/dev-python/MechanicalSoup/MechanicalSoup-0.12.0.ebuild +++ b/dev-python/MechanicalSoup/MechanicalSoup-0.12.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) +PYTHON_COMPAT=( pypy3 python3_{6..9} ) inherit distutils-r1 @@ -14,8 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="examples test" -RESTRICT="!test? ( test )" +IUSE="examples" RDEPEND=" >=dev-python/beautifulsoup-4.0[${PYTHON_USEDEP}] @@ -25,26 +24,19 @@ RDEPEND=" " BDEPEND=" test? ( - ${RDEPEND} >=dev-python/requests-mock-1.3.0[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] dev-python/pytest-httpbin[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] ) " +distutils_enable_tests pytest distutils_enable_sphinx docs python_prepare_all() { - # We don't need pytest-runner to run tests via pytest - sed -i "s/'pytest-runner'//" setup.py || die - distutils-r1_python_prepare_all -} - -python_test() { # Override pytest options to skip coverage and flake8 - pytest -vv --override-ini="addopts=" \ - || die "tests failed with ${EPYTHON}" + sed -i -e '/^addopts =/d' setup.cfg || die + distutils-r1_python_prepare_all } python_install_all() {