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 25ABD13997D for ; Fri, 15 Nov 2019 08:01:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27F6BE0839; Fri, 15 Nov 2019 08:01:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 00634E0839 for ; Fri, 15 Nov 2019 08:01:31 +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 BE6B734CE6A for ; Fri, 15 Nov 2019 08:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9BE6D8B0 for ; Fri, 15 Nov 2019 08:01:28 +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: <1573804884.ad1aaaf223c6a45db1df030819fc8f2e57bcf754.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/setuptools/setuptools-41.5.1.ebuild dev-python/setuptools/setuptools-9999.ebuild X-VCS-Directories: dev-python/setuptools/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ad1aaaf223c6a45db1df030819fc8f2e57bcf754 X-VCS-Branch: master Date: Fri, 15 Nov 2019 08:01:28 +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: c0600e95-8633-4455-ae1c-72d2f4cacca8 X-Archives-Hash: 24df841e6f86f97767dea0e3b959dffb commit: ad1aaaf223c6a45db1df030819fc8f2e57bcf754 Author: Michał Górny gentoo org> AuthorDate: Fri Nov 15 07:58:51 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 15 08:01:24 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad1aaaf2 dev-python/setuptools: Enable Python 3.8 Enable Python 3.8 as needed to start bootstrapping it everywhere. For now, without test deps since they cause many blockers in keywording process. However, when test deps are built without testing, setuptools' tests just pass. Signed-off-by: Michał Górny gentoo.org> dev-python/setuptools/setuptools-41.5.1.ebuild | 27 +++++++++++++++++++------- dev-python/setuptools/setuptools-9999.ebuild | 2 +- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/dev-python/setuptools/setuptools-41.5.1.ebuild b/dev-python/setuptools/setuptools-41.5.1.ebuild index 69da3de1a38..ff4a7aa5463 100644 --- a/dev-python/setuptools/setuptools-41.5.1.ebuild +++ b/dev-python/setuptools/setuptools-41.5.1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 @@ -25,15 +25,19 @@ RESTRICT="!test? ( test )" RDEPEND=" " +# Temporary hack to avoid py38 keywording hell. Please remove when +# the test deps all have py38. Also setuptools' test pass with py38, +# so you need to hack them all in locally before bumping and test. +TEST_USEDEP=$(python_gen_usedep python2_7 python3_{5,6,7} pypy{,3}) DEPEND="${RDEPEND} app-arch/unzip test? ( - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pip[${PYTHON_USEDEP}] - >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] - dev-python/pytest-fixture-config[${PYTHON_USEDEP}] - dev-python/pytest-virtualenv[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] + dev-python/mock[${TEST_USEDEP}] + dev-python/pip[${TEST_USEDEP}] + >=dev-python/pytest-3.7.0[${TEST_USEDEP}] + dev-python/pytest-fixture-config[${TEST_USEDEP}] + dev-python/pytest-virtualenv[${TEST_USEDEP}] + dev-python/wheel[${TEST_USEDEP}] virtual/python-futures[${PYTHON_USEDEP}] ) " @@ -61,6 +65,15 @@ python_prepare_all() { } python_test() { + if [[ ${EPYTHON} == python3.8 ]]; then + if [[ ${PV} != 41.5.1 ]]; then + eerror "Please disable py38 hacks and test locally, then update this." + die "Python 3.8 support untested for ${PV}" + fi + einfo "Skipping testing on ${EPYTHON} due to unkeyworded deps" + return + fi + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg # It tries to sandbox the test in a tempdir HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" diff --git a/dev-python/setuptools/setuptools-9999.ebuild b/dev-python/setuptools/setuptools-9999.ebuild index 69da3de1a38..8d522c4213f 100644 --- a/dev-python/setuptools/setuptools-9999.ebuild +++ b/dev-python/setuptools/setuptools-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1