From 170b1f3969b65f1de31dbfcc33ec89550be5c72f Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 10 Jun 2022 09:25:36 +0200 Subject: dev-python/numpydoc: Bump to 1.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/numpydoc/Manifest | 1 + dev-python/numpydoc/numpydoc-1.4.0.ebuild | 51 +++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 dev-python/numpydoc/numpydoc-1.4.0.ebuild (limited to 'dev-python/numpydoc') diff --git a/dev-python/numpydoc/Manifest b/dev-python/numpydoc/Manifest index d6eb28d0c4bd..f58526425ca7 100644 --- a/dev-python/numpydoc/Manifest +++ b/dev-python/numpydoc/Manifest @@ -1 +1,2 @@ DIST numpydoc-1.3.1.gh.tar.gz 70432 BLAKE2B bcf1214625671e89fcffedb7a90b1ef7f5993a43bff5e632e21bde647bb1b1ae1f4d21d4cf653622879121ea72c58486b78266d73b51d239243394b177b80078 SHA512 2b2ba50444765460d2df756c65893e59236bf3e47ab5980ed2279c0f3930bd841c68b2cb1438c3e25d0f2416fe4f2670dba9ebad4809c63a8db479fc8068916c +DIST numpydoc-1.4.0.gh.tar.gz 70041 BLAKE2B 34df315b65a034da1bd4742dbbaef77164eaf16c8e56b0b941c6084bf32c0e116d7b4d9795d936380ea4a92ee73b31d61540ff87ed9c129c193f4ead211b47f2 SHA512 24a267149cd696bac552433cf64353aed6f0a3040127ff7cabc42dc0a44e8d7e0cc99d903a6554249c888ef7198adead5aba20c67b0af2e7c738a391e9a9ef02 diff --git a/dev-python/numpydoc/numpydoc-1.4.0.ebuild b/dev-python/numpydoc/numpydoc-1.4.0.ebuild new file mode 100644 index 000000000000..8b2f2b65ba40 --- /dev/null +++ b/dev-python/numpydoc/numpydoc-1.4.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Sphinx extension to support docstrings in Numpy format" +HOMEPAGE=" + https://numpydoc.readthedocs.io/en/latest/ + https://github.com/numpy/numpydoc/ + https://pypi.org/project/numpydoc/ +" +SRC_URI=" + https://github.com/numpy/numpydoc/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/jinja-2.10[${PYTHON_USEDEP}] + >=dev-python/sphinx-3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:--cov-report= --cov=numpydoc::' setup.cfg || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # these require Internet (intersphinx) + numpydoc/tests/test_full.py::test_MyClass + numpydoc/tests/test_full.py::test_my_function + ) + epytest --pyargs numpydoc +} -- cgit v1.2.3-65-gdbad