1 |
commit: c818c56789749aec547a0df6d82e522b4146a87b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 06:27:57 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 3 06:28:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c818c567 |
7 |
|
8 |
dev-python/plotly: add 5.8.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/841002 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-python/plotly/Manifest | 1 + |
14 |
.../files/plotly-5.8.0-fix-versioneer-import.patch | 14 +++++ |
15 |
dev-python/plotly/plotly-5.8.0.ebuild | 63 ++++++++++++++++++++++ |
16 |
3 files changed, 78 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/plotly/Manifest b/dev-python/plotly/Manifest |
19 |
index 6b7240b0df5e..cdbf1b6f15c2 100644 |
20 |
--- a/dev-python/plotly/Manifest |
21 |
+++ b/dev-python/plotly/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST plotly-5.2.2.tar.gz 7293292 BLAKE2B baef3accf8f5a3085908fcea558f8003687e18a1f97471c620c378c10d23d4222ef87dc47d64f45199b594414890db5b8ca5e3d7867c871d926c2ae441128c4a SHA512 4d6d79f7cc2063e73e7c17ff90a7d13324497ea8034d8ce62d79ec62b0530a59b2eaec8913fb05efb804cf5be8387b6f96d1710f41b9993233b5a13cf64dd310 |
24 |
DIST plotly-5.7.0.tar.gz 8609793 BLAKE2B 12318f837c248c54fd3a8723bc772e8348186942565ba5a4c095f348dc338cc098318889900500ec333d7ec352801926ec91d312f2ccd98a89f804159223057f SHA512 01675470ef5218f06b4e9e485f23155a8e8550748fdf86afdb2a2969f838464b70d4452811427ab6bed2846093e8cfba7e891f7d0ea3a621e1fbffe22182d933 |
25 |
+DIST plotly-5.8.0.tar.gz 7573157 BLAKE2B 522d0d22d29d5ee204a9ecccbfe7862acee8b8605ab3dfce46a7b771020c24aff39b74aa3244c8384d61bb7e61ca5d2a610d061b0c208bf6cf9fe91543bbfc3f SHA512 2c17c97e897959a9826c19495c30cc7dd21de80e777c13927c1f47c3aa08f64f53ad715d156e78aabaf99fa2a8f85c90d63b08a227c5301710b5c561ee89429c |
26 |
|
27 |
diff --git a/dev-python/plotly/files/plotly-5.8.0-fix-versioneer-import.patch b/dev-python/plotly/files/plotly-5.8.0-fix-versioneer-import.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..4d0411a34c62 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/plotly/files/plotly-5.8.0-fix-versioneer-import.patch |
32 |
@@ -0,0 +1,14 @@ |
33 |
+https://bugs.gentoo.org/841002 |
34 |
+https://github.com/dandi/dandi-cli/pull/998 |
35 |
+https://github.com/mgorny/gpep517/issues/1 |
36 |
+--- a/setup.py |
37 |
++++ b/setup.py |
38 |
+@@ -11,7 +11,7 @@ from distutils import log |
39 |
+ # ensure the current directory is on sys.path; so versioneer can be imported |
40 |
+ # when pip uses PEP 517/518 build rules. |
41 |
+ # https://github.com/python-versioneer/python-versioneer/issues/193 |
42 |
+-sys.path.append(os.path.dirname(__file__)) |
43 |
++sys.path.insert(0, os.path.dirname(__file__)) |
44 |
+ |
45 |
+ import versioneer |
46 |
+ |
47 |
|
48 |
diff --git a/dev-python/plotly/plotly-5.8.0.ebuild b/dev-python/plotly/plotly-5.8.0.ebuild |
49 |
new file mode 100644 |
50 |
index 000000000000..727c95cffca9 |
51 |
--- /dev/null |
52 |
+++ b/dev-python/plotly/plotly-5.8.0.ebuild |
53 |
@@ -0,0 +1,63 @@ |
54 |
+# Copyright 1999-2022 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=8 |
58 |
+ |
59 |
+PYTHON_COMPAT=( python3_{8..10} ) |
60 |
+DISTUTILS_USE_PEP517=setuptools |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+DESCRIPTION="Browser-based graphing library for Python" |
64 |
+HOMEPAGE="https://plotly.com/python/" |
65 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="MIT" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64" |
70 |
+ |
71 |
+# TODO: package plotly-orca and kaleido |
72 |
+RESTRICT="test" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ >=dev-python/tenacity-6.2.0[${PYTHON_USEDEP}] |
76 |
+" |
77 |
+BDEPEND=" |
78 |
+ test? ( |
79 |
+ $(python_gen_cond_dep ' |
80 |
+ dev-python/backports-tempfile[${PYTHON_USEDEP}] |
81 |
+ ' 3.8) |
82 |
+ dev-python/inflect[${PYTHON_USEDEP}] |
83 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
84 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
85 |
+ dev-python/jupyter[${PYTHON_USEDEP}] |
86 |
+ dev-python/jupyterlab[${PYTHON_USEDEP}] |
87 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
88 |
+ dev-python/mock[${PYTHON_USEDEP}] |
89 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
90 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
91 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
92 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
93 |
+ dev-python/requests[${PYTHON_USEDEP}] |
94 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
95 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
96 |
+ dev-python/statsmodels[${PYTHON_USEDEP}] |
97 |
+ dev-python/xarray[${PYTHON_USEDEP}] |
98 |
+ sci-libs/pyshp[${PYTHON_USEDEP}] |
99 |
+ sci-libs/scikit-image[${PYTHON_USEDEP}] |
100 |
+ sci-libs/shapely[${PYTHON_USEDEP}] |
101 |
+ ) |
102 |
+" |
103 |
+ |
104 |
+PATCHES=( |
105 |
+ "${FILESDIR}"/${PN}-5.8.0-fix-versioneer-import.patch |
106 |
+) |
107 |
+ |
108 |
+distutils_enable_tests pytest |
109 |
+ |
110 |
+python_install_all() { |
111 |
+ distutils-r1_python_install_all |
112 |
+ |
113 |
+ mkdir -p "${ED}"/etc/ || die |
114 |
+ mv "${ED}"/usr/etc/jupyter "${ED}"/etc/ || die |
115 |
+ rmdir "${ED}"/usr/etc || die |
116 |
+} |