mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-python/numpydoc: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST numpydoc-1.10.0.gh.tar.gz 94037 BLAKE2B 356004e4e30634048f9e4adb2b560fde574feac973c59d9becf6bd4bbd4d502c79ca6eaadb21322d13db0882a596e88e89f87d32565a003253b88bc6439c3446 SHA512 bd8becb71fe45f7a0e11bbd3f804c9855b1192ff22acbc0291380c462c493facd2efd6d59e560111ae56132925502d37abc90643db217358f3a8c1138ce7c693
|
||||
DIST numpydoc-1.9.0.gh.tar.gz 91390 BLAKE2B a864a4ebddc7ddab11a4ab6ea949b96a6c2447f6e726867ed0f49aba09a29c51cb130d5b565feeaaa3fb3de8b4e24748fa604e77ff3def7ba0f17d601d8563ff SHA512 7ae73a5bbce11e674fe8ca16e8ddce7914498f97dc8ebe85c26ae0cf240299596c20a6915e3a547a394e0e3f9ae6e9ac0694a2de7baa34918df98f523a8bfdf0
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
diff --git a/numpydoc/validate.py b/numpydoc/validate.py
|
||||
index d0debfa..6d7b369 100644
|
||||
--- a/numpydoc/validate.py
|
||||
+++ b/numpydoc/validate.py
|
||||
@@ -640,9 +640,9 @@ def validate(obj_name, validator_cls=None, **validator_kwargs):
|
||||
# Check if the object is a class and has a docstring in the constructor
|
||||
# Also check if code_obj is defined, as undefined for the AstValidator in validate_docstrings.py.
|
||||
if (
|
||||
- doc.name.endswith(".__init__")
|
||||
- and doc.is_function_or_method
|
||||
+ doc.is_function_or_method
|
||||
and hasattr(doc, "code_obj")
|
||||
+ and doc.name.endswith(".__init__")
|
||||
):
|
||||
cls_name = doc.code_obj.__qualname__.split(".")[0]
|
||||
cls = Validator._load_obj(f"{doc.code_obj.__module__}.{cls_name}")
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${P/_}
|
||||
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
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/sphinx-6[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/numpy/numpydoc/issues/638
|
||||
"${FILESDIR}/${P}-638.patch"
|
||||
)
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# these require Internet (intersphinx)
|
||||
numpydoc/tests/test_full.py::test_MyClass
|
||||
numpydoc/tests/test_full.py::test_my_function
|
||||
# TODO
|
||||
numpydoc/tests/test_validate.py::test_extract_ignore_validation_comments
|
||||
)
|
||||
epytest -o addopts= --pyargs numpydoc
|
||||
}
|
||||
Reference in New Issue
Block a user