Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pytextile/
Date: Mon, 27 Feb 2023 18:02:30
Message-Id: 1677520774.e72cfc62783554f9cea215b89bd21f3acec4553e.mgorny@gentoo
1 commit: e72cfc62783554f9cea215b89bd21f3acec4553e
2 Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz>
3 AuthorDate: Mon Feb 27 16:22:51 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 17:59:34 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e72cfc62
7
8 app-text/pytextile: add 4.0.2
9
10 - EAPI bump to 8
11 - convert to PEP517
12 - enable py3.11
13
14 Closes: https://bugs.gentoo.org/896640
15 Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
16 Closes: https://github.com/gentoo/gentoo/pull/29836
17 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
18
19 app-text/pytextile/Manifest | 1 +
20 app-text/pytextile/pytextile-4.0.2.ebuild | 43 +++++++++++++++++++++++++++++++
21 2 files changed, 44 insertions(+)
22
23 diff --git a/app-text/pytextile/Manifest b/app-text/pytextile/Manifest
24 index 08cfb9abe240..e3a71b9a187f 100644
25 --- a/app-text/pytextile/Manifest
26 +++ b/app-text/pytextile/Manifest
27 @@ -1 +1,2 @@
28 DIST pytextile-4.0.1.tar.gz 49282 BLAKE2B b51220ff33fe43b83d0aefee840b5170747015073fbe88934798c2505c3455e9805eee8815ec8068521c88a44a309bd0eb32e84757d088536f1c12a1f9bc0ca0 SHA512 e299663fd71b935e9c948649baba80584b1339dd3393a3f37b39475fe1d6a4addaaa2adcd16ba57b4c5db43ab9f8de6e9332871915b1fff7b7882ad5e8d64580
29 +DIST python-textile-4.0.2.gh.tar.gz 49296 BLAKE2B e9ac36b0ecf401a07aea1037c1f4390e440123d7e16f8fef64c257d27f6ef9c6918018ff34e9f8ad367767f3ebc5ce7957be424b2e6dac62fe8a1f7736b8eff7 SHA512 eb59e44b9a8521bcfa98f476e23efd727ffd867277d24f102bbb9511a99a0d636c324e22f8562382074007f304490c4ec6a5fde529f41b15f055a9cf16d49b8e
30
31 diff --git a/app-text/pytextile/pytextile-4.0.2.ebuild b/app-text/pytextile/pytextile-4.0.2.ebuild
32 new file mode 100644
33 index 000000000000..e0c784fe396a
34 --- /dev/null
35 +++ b/app-text/pytextile/pytextile-4.0.2.ebuild
36 @@ -0,0 +1,43 @@
37 +# Copyright 1999-2023 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=8
41 +
42 +DISTUTILS_USE_PEP517=setuptools
43 +PYTHON_COMPAT=( python3_{9..11} )
44 +
45 +inherit distutils-r1
46 +
47 +MY_P="python-textile-${PV}"
48 +DESCRIPTION="A Python port of Textile, A humane web text generator"
49 +HOMEPAGE="
50 + https://github.com/textile/python-textile/
51 + https://pypi.org/project/textile/
52 +"
53 +SRC_URI="
54 + https://github.com/textile/python-textile/archive/${PV}.tar.gz
55 + -> ${MY_P}.gh.tar.gz
56 +"
57 +S=${WORKDIR}/${MY_P}
58 +
59 +LICENSE="BSD"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
62 +
63 +RDEPEND="
64 + dev-python/html5lib[${PYTHON_USEDEP}]
65 + dev-python/regex[${PYTHON_USEDEP}]
66 + dev-python/six[${PYTHON_USEDEP}]
67 +"
68 +
69 +distutils_enable_tests pytest
70 +
71 +python_test() {
72 + local EPYTEST_DESELECT=(
73 + # tests that need network access
74 + tests/test_getimagesize.py
75 + tests/test_imagesize.py
76 + tests/test_textile.py
77 + )
78 + epytest -o addopts=
79 +}