mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
app-emulation/cloud-init: Backport package dep fixes
These were changed in upstream commits: 4d2684848722cb2d469ad4fa60999bf81cf7056e - May 2, 2020 - six removed 986f37b017134ced5d9dd38b420350916297002b - Mar 10, 2020 - nose -> pytest 8b4a9bc7b81e61943af873bad92e2133f8275b0b - Aug 9, 2021 - netifaces added Closes: https://github.com/gentoo/gentoo/pull/24980 Signed-off-by: Brett Holman <bholman.devel@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -32,14 +32,13 @@ CDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
test? (
|
||||
${CDEPEND}
|
||||
>=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
@@ -69,8 +68,8 @@ python_prepare_all() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Do not use Makefile target as it does not setup environment correclty
|
||||
esetup.py nosetests -v --where cloudinit --where tests/unittests || die
|
||||
# Do not use Makefile target as it does not setup environment correctly
|
||||
esetup.py pytest -v cloudinit/ tests/unittests || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
|
||||
@@ -32,14 +32,13 @@ CDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
test? (
|
||||
>=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
@@ -69,8 +68,8 @@ python_prepare_all() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Do not use Makefile target as it does not setup environment correclty
|
||||
esetup.py nosetests -v --where cloudinit --where tests/unittests || die
|
||||
# Do not use Makefile target as it does not setup environment correctly
|
||||
esetup.py pytest -v cloudinit tests/unittests || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
|
||||
@@ -33,14 +33,13 @@ CDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
test? (
|
||||
>=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
@@ -59,7 +58,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/22.1-add-support-for-package_upgrade.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests nose
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# Fix location of documentation installation
|
||||
|
||||
Reference in New Issue
Block a user