Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/bokeh/
Date: Thu, 22 Apr 2021 19:40:41
Message-Id: 1619120427.4a89de2cff3971f233ada8c4d658af8c302dc504.epsilon-0@gentoo
1 commit: 4a89de2cff3971f233ada8c4d658af8c302dc504
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Apr 22 19:40:27 2021 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Apr 22 19:40:27 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4a89de2c
7
8 dev-python/bokeh: version bump to 2.3.1
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 dev-python/bokeh/bokeh-2.3.1.ebuild | 85 +++++++++++++++++++++++++++++++++++++
14 1 file changed, 85 insertions(+)
15
16 diff --git a/dev-python/bokeh/bokeh-2.3.1.ebuild b/dev-python/bokeh/bokeh-2.3.1.ebuild
17 new file mode 100644
18 index 000000000..c3f35c24c
19 --- /dev/null
20 +++ b/dev-python/bokeh/bokeh-2.3.1.ebuild
21 @@ -0,0 +1,85 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python3_{6..9} )
28 +DISTUTILS_USE_SETUPTOOLS=rdepend
29 +DISTUTILS_IN_SOURCE_BUILD=1
30 +inherit distutils-r1 optfeature
31 +
32 +DESCRIPTION="Statistical and interactive HTML plots for Python"
33 +HOMEPAGE="https://bokeh.org/"
34 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz
35 + https://raw.githubusercontent.com/bokeh/bokeh/${PV}/conftest.py -> conftest-${P}.py
36 +"
37 +
38 +LICENSE="BSD"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +# upstream authoritative dependencies
43 +# https://github.com/bokeh/bokeh/blob/master/conda.recipe/meta.yaml
44 +RDEPEND="
45 + dev-python/jinja[${PYTHON_USEDEP}]
46 + dev-python/numpy[${PYTHON_USEDEP}]
47 + dev-python/packaging[${PYTHON_USEDEP}]
48 + dev-python/pillow[${PYTHON_USEDEP}]
49 + dev-python/pyparsing[${PYTHON_USEDEP}]
50 + dev-python/python-dateutil[${PYTHON_USEDEP}]
51 + dev-python/pyyaml[${PYTHON_USEDEP}]
52 + dev-python/requests[${PYTHON_USEDEP}]
53 + dev-python/six[${PYTHON_USEDEP}]
54 + dev-python/typing-extensions[${PYTHON_USEDEP}]
55 + >=www-servers/tornado-5[${PYTHON_USEDEP}]
56 +"
57 +BDEPEND="
58 + test? (
59 + dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
60 + dev-python/flaky[${PYTHON_USEDEP}]
61 + dev-python/ipython_genutils[${PYTHON_USEDEP}]
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + dev-python/networkx[${PYTHON_USEDEP}]
64 + dev-python/nbconvert[${PYTHON_USEDEP}]
65 + dev-python/nbformat[${PYTHON_USEDEP}]
66 + dev-python/pydot[${PYTHON_USEDEP}]
67 + dev-python/pytz[${PYTHON_USEDEP}]
68 + dev-python/scipy[${PYTHON_USEDEP}]
69 + dev-python/selenium[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +distutils_enable_tests pytest
74 +
75 +python_prepare_all(){
76 + cp "${DISTDIR}"/conftest-${P}.py "${S}"/conftest.py || die
77 + distutils-r1_python_prepare_all
78 +}
79 +
80 +python_test() {
81 + # disable tests having network calls
82 + local SKIP_TESTS=" \
83 + not (test___init__ and TestWarnings and test_filters) and \
84 + not (test_json__subcommands and test_no_script) and \
85 + not (test_standalone and Test_autoload_static) and \
86 + not test_nodejs_compile_javascript and \
87 + not test_nodejs_compile_less and \
88 + not test_inline_extension and \
89 + not (test_model and test_select) and \
90 + not test_tornado__server and \
91 + not test_client_server and \
92 + not test_webdriver and \
93 + not test_export and \
94 + not test_server and \
95 + not test_bundle and \
96 + not test_ext \
97 + "
98 + pytest -m "not sampledata" tests/unit -k \
99 + "${SKIP_TESTS}" -vv || die "unittests fail with ${EPYTHON}"
100 +}
101 +
102 +pkg_postinst() {
103 + optfeature "integration with amazon S3" dev-python/boto
104 + optfeature "pypi integration to publish packages" dev-python/twine
105 + optfeature "js library usage" net-libs/nodejs
106 +}