commit:     c38a0c214c0a100f4bcc66942b67654c8f9791b5
Author:     Nils Freydank <nils.freydank <AT> posteo <DOT> de>
AuthorDate: Mon Jul  6 12:23:22 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> 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 <holgersson <AT> posteo.de>
Signed-off-by: Joonas Niilola <juippis <AT> 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}"
+}

Reply via email to