Diff oct2py-4.0.6-r1 with a oct2py-5.5.1

/usr/portage/dev-python/oct2py/oct2py-5.5.1.ebuild 2023-10-09 14:52:30.316368371 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_7 )
7

  
8
inherit distutils-r1
6
PYTHON_COMPAT=( python3_{9..11} )
7
DISTUTILS_USE_PEP517=setuptools
8
inherit distutils-r1 pypi
9 9

  
10 10
DESCRIPTION="Python to GNU Octave bridge"
11 11
HOMEPAGE="
12 12
	https://github.com/blink1073/oct2py
13
	https://blink1073.github.io/oct2py/"
14
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
	https://blink1073.github.io/oct2py/
14
"
15 15

  
16 16
LICENSE="MIT"
17 17
SLOT="0"
18 18
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19
IUSE="doc examples test"
20
RESTRICT="!test? ( test )"
19
IUSE="examples"
21 20

  
22 21
RDEPEND="
23
	>=dev-python/numpy-1.11[${PYTHON_USEDEP}]
24
	dev-python/octave_kernel[${PYTHON_USEDEP}]
25
	>=sci-libs/scipy-0.17[${PYTHON_USEDEP}]
26
"
27
DEPEND="${RDEPEND}
28
	doc? (
29
		dev-python/numpydoc[${PYTHON_USEDEP}]
30
		dev-python/sphinx[${PYTHON_USEDEP}]
31
		dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]
32
	)
22
	>=dev-python/numpy-1.12[${PYTHON_USEDEP}]
23
	>=dev-python/octave_kernel-0.34.0[${PYTHON_USEDEP}]
24
	>=dev-python/scipy-0.17[${PYTHON_USEDEP}]"
25
BDEPEND="
33 26
	test? (
34
		dev-python/pytest[${PYTHON_USEDEP}]
35 27
		dev-python/ipython[${PYTHON_USEDEP}]
36
	)
37
"
38
python_compile_all() {
39
	if use doc; then
40
		sphinx-build docs html || die
41
		HTML_DOCS=( html/. )
42
	fi
43
}
44

  
45
python_test() {
46
	cd "${BUILD_DIR}/lib" || die
47
	py.test -v -v || die
48
}
28
		dev-python/nbconvert[${PYTHON_USEDEP}]
29
		dev-python/pandas[${PYTHON_USEDEP}]
30
	)"
31

  
32
EPYTEST_DESELECT=(
33
	# No graphics toolkit available: 743589
34
	"oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_plot"
35
)
36

  
37
distutils_enable_sphinx docs/source \
38
	dev-python/numpydoc dev-python/sphinx-bootstrap-theme dev-python/sphinx-rtd-theme
39
distutils_enable_tests pytest
40

  
41
PATCHES=( "${FILESDIR}"/${PN}-5.2.0-mask-pkg-load-test.patch )
49 42

  
50 43
python_install_all() {
51 44
	distutils-r1_python_install_all
45

  
52 46
	if use examples; then
53 47
		docinto examples
54 48
		dodoc -r example/.
Thank you!