mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-13 04:58:06 -07:00
The result was achieved via the following pipeline:
pkgcheck scan -c RestrictTestCheck -R FormatReporter \
--format '{category}/{package}/{package}-{version}.ebuild' |
xargs -n32 grep -L RESTRICT |
xargs -n32 sed -i -e '/^IUSE=.*test/aRESTRICT="!test? ( test )"'
The resulting metadata was compared before and after the change.
Few Go ebuilds had to be fixed manually due to implicit RESTRICT=strip
added by the eclass. Two ebuilds have to be fixed because of multiline
IUSE.
Suggested-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13942
Signed-off-by: Michał Górny <mgorny@gentoo.org>
41 lines
914 B
Bash
41 lines
914 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
|
|
|
|
inherit distutils-r1 git-r3
|
|
|
|
DESCRIPTION="Python lib/cli for JSON/YAML schema validation"
|
|
HOMEPAGE="https://pypi.org/project/pykwalify/ https://github.com/Grokzen/pykwalify"
|
|
SRC_URI=""
|
|
EGIT_REPO_URI="https://github.com/Grokzen/pykwalify.git"
|
|
|
|
SLOT="0"
|
|
LICENSE="MIT"
|
|
KEYWORDS=""
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
>=dev-python/docopt-0.6.2[${PYTHON_USEDEP}]
|
|
>=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
|
|
>=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
"
|
|
DEPEND="
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
test? (
|
|
${RDEPEND}
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
dev-python/testfixtures[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
PATCHES=( "${FILESDIR}"/${PN}-1.4.0-S.patch )
|
|
|
|
python_test() {
|
|
pytest -vv || die
|
|
}
|