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 81B86138350 for ; Fri, 13 Mar 2020 17:45:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CB67E0BB8; Fri, 13 Mar 2020 17:45:54 +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 5E26CE0BB8 for ; Fri, 13 Mar 2020 17:45:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 7B00A34EF83 for ; Fri, 13 Mar 2020 17:45:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7379C187 for ; Fri, 13 Mar 2020 17:45:50 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1584101173.2f151dc5b32040707c6519e1a3d407d49b02ae5b.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/black/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/black/black-19.10_beta0.ebuild X-VCS-Directories: dev-python/black/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 2f151dc5b32040707c6519e1a3d407d49b02ae5b X-VCS-Branch: master Date: Fri, 13 Mar 2020 17:45:50 +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: 97191479-8214-493b-919d-9dfed902b940 X-Archives-Hash: e08b80588c83f8708b3c5429a4ea8b55 Message-ID: <20200313174550.PUTwk4GCpG7ayPvFdg4aJgrEZEghJx8kVPmJZ9PEMEo@z> commit: 2f151dc5b32040707c6519e1a3d407d49b02ae5b Author: Andrew Ammerlaan riseup net> AuthorDate: Fri Mar 13 12:06:13 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Fri Mar 13 12:06:13 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f151dc5 dev-python/black: EAPI bump tried to fix test but still not quite working tried to add docs but fails to build for some reason Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/black/black-19.10_beta0.ebuild | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/dev-python/black/black-19.10_beta0.ebuild b/dev-python/black/black-19.10_beta0.ebuild index e441029..f62bc49 100644 --- a/dev-python/black/black-19.10_beta0.ebuild +++ b/dev-python/black/black-19.10_beta0.ebuild @@ -1,13 +1,16 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 MY_PV="19.10b0" + DESCRIPTION="The uncompromising Python code formatter" HOMEPAGE="https://github.com/psf/black https://pypi.org/project/black/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" @@ -15,7 +18,9 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" + +# tests fail: name 'AioHTTPTestCase' is not defined +RESTRICT="test" RDEPEND=" >=dev-python/appdirs-1.4[${PYTHON_USEDEP}] @@ -29,12 +34,19 @@ RDEPEND=" >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] $(python_gen_cond_dep 'dev-python/dataclasses[${PYTHON_USEDEP}]' python3_6) " -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] -" S="${WORKDIR}/${PN}-${MY_PV}" -python_test() { - python -m unittest tests/test_black.py || die "Tests fail with ${EPYTHON}" -} \ No newline at end of file +python_prepare_all() { + # cannot get_version() for some reason so we set it here manually + sed -i -e "s/get_version(root=CURRENT_DIR.parent)/${MY_PV::-2}/g" \ + -e '/for sp in "abcfr":/d' \ + -e '/version.split(sp)/d' \ + docs/conf.py || die + + distutils-r1_python_prepare_all +} + +distutils_enable_tests pytest +# docs fail to build:: module 'black' has no attribute 'is_python36' +#distutils_enable_sphinx docs dev-python/recommonmark