Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/ansible-lint/files/, app-admin/ansible-lint/
Date: Wed, 21 Sep 2022 18:33:28
Message-Id: 1663785191.fdd3f5eb1948b4962f53216630c8dfefa58f4c68.marecki@gentoo
1 commit: fdd3f5eb1948b4962f53216630c8dfefa58f4c68
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 21 17:58:08 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 21 18:33:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdd3f5eb
7
8 app-admin/ansible-lint: drop 6.4.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-6.4.0.ebuild | 75 ----------------------
14 .../ansible-lint-6.0.2_test-module-check.patch | 23 -------
15 3 files changed, 99 deletions(-)
16
17 diff --git a/app-admin/ansible-lint/Manifest b/app-admin/ansible-lint/Manifest
18 index a2e63a13be00..9021b8b0133c 100644
19 --- a/app-admin/ansible-lint/Manifest
20 +++ b/app-admin/ansible-lint/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST ansible-lint-6.4.0.gh.tar.gz 235346 BLAKE2B a2f55e6f4df739dccb011225f0a660978a9dfdbcc6e45cee2eef12467482c471d8700bb1bfad87e03eb1c4f21291307db5dc174e2440370ca11368f6ad6d195d SHA512 75e30a325a5c62f64066925b99e691886e299e029adc78fdceaa5eb23a74a46408793479e7c54c312d93e0a62d190b34f1e7614dec31a94822d39a231796e9df
23 DIST ansible-lint-6.5.2.gh.tar.gz 248425 BLAKE2B 02fe3f0cb410831ee7913c5f5ae434678ff183f9c60f0355988d69b516324513fd417439f9ceee4a38192c1e593d7bc00c8fd1aafdff6ba904cdb4ba56257657 SHA512 36a8d7b746bbb0c0f4d85a63180432b9165b1e59ff9da07f6b9477aa02d8998c5c682a317a04c4971a08f0691a10f420d9fd0e7d396d7d1b7f49979c7faf41f5
24 DIST ansible-lint-6.6.1.gh.tar.gz 272235 BLAKE2B 50d014a919b7e915aff541b7be401f287ac990ec3dc435af2356143434fb27619e2e9ebad4a6b0ed57d9b0c1972137c34d08b603eda7f8dba49359d209da2e0a SHA512 bd6c2b695ba65e808f7773deef11bd51693b0343dc356788a87761810295fad32114bfb6f8df8eef69a13702b136f1c1d02b1a9f41c43c6e64174842ec67124f
25
26 diff --git a/app-admin/ansible-lint/ansible-lint-6.4.0.ebuild b/app-admin/ansible-lint/ansible-lint-6.4.0.ebuild
27 deleted file mode 100644
28 index bc3e252daa8c..000000000000
29 --- a/app-admin/ansible-lint/ansible-lint-6.4.0.ebuild
30 +++ /dev/null
31 @@ -1,75 +0,0 @@
32 -# Copyright 1999-2022 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -PYTHON_COMPAT=( python3_{8..10} )
38 -DISTUTILS_USE_PEP517=setuptools
39 -
40 -inherit distutils-r1
41 -
42 -DESCRIPTION="Checks ansible playbooks for practices and behaviour that can be improved"
43 -HOMEPAGE="https://github.com/ansible/ansible-lint"
44 -# PyPI tarballs do not contain all the data files needed by the tests
45 -SRC_URI="https://github.com/ansible/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
46 -
47 -LICENSE="MIT"
48 -SLOT="0"
49 -KEYWORDS="~amd64 ~riscv"
50 -
51 -RDEPEND="
52 - >=app-admin/ansible-core-2.12.0[${PYTHON_USEDEP}]
53 - >=dev-python/ansible-compat-2.1.0[${PYTHON_USEDEP}]
54 - >=dev-python/enrich-1.2.6[${PYTHON_USEDEP}]
55 - >=dev-python/jsonschema-4.8.0[${PYTHON_USEDEP}]
56 - dev-python/packaging[${PYTHON_USEDEP}]
57 - dev-python/pyyaml[${PYTHON_USEDEP}]
58 - >=dev-python/rich-9.5.1[${PYTHON_USEDEP}]
59 - >=dev-python/ruamel-yaml-0.15.37[${PYTHON_USEDEP}]
60 - >=dev-python/wcmatch-7.0[${PYTHON_USEDEP}]
61 - >=dev-util/yamllint-1.25.0[${PYTHON_USEDEP}]"
62 -BDEPEND="
63 - >=dev-python/setuptools_scm-3.5.0[${PYTHON_USEDEP}]
64 - >=dev-python/setuptools_scm_git_archive-1.0[${PYTHON_USEDEP}]
65 - test? (
66 - >=dev-python/flaky-3.7.0[${PYTHON_USEDEP}]
67 - >=dev-python/pytest-plus-0.2[${PYTHON_USEDEP}]
68 - >=dev-python/pytest-xdist-2.5.0[${PYTHON_USEDEP}]
69 - )"
70 -
71 -PATCHES=(
72 - "${FILESDIR}"/${PN}-6.0.2_test-module-check.patch
73 -)
74 -
75 -# Skip problematic tests:
76 -# - test_call_from_outside_venv doesn't play nicely with the sandbox
77 -# - all the others require Internet access, mostly in order to access Ansible Galaxy
78 -EPYTEST_DESELECT=(
79 - test/test_cli_role_paths.py::test_run_playbook_github
80 - test/test_eco.py
81 - test/test_examples.py::test_custom_kinds
82 - test/test_import_playbook.py::test_task_hook_import_playbook
83 - test/test_list_rules.py::test_list_rules_includes_opt_in_rules
84 - test/test_list_rules.py::test_list_rules_with_format_option
85 - test/test_list_rules.py::test_list_tags_includes_opt_in_rules
86 - test/test_main.py::test_call_from_outside_venv
87 - test/test_prerun.py::test_install_collection
88 - test/test_prerun.py::test_prerun_reqs_v1
89 - test/test_prerun.py::test_prerun_reqs_v2
90 - test/test_prerun.py::test_require_collection_wrong_version
91 - test/test_profiles.py::test_profile_listing
92 - test/test_rules_collection.py::test_rich_rule_listing
93 - test/test_utils.py::test_cli_auto_detect
94 - test/test_utils.py::test_template_lookup
95 - test/test_verbosity.py::test_default_verbosity
96 -)
97 -
98 -distutils_enable_tests pytest
99 -
100 -python_test() {
101 - # As of 6.2.1, without this the test suite still gets confused by the presence of ansible-lint modules
102 - # in both ${ED} and ${S}.
103 - cd "${S}" || die
104 -
105 - epytest test
106 -}
107
108 diff --git a/app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch b/app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch
109 deleted file mode 100644
110 index 4288bb897c1e..000000000000
111 --- a/app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch
112 +++ /dev/null
113 @@ -1,23 +0,0 @@
114 -Let the package managers handle dependencies, m'kay?
115 -
116 ---- a/conftest.py
117 -+++ b/conftest.py
118 -@@ -3,18 +3,6 @@
119 - import os
120 - import sys
121 -
122 --# checking if user is running pytest without installing test dependencies:
123 --missing = []
124 --for module in ["ansible", "black", "flake8", "flaky", "mypy", "pylint", "pytest_cov"]:
125 -- if not importlib.util.find_spec(module):
126 -- missing.append(module)
127 --if missing:
128 -- print(
129 -- f"FATAL: Missing modules: {', '.join(missing)} -- probably you missed installing test requirements with: pip install -e '.[test]'",
130 -- file=sys.stderr,
131 -- )
132 -- sys.exit(1)
133 --
134 -
135 - os.environ["NO_COLOR"] = "1"
136 - pytest_plugins = ["ansiblelint.testing.fixtures"]