2020-01-21 15:46:16 +01:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
2020-03-28 11:45:40 +01:00
|
|
|
PYTHON_COMPAT=( python3_{6,7} )
|
2020-01-21 15:46:16 +01:00
|
|
|
|
|
|
|
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
|
|
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="Sphinx objects.inv Inspection/Manipulation Tool"
|
2020-03-27 18:36:04 +01:00
|
|
|
HOMEPAGE="
|
|
|
|
|
https://github.com/bskinn/sphobjinv
|
|
|
|
|
https://pypi.org/project/sphobjinv
|
|
|
|
|
"
|
|
|
|
|
SRC_URI="https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2020-01-21 15:46:16 +01:00
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
|
KEYWORDS="~amd64 ~x86 "
|
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
|
|
RDEPEND="
|
2020-03-31 17:17:16 +02:00
|
|
|
>=dev-python/attrs-17.4[${PYTHON_USEDEP}]
|
2020-01-21 15:46:16 +01:00
|
|
|
dev-python/certifi[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/jsonschema[${PYTHON_USEDEP}]"
|
|
|
|
|
|
2020-03-27 18:36:04 +01:00
|
|
|
DEPEND="
|
|
|
|
|
test? (
|
2020-03-31 17:17:16 +02:00
|
|
|
>=dev-python/pytest-4.4.0[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/pytest-ordering[${PYTHON_USEDEP}]
|
2020-03-27 18:36:04 +01:00
|
|
|
dev-python/pytest-subtests[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
2020-03-31 17:17:16 +02:00
|
|
|
dev-python/sphinx-issues[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
|
|
|
|
|
>=dev-python/stdio-mgr-1.0.1[${PYTHON_USEDEP}]
|
2020-03-27 18:36:04 +01:00
|
|
|
dev-python/timeout-decorator[${PYTHON_USEDEP}]
|
|
|
|
|
)
|
|
|
|
|
"
|
2020-01-21 15:46:16 +01:00
|
|
|
|
2020-03-31 17:17:16 +02:00
|
|
|
#it may require sphinx==2.3.1
|
2020-02-10 15:05:09 +01:00
|
|
|
distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme dev-python/sphinx-issues
|
2020-01-21 15:46:16 +01:00
|
|
|
distutils_enable_tests pytest
|
|
|
|
|
|
2020-02-10 15:05:09 +01:00
|
|
|
python_prepare_all() {
|
|
|
|
|
# not sure why this fails
|
|
|
|
|
rm tests/test_flake8_ext.py || die
|
|
|
|
|
|
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-21 15:46:16 +01:00
|
|
|
python_test() {
|
2020-02-10 15:05:09 +01:00
|
|
|
pytest -vv tests || die "Tests fail with ${EPYTHON}"
|
2020-01-21 15:46:16 +01:00
|
|
|
}
|