1 |
commit: e6b45e04104520512316e4c96759b0665f4bfbab |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 1 21:20:59 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 1 21:21:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6b45e04 |
7 |
|
8 |
app-admin/ansible-lint: add 5.3.0 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
app-admin/ansible-lint/Manifest | 1 + |
13 |
app-admin/ansible-lint/ansible-lint-5.3.0.ebuild | 48 ++++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/ansible-lint/Manifest b/app-admin/ansible-lint/Manifest |
17 |
index ea0578376e92..0a602eb8be5b 100644 |
18 |
--- a/app-admin/ansible-lint/Manifest |
19 |
+++ b/app-admin/ansible-lint/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ansible-lint-5.2.1.tar.gz 356071 BLAKE2B 70c54114a667ba63c1d285ec8a73a7c3332f89cbdf1b8d4866de86aa2c358e41759ac69188806c715cbd3893a2d0b1123e6b679ed208ce4c40141a40b9f54681 SHA512 9ae1aa775572485aaa68ef127cb2ea2d66cd1057878ac396b1644244a070f05b7920eceec3cdb16523f9fadcbcb5df971f3513d7e4d9cbd6ace1ec4f4d861451 |
22 |
+DIST ansible-lint-5.3.0.tar.gz 355745 BLAKE2B 3f161a91a5cf8f0efedd7a928f55c2680f20e0e35b4d1be466435a65a38e6af0ecff8fe86702a6a71e544925e58a2bb3df758c93c4af8841661c0bb240a7a21d SHA512 862c40472dc00b9685fda62740fbe5b2dfa48adec10322c185eeb436f7dce800a95c478f9eb926f328a501df45a885946bc38190bb28c33ced8edfa17384c0fb |
23 |
|
24 |
diff --git a/app-admin/ansible-lint/ansible-lint-5.3.0.ebuild b/app-admin/ansible-lint/ansible-lint-5.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a5036ce2dc07 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/ansible-lint/ansible-lint-5.3.0.ebuild |
29 |
@@ -0,0 +1,48 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..9} ) |
36 |
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml |
37 |
+ |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+DESCRIPTION="Checks ansible playbooks for practices and behaviour that can be improved" |
41 |
+HOMEPAGE="https://github.com/ansible-community/ansible-lint" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~riscv" |
47 |
+ |
48 |
+# 14 tests fail due to usersandbox denying the executable 'ansible' |
49 |
+# access to $HOME/.ansible. More importantly, some tests (6 as of 5.2.1) |
50 |
+# fail even when run manually with tox. |
51 |
+RESTRICT="test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=app-admin/ansible-2.10[${PYTHON_USEDEP}] |
55 |
+ >=app-admin/ansible-base-2.11.4[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/enrich-1.2.6[${PYTHON_USEDEP}] |
57 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/rich-9.5.1[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/ruamel-yaml-0.15.37[${PYTHON_USEDEP}] |
61 |
+ dev-python/tenacity[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/wcmatch-7.0[${PYTHON_USEDEP}]" |
63 |
+BDEPEND=" |
64 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/setuptools_scm_git_archive-1.0[${PYTHON_USEDEP}] |
66 |
+ test? ( |
67 |
+ >=dev-python/flaky-3.7.0[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/pytest-xdist-2.1.0[${PYTHON_USEDEP}] |
69 |
+ >=dev-util/yamllint-1.25.0[${PYTHON_USEDEP}] |
70 |
+ )" |
71 |
+ |
72 |
+distutils_enable_tests --install pytest |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ optfeature_header "Consider installing the following optional packages:" |
76 |
+ optfeature "letting ${PN} run YAML checks" dev-util/yamllint |
77 |
+} |