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 6780B138335 for ; Sun, 15 Dec 2019 13:10:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72042E089A; Sun, 15 Dec 2019 13:10:46 +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 4ED8CE089A for ; Sun, 15 Dec 2019 13:10:46 +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 1D6F934D7D0 for ; Sun, 15 Dec 2019 13:10:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0125F7FE for ; Sun, 15 Dec 2019 13:10:43 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1576415297.3468f5bb7a50c2226882a8a5e49356f1627c008f.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-distutils-extra/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-distutils-extra/python-distutils-extra-2.42-r1.ebuild X-VCS-Directories: dev-python/python-distutils-extra/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 3468f5bb7a50c2226882a8a5e49356f1627c008f X-VCS-Branch: master Date: Sun, 15 Dec 2019 13:10: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: fb80f56d-831d-4a09-a54b-c54ae2234b06 X-Archives-Hash: 44045c77c48c6f302740b125fc2e7e0b commit: 3468f5bb7a50c2226882a8a5e49356f1627c008f Author: Conrad Kostecki gentoo org> AuthorDate: Sun Dec 15 12:37:40 2019 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Dec 15 13:08:17 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3468f5bb dev-python/python-distutils-extra: add python3_8 support All tests pass for python3_8. Also moved setuptools into DISTUTILS_USE_SETUPTOOLS. Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Conrad Kostecki gentoo.org> .../python-distutils-extra-2.42-r1.ebuild | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/dev-python/python-distutils-extra/python-distutils-extra-2.42-r1.ebuild b/dev-python/python-distutils-extra/python-distutils-extra-2.42-r1.ebuild new file mode 100644 index 00000000000..62d980be4a8 --- /dev/null +++ b/dev-python/python-distutils-extra/python-distutils-extra-2.42-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS="rdepend" +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Gettext support, themed icons and scrollkeeper-based documentation in distutils" +HOMEPAGE="https://launchpad.net/python-distutils-extra" +SRC_URI="mirror://ubuntu/pool/universe/p/${PN}/${PN}_${PV}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +DOCS=( doc/{README,FAQ} ) + +python_prepare_all() { + # This line is run when the file is imported + # https://bugs.launchpad.net/python-distutils-extra/+bug/1657919 + sed -i '/^unittest.main()$/d' test/auto.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # 5 tests fail with disabled byte-compilation (they rely on exact + # output from python). + # The other 4 are broken. + pytest -vv -k "not (test_pot_manual or test_pot_auto_explicit or \ + test_pot_auto or test_modules or test_packages) and not \ + (test_desktop or test_po or test_policykit or \ + test_requires_provides)" test/auto.py || \ + die "tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + docinto examples + dodoc doc/{setup.cfg.example,setup.py.example} + docompress -x /usr/share/doc/${PF}/examples +}