diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-09-02 11:08:05 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-09-02 11:52:05 +0100 |
commit | 321ad3fa038c1f71a537cf5a0705b131aaef6357 (patch) | |
tree | 966c16f0a2b0ff2796723a7287fec93a65d917f0 /app-admin/ansible-core | |
parent | media-libs/openh264: Stabilize 2.3.0 ppc64, #867976 (diff) | |
download | gentoo-321ad3fa038c1f71a537cf5a0705b131aaef6357.tar.gz gentoo-321ad3fa038c1f71a537cf5a0705b131aaef6357.tar.bz2 gentoo-321ad3fa038c1f71a537cf5a0705b131aaef6357.zip |
app-admin/ansible-core: switch tests from nose to pytest
Still restricted, as it looks like it will need quite a lot more work
to make it run properly - but at least it will no longer be necessary
to jump through hoops in order to enable py3.11 support.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-admin/ansible-core')
-rw-r--r-- | app-admin/ansible-core/ansible-core-2.13.3.ebuild | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/app-admin/ansible-core/ansible-core-2.13.3.ebuild b/app-admin/ansible-core/ansible-core-2.13.3.ebuild index d4dfeb185432..3f9ae0c36f55 100644 --- a/app-admin/ansible-core/ansible-core-2.13.3.ebuild +++ b/app-admin/ansible-core/ansible-core-2.13.3.ebuild @@ -22,7 +22,6 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="test" RESTRICT="test" RDEPEND=" @@ -39,23 +38,16 @@ RDEPEND=" net-misc/sshpass virtual/ssh " -DEPEND=" +BDEPEND=" >=dev-python/packaging-16.6[${PYTHON_USEDEP}] test? ( - ${RDEPEND} - dev-python/bcrypt[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] - dev-python/passlib[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - dev-vcs/git + dev-python/botocore[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] )" +distutils_enable_tests pytest + python_compile() { export ANSIBLE_SKIP_CONFLICT_CHECK=1 distutils-r1_python_compile } - -python_test() { - nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die -} |