1 |
commit: 85ddb0d99d3d61f9b81968a44cbfb19c11a719c0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 11 08:51:38 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 11 08:56:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85ddb0d9 |
7 |
|
8 |
dev-python/pygal: Modernize, fix tests, py3.{7,8} |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pygal/pygal-2.4.0-r1.ebuild | 45 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 45 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pygal/pygal-2.4.0-r1.ebuild b/dev-python/pygal/pygal-2.4.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..f46b8e3ea1a |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pygal/pygal-2.4.0-r1.ebuild |
20 |
@@ -0,0 +1,45 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
26 |
+PYTHON_REQ_USE="xml(+)" |
27 |
+ |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="A python SVG charts generator" |
31 |
+HOMEPAGE="http://pygal.org/" |
32 |
+# PyPI tarballs do not contain docs |
33 |
+# https://github.com/Kozea/pygal/pull/428 |
34 |
+SRC_URI="https://github.com/Kozea/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="LGPL-3+" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
42 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
43 |
+ media-gfx/cairosvg[${PYTHON_USEDEP}] |
44 |
+" |
45 |
+BDEPEND=" |
46 |
+ test? ( |
47 |
+ dev-python/pyquery[${PYTHON_USEDEP}] |
48 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
49 |
+ ) |
50 |
+" |
51 |
+ |
52 |
+# CHANGELOG is a symlink to docs/changelog.rst |
53 |
+DOCS=( docs/changelog.rst README.md ) |
54 |
+ |
55 |
+distutils_enable_sphinx docs |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+python_prepare_all() { |
59 |
+ # Not actually required unless we want to do setup.py test |
60 |
+ # https://github.com/Kozea/pygal/issues/430 |
61 |
+ sed -i -e "/setup_requires/d" setup.py || die |
62 |
+ # [pytest] section in setup.cfg files is no longer supported |
63 |
+ sed -i -e 's@\[pytest\]@[tool:pytest]@' setup.cfg || die |
64 |
+ distutils-r1_python_prepare_all |
65 |
+} |