1 |
commit: 0c3e9e0342fe37d89baf01af7cd7effb9fdd6f0f |
2 |
Author: Andreas Zuber <a.zuber <AT> gmx <DOT> ch> |
3 |
AuthorDate: Wed Mar 17 10:58:41 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 18 21:27:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c3e9e03 |
7 |
|
8 |
dev-python/pygal: python 3.9 and tests fix |
9 |
|
10 |
Closes: https://bugs.gentoo.org/738208 |
11 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
12 |
Signed-off-by: Andreas Zuber <a.zuber <AT> gmx.ch> |
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
dev-python/pygal/files/2.4.0-fix-tests.patch | 17 +++++++++++++++++ |
16 |
.../{pygal-2.4.0-r1.ebuild => pygal-2.4.0-r2.ebuild} | 6 ++++-- |
17 |
2 files changed, 21 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/pygal/files/2.4.0-fix-tests.patch b/dev-python/pygal/files/2.4.0-fix-tests.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..6ae07df3427 |
22 |
--- /dev/null |
23 |
+++ b/dev-python/pygal/files/2.4.0-fix-tests.patch |
24 |
@@ -0,0 +1,17 @@ |
25 |
+diff --git a/pygal/test/conftest.py b/pygal/test/conftest.py |
26 |
+index ea36010..6fe40cb 100644 |
27 |
+--- a/pygal/test/conftest.py |
28 |
++++ b/pygal/test/conftest.py |
29 |
+@@ -48,9 +48,9 @@ def pytest_generate_tests(metafunc): |
30 |
+ if hasattr(sys, 'pypy_version_info'): |
31 |
+ etree.to_etree() |
32 |
+ |
33 |
+- if "Chart" in metafunc.funcargnames: |
34 |
++ if "Chart" in metafunc.fixturenames: |
35 |
+ metafunc.parametrize("Chart", pygal.CHARTS) |
36 |
+- if "datas" in metafunc.funcargnames: |
37 |
++ if "datas" in metafunc.fixturenames: |
38 |
+ metafunc.parametrize( |
39 |
+ "datas", [[("Serie %d" % i, get_data(i)) for i in range(s)] |
40 |
+ for s in (5, 1, 0)] |
41 |
+-- |
42 |
|
43 |
diff --git a/dev-python/pygal/pygal-2.4.0-r1.ebuild b/dev-python/pygal/pygal-2.4.0-r2.ebuild |
44 |
similarity index 90% |
45 |
rename from dev-python/pygal/pygal-2.4.0-r1.ebuild |
46 |
rename to dev-python/pygal/pygal-2.4.0-r2.ebuild |
47 |
index d99f0e5a873..b886f7767a6 100644 |
48 |
--- a/dev-python/pygal/pygal-2.4.0-r1.ebuild |
49 |
+++ b/dev-python/pygal/pygal-2.4.0-r2.ebuild |
50 |
@@ -1,8 +1,8 @@ |
51 |
-# Copyright 1999-2020 Gentoo Authors |
52 |
+# Copyright 1999-2021 Gentoo Authors |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
|
55 |
EAPI=7 |
56 |
-PYTHON_COMPAT=( python3_{7,8} ) |
57 |
+PYTHON_COMPAT=( python3_{7..9} ) |
58 |
PYTHON_REQ_USE="xml(+)" |
59 |
|
60 |
inherit distutils-r1 |
61 |
@@ -29,6 +29,8 @@ BDEPEND=" |
62 |
) |
63 |
" |
64 |
|
65 |
+PATCHES=( "${FILESDIR}/${PV}-fix-tests.patch" ) |
66 |
+ |
67 |
# CHANGELOG is a symlink to docs/changelog.rst |
68 |
DOCS=( docs/changelog.rst README.md ) |