1 |
commit: 321ad3fa038c1f71a537cf5a0705b131aaef6357 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 10:08:05 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 10:52:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=321ad3fa |
7 |
|
8 |
app-admin/ansible-core: switch tests from nose to pytest |
9 |
|
10 |
Still restricted, as it looks like it will need quite a lot more work |
11 |
to make it run properly - but at least it will no longer be necessary |
12 |
to jump through hoops in order to enable py3.11 support. |
13 |
|
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
app-admin/ansible-core/ansible-core-2.13.3.ebuild | 18 +++++------------- |
17 |
1 file changed, 5 insertions(+), 13 deletions(-) |
18 |
|
19 |
diff --git a/app-admin/ansible-core/ansible-core-2.13.3.ebuild b/app-admin/ansible-core/ansible-core-2.13.3.ebuild |
20 |
index d4dfeb185432..3f9ae0c36f55 100644 |
21 |
--- a/app-admin/ansible-core/ansible-core-2.13.3.ebuild |
22 |
+++ b/app-admin/ansible-core/ansible-core-2.13.3.ebuild |
23 |
@@ -22,7 +22,6 @@ fi |
24 |
|
25 |
LICENSE="GPL-3" |
26 |
SLOT="0" |
27 |
-IUSE="test" |
28 |
RESTRICT="test" |
29 |
|
30 |
RDEPEND=" |
31 |
@@ -39,23 +38,16 @@ RDEPEND=" |
32 |
net-misc/sshpass |
33 |
virtual/ssh |
34 |
" |
35 |
-DEPEND=" |
36 |
+BDEPEND=" |
37 |
>=dev-python/packaging-16.6[${PYTHON_USEDEP}] |
38 |
test? ( |
39 |
- ${RDEPEND} |
40 |
- dev-python/bcrypt[${PYTHON_USEDEP}] |
41 |
- dev-python/nose[${PYTHON_USEDEP}] |
42 |
- >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] |
43 |
- dev-python/passlib[${PYTHON_USEDEP}] |
44 |
- dev-python/coverage[${PYTHON_USEDEP}] |
45 |
- dev-vcs/git |
46 |
+ dev-python/botocore[${PYTHON_USEDEP}] |
47 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
48 |
)" |
49 |
|
50 |
+distutils_enable_tests pytest |
51 |
+ |
52 |
python_compile() { |
53 |
export ANSIBLE_SKIP_CONFLICT_CHECK=1 |
54 |
distutils-r1_python_compile |
55 |
} |
56 |
- |
57 |
-python_test() { |
58 |
- nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die |
59 |
-} |