1 |
commit: efa4b2c5f0ca02034411924817f3dfce8d5ca950 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 11:05:17 2023 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 11:44:42 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efa4b2c5 |
7 |
|
8 |
dev-python/plotly: add 5.13.0 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/plotly/Manifest | 1 + |
13 |
dev-python/plotly/plotly-5.13.0.ebuild | 98 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 99 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/plotly/Manifest b/dev-python/plotly/Manifest |
17 |
index 8375fe3c18d1..bc5e16862131 100644 |
18 |
--- a/dev-python/plotly/Manifest |
19 |
+++ b/dev-python/plotly/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST plotly-5.10.0.tar.gz 7600627 BLAKE2B cb83d2b14553b0336db098977a29e0417ce8f65ef5088bfa7fbd4ab5ee7cc561e3f3e32504604a402be395d8c46b0948379e9350dff37b225eba3298f2549cfd SHA512 f30f78ad8683d8b8ccd6a1c383772eddf6719fd47b4be693a72e9ae2c6d567fbf683e87aecc24dcd4c1fd89697366e510cfd93e6599d859554b687e6f6cfb416 |
22 |
+DIST plotly.py-5.13.0.gh.tar.gz 30683340 BLAKE2B 0e2c5638c766e5da6e2067d7be270576afed984b45deec0955fa10698d37bd082f3ebc568a8290c17554c672ef9e31cee81b0fae18b9f3249591fe62510ce5fd SHA512 c874b46ac43520519951aad55f93bfcfe03910873fd273f283fe16ae2a4150cfa35104be422c21b65785c77f468f084847278f76bce3d9179cc2a339809c42e3 |
23 |
|
24 |
diff --git a/dev-python/plotly/plotly-5.13.0.ebuild b/dev-python/plotly/plotly-5.13.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..504511612d27 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/plotly/plotly-5.13.0.ebuild |
29 |
@@ -0,0 +1,98 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{10..11} ) |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Browser-based graphing library for Python" |
40 |
+HOMEPAGE="https://plotly.com/python/" |
41 |
+SRC_URI="https://github.com/plotly/plotly.py/archive/refs/tags/v${PV}.tar.gz -> plotly.py-${PV}.gh.tar.gz" |
42 |
+S="${WORKDIR}/plotly.py-${PV}/packages/python/${PN}" |
43 |
+# The tests are not included in the PyPI tarball, to use the GitHub tarball |
44 |
+# we have to skip npm, which means that the resulting install will |
45 |
+# unfortunately lack the jupyterlab extension. |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/tenacity-6.2.0[${PYTHON_USEDEP}] |
53 |
+" |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
57 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
58 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
59 |
+ dev-python/jupyter[${PYTHON_USEDEP}] |
60 |
+ dev-python/jupyterlab[${PYTHON_USEDEP}] |
61 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
62 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
63 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
64 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
65 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
66 |
+ dev-python/requests[${PYTHON_USEDEP}] |
67 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
68 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
69 |
+ dev-python/shapely[${PYTHON_USEDEP}] |
70 |
+ dev-python/statsmodels[${PYTHON_USEDEP}] |
71 |
+ dev-python/xarray[${PYTHON_USEDEP}] |
72 |
+ sci-libs/scikit-image[${PYTHON_USEDEP}] |
73 |
+ ) |
74 |
+" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/${PN}-5.8.0-fix-versioneer-import.patch |
78 |
+) |
79 |
+ |
80 |
+EPYTEST_IGNORE=( |
81 |
+ # Needs porting to newer numpy |
82 |
+ _plotly_utils/tests/validators/test_integer_validator.py |
83 |
+ |
84 |
+ # kaleido not packaged |
85 |
+ plotly/tests/test_optional/test_kaleido |
86 |
+ |
87 |
+ # plotly-orca not packaged |
88 |
+ plotly/tests/test_orca |
89 |
+) |
90 |
+ |
91 |
+EPYTEST_DESELECT=( |
92 |
+ # Also needs porting to newer numpy |
93 |
+ plotly/tests/test_io/test_to_from_plotly_json.py::test_object_numpy_encoding |
94 |
+ |
95 |
+ # kaleido not packaged |
96 |
+ plotly/tests/test_orca/test_to_image.py::test_bytesio |
97 |
+ |
98 |
+ # Fails if not already installed |
99 |
+ test_init/test_dependencies_not_imported.py::test_dependencies_not_imported |
100 |
+ test_init/test_lazy_imports.py::test_lazy_imports |
101 |
+ |
102 |
+ # Minor matplotlib incompatibility |
103 |
+ plotly/matplotlylib/mplexporter/tests/test_basic.py::test_path_collection |
104 |
+ plotly/matplotlylib/mplexporter/tests/test_basic.py::test_legend_dots |
105 |
+ plotly/matplotlylib/mplexporter/tests/test_utils.py::test_linestyle |
106 |
+ |
107 |
+ # In python 3.11 the produced error is slightly different |
108 |
+ plotly/tests/test_core/test_errors/test_dict_path_errors.py::test_described_subscript_error_on_type_error |
109 |
+) |
110 |
+ |
111 |
+# There are sphinx docs but we are missing a bunch of dependencies. |
112 |
+# distutils_enable_sphinx ../../../doc/apidoc |
113 |
+distutils_enable_tests pytest |
114 |
+ |
115 |
+python_prepare_all() { |
116 |
+ # Do not try to fetch stuff with npm |
117 |
+ export SKIP_NPM=1 |
118 |
+ distutils-r1_python_prepare_all |
119 |
+} |
120 |
+ |
121 |
+python_install_all() { |
122 |
+ distutils-r1_python_install_all |
123 |
+ |
124 |
+ mkdir -p "${ED}"/etc/ || die |
125 |
+ mv "${ED}"/usr/etc/jupyter "${ED}"/etc/ || die |
126 |
+ rmdir "${ED}"/usr/etc || die |
127 |
+} |