55 lines
3.1 KiB
Bash
55 lines
3.1 KiB
Bash
# Template file for 'python3-ansible-lint'
|
|
pkgname=python3-ansible-lint
|
|
version=6.6.1
|
|
revision=1
|
|
wrksrc="${pkgname/python3-/}-${version}"
|
|
build_style=python3-pep517
|
|
# These require ansible-lint installed properly, or they are flaky
|
|
make_check_args="--deselect src/ansiblelint/rules/no_loop_var_prefix.py::test_no_loop_var_prefix
|
|
--deselect test/test_cli_role_paths.py::test_run_inside_role_dir
|
|
--deselect test/test_cli_role_paths.py::test_run_invalid_role_name_from_meta
|
|
--deselect test/test_cli_role_paths.py::test_run_multiple_role_path_no_trailing_slash
|
|
--deselect test/test_cli_role_paths.py::test_run_multiple_role_path_with_trailing_slash
|
|
--deselect test/test_cli_role_paths.py::test_run_playbook
|
|
--deselect test/test_cli_role_paths.py::test_run_role_name_from_meta
|
|
--deselect test/test_cli_role_paths.py::test_run_role_name_invalid
|
|
--deselect test/test_cli_role_paths.py::test_run_role_name_with_prefix
|
|
--deselect test/test_cli_role_paths.py::test_run_role_three_dir_deep
|
|
--deselect test/test_cli_role_paths.py::test_run_single_role_path_no_trailing_slash_module
|
|
--deselect test/test_cli_role_paths.py::test_run_single_role_path_no_trailing_slash_script
|
|
--deselect test/test_cli_role_paths.py::test_run_single_role_path_with_roles_path_env
|
|
--deselect test/test_cli_role_paths.py::test_run_single_role_path_with_trailing_slash
|
|
--deselect test/test_eco.py::test_eco
|
|
--deselect test/test_import_playbook.py::test_task_hook_import_playbook
|
|
--deselect test/test_include_miss_file_with_role.py::test_cases_that_do_not_report
|
|
--deselect test/test_include_miss_file_with_role.py::test_cases_warning_message
|
|
--deselect test/test_main.py::test_call_from_outside_venv
|
|
--deselect test/test_progressive.py::test_validate_progressive_mode_json_output
|
|
--deselect test/test_task_includes.py::test_included_tasks
|
|
--deselect test/test_utils.py::test_cli_auto_detect"
|
|
make_install_target="ansible_lint-*-*-*-*.whl"
|
|
hostmakedepends="python3-wheel python3-setuptools_scm"
|
|
depends="ansible-core python3-yamllint python3-six python3-yaml
|
|
python3-ruamel.yaml python3-tenacity python3-enrich python3-wcmatch
|
|
python3-ansible-compat python3-jsonschema"
|
|
checkdepends="${depends} python3-pytest black python3-flake8 python3-flaky
|
|
python3-mypy pylint python3-pytest-cov python3-pytest-xdist
|
|
python3-pytest-forked python3-filelock"
|
|
short_desc="Linter for Ansible files"
|
|
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
|
# Note about licensing from upstream:
|
|
# The ansible-lint project is distributed as GPLv3 due to use of GPLv3 runtime
|
|
# dependencies, like ansible and yamllint. For historical reasons, its own
|
|
# code-base remains licensed under a more liberal MIT license and any
|
|
# contributions made are accepted as being made under original MIT license.
|
|
license="GPL-3.0-only"
|
|
homepage="https://github.com/ansible-community/ansible-lint"
|
|
distfiles="${PYPI_SITE}/a/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
|
|
checksum=b5b3eae0271fbb5799dd5f8a111aa69ccd97ff2cc45253bd4101bf31b8f6beb7
|
|
make_check_pre="env PYTHONPATH=src"
|
|
|
|
post_patch() {
|
|
vsed -e "/setuptools_scm_git_archive/d" -i pyproject.toml
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
|
}
|