diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-10 21:21:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-10 21:21:18 +0000 |
commit | b118032096b3380de251b5de2466f5198fd2930a (patch) | |
tree | 992376912dd2522e0078f8350735c14bd0b77149 /dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc13.ebuild | |
parent | 177349fb1459039cc30cb8e3936af4117d038c16 (diff) |
gentoo auto-resync : 10:12:2022 - 21:21:18
Diffstat (limited to 'dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc13.ebuild')
-rw-r--r-- | dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc13.ebuild | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc13.ebuild b/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc13.ebuild deleted file mode 100644 index a998aed2c79c..000000000000 --- a/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc13.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 2020-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="The new generation of the pytest-salt Plugin" -HOMEPAGE="https://github.com/saltstack/pytest-salt-factories" -SRC_URI="https://github.com/saltstack/${PN}/archive/${PV//_/}.tar.gz -> ${P}.tar.gz" -S=${WORKDIR}/${PN}-${PV//_/} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" -IUSE="test" - -RDEPEND=" - dev-python/attrs[${PYTHON_USEDEP}] - dev-python/pytest-tempdir[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}] - dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] - dev-python/pytest-skip-markers[${PYTHON_USEDEP}] - dev-python/pytest-system-statistics[${PYTHON_USEDEP}] - dev-python/pytest-shell-utilities[${PYTHON_USEDEP}] - dev-python/pyzmq[${PYTHON_USEDEP}] - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - >=app-admin/salt-3001.0[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( - dev-python/pyfakefs[${PYTHON_USEDEP}] - dev-python/pytest-subtests[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}/pytest-salt-factories-1.0.0_rc13-tests.patch" -) - -distutils_enable_tests --install pytest - -python_prepare_all() { - sed -r -e "s:use_scm_version=True:version='${PV}', name='${PN//-/.}':" -i setup.py || die - sed -r -e '/(setuptools|setup_requires)/ d' -i setup.cfg || die - - sed -i 's:tool.setuptools_scm:tool.disabled:' pyproject.toml || die - printf '__version__ = "%s"\n' "${PV}" > src/saltfactories/version.py || die - distutils-r1_python_prepare_all -} - -python_test() { - local tempdir - - # ${T} is too long a path for the tests to work - tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" - addwrite "${tempdir}" - - distutils_install_for_testing --via-root - - ( - cleanup() { rm -rf "${tempdir}" || die; } - - trap cleanup EXIT - env SHELL="/bin/bash" TMPDIR="${tempdir}" \ - pytest -vv -x || die "Tests failed with ${EPYTHON}" - ) -} |