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 40963138359 for ; Wed, 15 Jul 2020 08:07:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCE17E0973; Wed, 15 Jul 2020 08:06:49 +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 A48DEE0973 for ; Wed, 15 Jul 2020 08:06:49 +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 1F83C34EF11 for ; Wed, 15 Jul 2020 08:06:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B71002DD for ; Wed, 15 Jul 2020 08:06:45 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1594800395.c38a0c214c0a100f4bcc66942b67654c8f9791b5.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pytextile/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/pytextile/Manifest app-text/pytextile/pytextile-4.0.1.ebuild X-VCS-Directories: app-text/pytextile/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: c38a0c214c0a100f4bcc66942b67654c8f9791b5 X-VCS-Branch: master Date: Wed, 15 Jul 2020 08:06:45 +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: 454f4087-870c-49ec-89ad-79d1793f0064 X-Archives-Hash: b48241ac8575b4210b7f5f27a51d492c commit: c38a0c214c0a100f4bcc66942b67654c8f9791b5 Author: Nils Freydank posteo de> AuthorDate: Mon Jul 6 12:23:22 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Jul 15 08:06:35 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c38a0c21 app-text/pytextile: Bump to 4.0.1 and support python3_9 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Nils Freydank posteo.de> Signed-off-by: Joonas Niilola gentoo.org> app-text/pytextile/Manifest | 1 + app-text/pytextile/pytextile-4.0.1.ebuild | 56 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/app-text/pytextile/Manifest b/app-text/pytextile/Manifest index 16cdcb6a803..692dc66e6b3 100644 --- a/app-text/pytextile/Manifest +++ b/app-text/pytextile/Manifest @@ -1 +1,2 @@ DIST pytextile-3.0.3.tar.gz 48560 BLAKE2B f8d3077e2b8e4de7157dcd9ed17f7889301946c2d3034dbbb0171b4930bd7268c65ce1f950552db2b783aa48acae639d5f4ccfcbca96807562b4a6377c3dd220 SHA512 142fe77c8858b0444428f9ca0f24d1a054a1566f85f00fd5cf860bb705a19666249cd03420d258d5acfc9f45052dd25e52767492a60a10d986d86b711b54612f +DIST pytextile-4.0.1.tar.gz 49282 BLAKE2B b51220ff33fe43b83d0aefee840b5170747015073fbe88934798c2505c3455e9805eee8815ec8068521c88a44a309bd0eb32e84757d088536f1c12a1f9bc0ca0 SHA512 e299663fd71b935e9c948649baba80584b1339dd3393a3f37b39475fe1d6a4addaaa2adcd16ba57b4c5db43ab9f8de6e9332871915b1fff7b7882ad5e8d64580 diff --git a/app-text/pytextile/pytextile-4.0.1.ebuild b/app-text/pytextile/pytextile-4.0.1.ebuild new file mode 100644 index 00000000000..a5e8b653f7f --- /dev/null +++ b/app-text/pytextile/pytextile-4.0.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit distutils-r1 +DISTUTILS_USE_SETUPTOOLS=rdepend + +MY_PN="python-textile" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A Python port of Textile, A humane web text generator" +HOMEPAGE="https://github.com/textile/python-textile" +SRC_URI="https://github.com/textile/python-textile/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + # remove useless --cov arg injection + rm pytest.ini || die + # remove useless pytest-runner dep + sed -e "s/pytest-runner//g" -i setup.py || die + + # remove tests that need network access + local my_drop_tests=( + test_getimagesize.py + test_imagesize.py + test_textile.py + ) + for test in ${my_drop_tests[@]}; + do rm "tests/$test" || die + done +} + +python_test() { + pytest || die "Testsuite failed under ${EPYTHON}" +}