diff options
| -rw-r--r-- | dev-python/sphobjinv/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/sphobjinv/sphobjinv-2.3.1.3.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/sphobjinv/Manifest b/dev-python/sphobjinv/Manifest index fbe73f493fed..a498428a8b8c 100644 --- a/dev-python/sphobjinv/Manifest +++ b/dev-python/sphobjinv/Manifest @@ -1 +1,2 @@ DIST sphobjinv-2.3.1.2.gh.tar.gz 1346638 BLAKE2B c7f25caa055557ab4fa31335132b56f40237404925617f6d2f6495e1b10ef06517f3019ea10ef3b77d13e9f5270ce0669126146bfff0725bb9ff65ee3850edee SHA512 de26ba688238d0e26506bd4bc2662ab01f82bf2aa878c8fec98c4b2efdaabe80780a2bf83a9ed528f9c33fa81b1d105a7c4bc1350dd0514ddb81d0ea023b74b1 +DIST sphobjinv-2.3.1.3.gh.tar.gz 1347156 BLAKE2B a6e44b61c3458b1288bd7d5f4c5b9e55821ea299ef4cfee75e42bd3a37919f2c031f5063b16aa22fc9c508057aef49f836948b8da4c49b67ee5396f1234fbab5 SHA512 bfb02f212cc3099ec694b9983d2dce2f38f2e9385821e3ffc077ea6a559844c0c92362effa4da6026cf778a925fc3d5c4ca6ad8d4dc0ccabd3bc64e79dded934 diff --git a/dev-python/sphobjinv/sphobjinv-2.3.1.3.ebuild b/dev-python/sphobjinv/sphobjinv-2.3.1.3.ebuild new file mode 100644 index 000000000000..e9708735738a --- /dev/null +++ b/dev-python/sphobjinv/sphobjinv-2.3.1.3.ebuild @@ -0,0 +1,64 @@ +# 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_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="Sphinx objects.inv Inspection/Manipulation Tool" +HOMEPAGE=" + https://github.com/bskinn/sphobjinv/ + https://pypi.org/project/sphobjinv/ +" +SRC_URI=" + https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/attrs-19.2[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/fuzzywuzzy[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/dictdiffer[${PYTHON_USEDEP}] + dev-python/pytest-check[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + >=dev-python/stdio-mgr-1.0.1[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/timeout-decorator[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + README.rst::README.rst + tests/test_readme.py::test_readme_shell_cmds +) + +src_prepare() { + sed -e '/CLI_TEST_TIMEOUT/s/2/20/' -i tests/test_cli.py || die + + # remove bundled deps + rm -r src/sphobjinv/_vendored || die + sed -i -e 's:sphobjinv[.]_vendored[.]::' src/sphobjinv/*.py || die + + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p check -p rerunfailures -p timeout +} |
