Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/chart-studio/
Date: Sun, 29 Jan 2023 11:44:55
Message-Id: 1674992684.a5a82f8ddc3151f12d53919d20eeb8523669c572.andrewammerlaan@gentoo
1 commit: a5a82f8ddc3151f12d53919d20eeb8523669c572
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 29 11:44:00 2023 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 11:44:44 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5a82f8d
7
8 dev-python/chart-studio: update EAPI 7 -> 8, pep517, enable py3.11
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/chart-studio/Manifest | 1 +
13 .../chart-studio/chart-studio-1.1.0-r2.ebuild | 55 ++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-python/chart-studio/Manifest b/dev-python/chart-studio/Manifest
17 index dc46b9a16cbf..6dbe6ff9ac05 100644
18 --- a/dev-python/chart-studio/Manifest
19 +++ b/dev-python/chart-studio/Manifest
20 @@ -1 +1,2 @@
21 DIST chart-studio-1.1.0.tar.gz 51680 BLAKE2B 02aeb188dae3c1ff73faea891b0a9bef775ecac58e79ec4a43f2c0e0ca1ad71f5ba0cd93bd35779e7358b9495549915e23acb2817cb7ecd3becd4afccec71077 SHA512 1ee049b79df9e5f781cf279f03df718597ef4c0cc0dc02975a16b5a8f34f9330636453868f54e12e9ec8484a23c3481dc6a367995b359e1a4c2363860a962256
22 +DIST plotly.py-5.13.0.gh.tar.gz 30683340 BLAKE2B 0e2c5638c766e5da6e2067d7be270576afed984b45deec0955fa10698d37bd082f3ebc568a8290c17554c672ef9e31cee81b0fae18b9f3249591fe62510ce5fd SHA512 c874b46ac43520519951aad55f93bfcfe03910873fd273f283fe16ae2a4150cfa35104be422c21b65785c77f468f084847278f76bce3d9179cc2a339809c42e3
23
24 diff --git a/dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild b/dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild
25 new file mode 100644
26 index 000000000000..1e8acc2da743
27 --- /dev/null
28 +++ b/dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild
29 @@ -0,0 +1,55 @@
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 +PLOTLY_PV="5.13.0"
40 +
41 +DESCRIPTION="Browser-based graphing library for Python"
42 +HOMEPAGE="https://plotly.com/python/"
43 +SRC_URI="https://github.com/plotly/plotly.py/archive/refs/tags/v${PLOTLY_PV}.tar.gz -> plotly.py-${PLOTLY_PV}.gh.tar.gz"
44 +S="${WORKDIR}/plotly.py-${PLOTLY_PV}/packages/python/${PN}"
45 +# PyPI tarball does not include the tests, sources are in the same repo as plotly.
46 +
47 +PROPERTIES="test_network"
48 +RESTRICT="test"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +
54 +RDEPEND="
55 + dev-python/plotly[${PYTHON_USEDEP}]
56 + dev-python/requests[${PYTHON_USEDEP}]
57 + dev-python/retrying[${PYTHON_USEDEP}]
58 +"
59 +
60 +BDEPEND="
61 + test? (
62 + dev-python/decorator[${PYTHON_USEDEP}]
63 + dev-python/ipykernel[${PYTHON_USEDEP}]
64 + dev-python/ipython[${PYTHON_USEDEP}]
65 + dev-python/ipywidgets[${PYTHON_USEDEP}]
66 + dev-python/matplotlib[${PYTHON_USEDEP}]
67 + dev-python/numpy[${PYTHON_USEDEP}]
68 + dev-python/pandas[${PYTHON_USEDEP}]
69 + dev-python/requests[${PYTHON_USEDEP}]
70 + dev-python/pytz[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +EPYTEST_DESELECT=(
75 + # URL is somehow wrong
76 + "chart_studio/tests/test_core/test_tools/test_get_embed.py::test_get_valid_embed"
77 + "chart_studio/tests/test_core/test_tools/test_get_embed.py::TestGetEmbed::test_get_embed_url_with_share_key"
78 + "chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py::PlotMPLTest::test_update"
79 + "chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py::TestPresentation::test_expected_pres"
80 +)
81 +
82 +# There are sphinx docs but we are missing a bunch of dependencies.
83 +# distutils_enable_sphinx ../../../doc/apidoc
84 +distutils_enable_tests pytest