diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-10 03:27:06 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-10 03:27:06 +0000 |
commit | aa61828f226f3b30e6939408847d914a145fdf35 (patch) | |
tree | c09d7d7e544e04a439d628fc1892a708cd63b161 /app-admin/ansible-lint/ansible-lint-6.8.6.ebuild | |
parent | 59e0aee35a7b9aeeaeca646e265c3f8ad2d1bb49 (diff) |
gentoo auto-resync : 10:11:2022 - 03:27:06
Diffstat (limited to 'app-admin/ansible-lint/ansible-lint-6.8.6.ebuild')
-rw-r--r-- | app-admin/ansible-lint/ansible-lint-6.8.6.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/app-admin/ansible-lint/ansible-lint-6.8.6.ebuild b/app-admin/ansible-lint/ansible-lint-6.8.6.ebuild new file mode 100644 index 000000000000..df6b0f93eebd --- /dev/null +++ b/app-admin/ansible-lint/ansible-lint-6.8.6.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Checks ansible playbooks for practices and behaviour that can be improved" +HOMEPAGE="https://github.com/ansible/ansible-lint" +SRC_URI="https://github.com/ansible/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + >=app-admin/ansible-core-2.12.0[${PYTHON_USEDEP}] + >=dev-python/ansible-compat-2.2.4[${PYTHON_USEDEP}] + >=dev-python/black-22.1.0[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.9.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/rich-9.5.1[${PYTHON_USEDEP}] + >=dev-python/ruamel-yaml-0.15.37[${PYTHON_USEDEP}] + >=dev-python/wcmatch-7.0[${PYTHON_USEDEP}] + >=dev-util/yamllint-1.25.0[${PYTHON_USEDEP}]" +BDEPEND=" + >=dev-python/setuptools_scm-3.5.0[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm_git_archive-1.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/flaky-3.7.0[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + >=dev-python/pytest-plus-0.2[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-2.5.0[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/${PN}-6.8.6_test-module-check.patch +) + +# Skip problematic tests: +# - test_rules_id_format has been giving an internal error since 6.5.4 or so (TODO: follow this up with upstream) +# - similar problem with test_example_custom_module and 6.8.6 +# - test_call_from_outside_venv doesn't play nicely with the sandbox +# - all the others require Internet access, mostly in order to access Ansible Galaxy +EPYTEST_DESELECT=( + test/test_ansiblesyntax.py::test_null_tasks + test/test_cli_role_paths.py::test_run_playbook_github + test/test_eco.py + test/test_examples.py::test_example_custom_module + test/test_examples.py::test_custom_kinds + test/test_import_playbook.py::test_task_hook_import_playbook + test/test_list_rules.py::test_list_rules_includes_opt_in_rules + test/test_list_rules.py::test_list_rules_with_format_option + test/test_list_rules.py::test_list_tags_includes_opt_in_rules + test/test_main.py::test_call_from_outside_venv + test/test_prerun.py::test_install_collection + test/test_prerun.py::test_prerun_reqs_v1 + test/test_prerun.py::test_prerun_reqs_v2 + test/test_prerun.py::test_require_collection_wrong_version + test/test_profiles.py::test_profile_listing + test/test_rules_collection.py::test_rich_rule_listing + test/test_rules_collection.py::test_rules_id_format + test/test_skip_inside_yaml.py::test_role_meta + test/test_utils.py::test_cli_auto_detect + test/test_utils.py::test_template_lookup + test/test_verbosity.py::test_default_verbosity +) + +distutils_enable_tests pytest + +# Test suite fails to start without this. Bug in the eclass, maybe? +python_test() { + epytest test +} |