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/oct2py/
Date: Tue, 27 Sep 2022 15:26:55
Message-Id: 1664292400.799e36433a847d3fd98c32f3de67576ecf22dcfd.andrewammerlaan@gentoo
1 commit: 799e36433a847d3fd98c32f3de67576ecf22dcfd
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 15:24:51 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 15:26:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=799e3643
7
8 dev-python/oct2py: add 5.5.1, enable py3.10
9
10 Closes: https://bugs.gentoo.org/743589
11 Closes: https://bugs.gentoo.org/845768
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 dev-python/oct2py/Manifest | 1 +
15 dev-python/oct2py/oct2py-5.5.1.ebuild | 52 +++++++++++++++++++++++++++++++++++
16 2 files changed, 53 insertions(+)
17
18 diff --git a/dev-python/oct2py/Manifest b/dev-python/oct2py/Manifest
19 index 2c0627be5fd8..ce03848ed007 100644
20 --- a/dev-python/oct2py/Manifest
21 +++ b/dev-python/oct2py/Manifest
22 @@ -1 +1,2 @@
23 DIST oct2py-5.2.0.tar.gz 436128 BLAKE2B 674bd034a44aa9cdb5fd4258c96665fda1b1d79a13ae9fa8d36d168e39385a978ed75bf8748ecdd53f57720785ea8e6c5ffd85d81f3b3c307a748fbc8d328a86 SHA512 55c2ee68b4fd73a8901fa2f7f67fefde5fa37d5070434aee03bfa2a746ff5179f51ccb96541a112e416438eb912caa81e040a5a1cbcbfac36b0285d496ac96fd
24 +DIST oct2py-5.5.1.tar.gz 442518 BLAKE2B c0a645464b64d04137f53f3c15bcd90d1df193d7dd7e955cf1e90b5d279091cc16b3052321a1788b6a382ad8759db1619b0a20d117c627d88abe75d13aeb62e3 SHA512 4bd81fc493d9c0b602bf254f7f8bcf5d2024c5c1004fd8a26d94608eb0c802af44d74efb2f2ff941cff89be5265136d987e9a8fc9c4ab987da513d57b291ad2e
25
26 diff --git a/dev-python/oct2py/oct2py-5.5.1.ebuild b/dev-python/oct2py/oct2py-5.5.1.ebuild
27 new file mode 100644
28 index 000000000000..4c4055e2f6f3
29 --- /dev/null
30 +++ b/dev-python/oct2py/oct2py-5.5.1.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +DISTUTILS_USE_PEP517=setuptools
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Python to GNU Octave bridge"
42 +HOMEPAGE="
43 + https://github.com/blink1073/oct2py
44 + https://blink1073.github.io/oct2py/
45 +"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="examples"
52 +
53 +RDEPEND="
54 + >=dev-python/numpy-1.12[${PYTHON_USEDEP}]
55 + >=dev-python/octave_kernel-0.34.0[${PYTHON_USEDEP}]
56 + >=dev-python/scipy-0.17[${PYTHON_USEDEP}]"
57 +BDEPEND="
58 + test? (
59 + dev-python/ipython[${PYTHON_USEDEP}]
60 + dev-python/nbconvert[${PYTHON_USEDEP}]
61 + dev-python/pandas[${PYTHON_USEDEP}]
62 + )"
63 +
64 +EPYTEST_DESELECT=(
65 + # No graphics toolkit available: 743589
66 + "oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_plot"
67 +)
68 +
69 +distutils_enable_sphinx docs/source \
70 + dev-python/numpydoc dev-python/sphinx-bootstrap-theme dev-python/sphinx_rtd_theme
71 +distutils_enable_tests pytest
72 +
73 +PATCHES=( "${FILESDIR}"/${PN}-5.2.0-mask-pkg-load-test.patch )
74 +
75 +python_install_all() {
76 + distutils-r1_python_install_all
77 +
78 + if use examples; then
79 + docinto examples
80 + dodoc -r example/.
81 + docompress -x /usr/share/doc/${PF}/examples
82 + fi
83 +}