# spell-checker:ignore bcond pkgversion buildrequires autosetup PYTHONPATH noarch buildroot bindir sitelib numprocesses clib # All tests require Internet access # to test in mock use: --enable-network --with check # to test in a privileged environment use: # --with check --with privileged_tests %bcond_with check %bcond_with privileged_tests Name: ansible-lint Version: 26.11.1.dev8 Release: 1.20261117092609244948.pr5250.8.g0a486ea1%{?dist} Summary: Ansible-lint checks ansible content for common mistakes License: GPL-3.0-or-later AND MIT URL: https://github.com/ansible/ansible-lint Source0: ansible_lint-26.11.1.dev8.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %if %{with check} # These are required for tests: BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-xdist BuildRequires: python%{python3_pkgversion}-libselinux BuildRequires: git-core %endif Requires: git-core %description Ansible-lint checks ansible content for practices and behaviors that could potentially be improved. %prep %autosetup -n ansible_lint-26.11.1.dev8 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ansiblelint %check # Don't try to import tests that import pytest which isn't available at runtime %pyproject_check_import -e 'ansiblelint.testing*' -e 'ansiblelint.rules.conftest' %if %{with check} %pytest \ -v \ --disable-pytest-warnings \ --numprocesses=auto \ %if %{with privileged_tests} tests %else tests/unit %endif %endif %files -f %{pyproject_files} %{_bindir}/ansible-lint %license COPYING docs/licenses/LICENSE.mit.txt %doc docs/ README.md %changelog * Tue Nov 17 2026 Packit - 26.11.1.dev8-1.20261117092609244948.pr5250.8.g0a486ea1 - fix: avoid injecting the same directory twice in path_inject() (#5214) (Huzaifa Farooq) - fix: correct misplaced keywords in role meta schema (#5195) (Forsyth Famous .O) - chore: retrigger CI (Atishay Kasliwal) - refactor: split fact detection into smaller helpers (Atishay Kasliwal) - chore: add fact names to the cspell dictionary (Atishay Kasliwal) - fix: recognize fully qualified extract and map filter names (Atishay Kasliwal) - feat: add deprecated-top-level-facts rule (Atishay Kasliwal)