1 |
commit: 011e8d3137d03208b4d1c12f6f9becb5a55173eb |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 3 20:36:31 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 20:48:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=011e8d31 |
7 |
|
8 |
dev-python/html2text: bump to 2019.9.26, support Python 3.7 |
9 |
|
10 |
* Python 2 is no longer supported. |
11 |
* chardet and feedparser are no longer required. |
12 |
* pytest is now required to run tests. |
13 |
* fetch source from PyPI instead of GitHub. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/694524 |
16 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
17 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
18 |
|
19 |
dev-python/html2text/Manifest | 1 + |
20 |
dev-python/html2text/html2text-2019.9.26.ebuild | 35 +++++++++++++++++++++++++ |
21 |
2 files changed, 36 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/html2text/Manifest b/dev-python/html2text/Manifest |
24 |
index 71e2e3a3259..36125da4c2a 100644 |
25 |
--- a/dev-python/html2text/Manifest |
26 |
+++ b/dev-python/html2text/Manifest |
27 |
@@ -1,3 +1,4 @@ |
28 |
DIST html2text-2016.5.29.tar.gz 46879 BLAKE2B 0e7ccae7ae4d90fb202d9fdb8edd81f74b204f81c2410f345eb923fe610f61fab6ba71bcc95138fb3706ee51007a2c72c76497cee48818032934e7f809fd46ae SHA512 58b71fda6ea6fd1a71dec757c91cf342265a2c89ff5c45e752436068419fb6c1faa1ca0d5a6baafaaa60186a85aefdd840989177ce30e55bcda1c6209fc375be |
29 |
DIST html2text-2017.10.4.tar.gz 50527 BLAKE2B 96b7060761a629cf4313104323517c4a9070aabfa02be43e80c89b56b92329785817abc7ab9fef4a8537cbde4a797926d3c1d444c11f3db6112074a31d8a8e61 SHA512 c7f9b765572b5eac72837aa757f0be07df0270b49f9b3a3ec8c3c65ff929505166b0510c106116ffdca484b56120b6c162f86b600d88a5a35e86d06cd6b6fa19 |
30 |
DIST html2text-2018.1.9-1.tar.gz 51173 BLAKE2B a21cd3e579d47081e669fda3f3147fc28d816478885942565a1b93b86292e2729e93bfea6b5326703e575f209f5bd7dd905d72011b8153b8c40d31c83acf9057 SHA512 773b508864a2fa31e961e132118702429f5b7836e90bd521db2ed6b4215de49d63991a99b7ad7d5aac3074a3c14e4d384557a4eb5b43c7e2aada46d5434ed229 |
31 |
+DIST html2text-2019.9.26.tar.gz 48634 BLAKE2B efece48c7b05171f9bae833663292d7804838b5a791f1f734b3a258843a71616ada2ebee7cee406e0bfa1a3dce67040d41621bd87be100a2c0d4ca6d75829aa9 SHA512 4c6a52e96d3997a6ebe41c2955e2f6bd5189f49aadd7d7afbe67b85a2f61a0aafd0fc09fef184cb9407b9ab26f120ef235294e4e9d8f41e3b6b8f6fc29aa386d |
32 |
|
33 |
diff --git a/dev-python/html2text/html2text-2019.9.26.ebuild b/dev-python/html2text/html2text-2019.9.26.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..d79e5a231b4 |
36 |
--- /dev/null |
37 |
+++ b/dev-python/html2text/html2text-2019.9.26.ebuild |
38 |
@@ -0,0 +1,35 @@ |
39 |
+# Copyright 1999-2019 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+PYTHON_COMPAT=( pypy3 python3_{5,6,7} ) |
44 |
+ |
45 |
+inherit distutils-r1 |
46 |
+ |
47 |
+DESCRIPTION="Turn HTML into equivalent Markdown-structured text" |
48 |
+HOMEPAGE="https://github.com/Alir3z4/html2text https://pypi.org/project/html2text/" |
49 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
54 |
+IUSE="test" |
55 |
+ |
56 |
+# pkg_resources is used for entry points |
57 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
58 |
+DEPEND=" |
59 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
60 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
61 |
+" |
62 |
+ |
63 |
+DOCS=( AUTHORS.rst ChangeLog.rst README.md ) |
64 |
+ |
65 |
+python_prepare_all() { |
66 |
+ # naming conflict with app-text/html2text, bug 421647 |
67 |
+ sed -i 's/html2text = html2text.cli:main/py\0/' setup.py || die |
68 |
+ distutils-r1_python_prepare_all |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ pytest -vv || die "tests failed with ${EPYTHON}" |
73 |
+} |