From 33852a3437afe1c0c617c0931ad892ab12eb7390 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Wed, 1 Feb 2023 14:17:26 -0800 Subject: app-misc/check-jsonschema: Add dep on sphinx-issues Bug: https://bugs.gentoo.org/892858 Signed-off-by: Patrick McLean --- .../check-jsonschema-0.21.0-r1.ebuild | 51 ++++++++++++++++++++++ .../check-jsonschema-0.21.0.ebuild | 50 --------------------- 2 files changed, 51 insertions(+), 50 deletions(-) create mode 100644 app-misc/check-jsonschema/check-jsonschema-0.21.0-r1.ebuild delete mode 100644 app-misc/check-jsonschema/check-jsonschema-0.21.0.ebuild (limited to 'app-misc/check-jsonschema') diff --git a/app-misc/check-jsonschema/check-jsonschema-0.21.0-r1.ebuild b/app-misc/check-jsonschema/check-jsonschema-0.21.0-r1.ebuild new file mode 100644 index 000000000000..f7caec002ba3 --- /dev/null +++ b/app-misc/check-jsonschema/check-jsonschema-0.21.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} pypy3 ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="A CLI and set of pre-commit hooks for jsonschema validation" +HOMEPAGE=" + https://pypi.org/project/check-jsonschema/ + https://github.com/python-jsonschema/check-jsonschema +" +SRC_URI="https://github.com/python-jsonschema/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/responses[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +DOCS=( + README.md + CONTRIBUTING.md + CHANGELOG.rst +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-issues \ + dev-python/furo + +python_prepare_all() { + # relax deps in setup.cfg + sed -r -e 's:([a-zA-Z.-]+)([<>]|==|[<>]=)+.+:\1: ; /importlib-resources/ d' -i setup.cfg || die + + distutils-r1_python_prepare_all +} diff --git a/app-misc/check-jsonschema/check-jsonschema-0.21.0.ebuild b/app-misc/check-jsonschema/check-jsonschema-0.21.0.ebuild deleted file mode 100644 index 26d7ad3e1777..000000000000 --- a/app-misc/check-jsonschema/check-jsonschema-0.21.0.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} pypy3 ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 - -DESCRIPTION="A CLI and set of pre-commit hooks for jsonschema validation" -HOMEPAGE=" - https://pypi.org/project/check-jsonschema/ - https://github.com/python-jsonschema/check-jsonschema -" -SRC_URI="https://github.com/python-jsonschema/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/ruamel-yaml[${PYTHON_USEDEP}] - dev-python/jsonschema[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/click[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - ${RDEPEND} - dev-python/responses[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ) -" - -DOCS=( - README.md - CONTRIBUTING.md - CHANGELOG.rst -) - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - dev-python/furo - -python_prepare_all() { - # relax deps in setup.cfg - sed -r -e 's:([a-zA-Z.-]+)([<>]|==|[<>]=)+.+:\1: ; /importlib-resources/ d' -i setup.cfg || die - - distutils-r1_python_prepare_all -} -- cgit v1.2.3-65-gdbad