# 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: 25.11.2.dev18 Release: 1.20251202130922166895.pr4860.18.g1a1ecb6b%{?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-25.11.2.dev18.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-25.11.2.dev18 %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 Dec 02 2025 Packit - 25.11.2.dev18-1.20251202130922166895.pr4860.18.g1a1ecb6b - Additional logging for test (Bradley A. Thornton) - chore: auto fixes from pre-commit.com hooks (pre-commit-ci[bot]) - Test biome fixes (Alison Hart) - chore: auto fixes from pre-commit.com hooks (pre-commit-ci[bot]) - hook version (Bradley A. Thornton) - hook version (Bradley A. Thornton) - chore: auto fixes from pre-commit.com hooks (pre-commit-ci[bot]) - update hook (Bradley A. Thornton) - Add hook (Bradley A. Thornton) - chore: auto fixes from pre-commit.com hooks (pre-commit-ci[bot]) - representer (Bradley A. Thornton) - tombi ver (Bradley A. Thornton) - update pytest pyproject section (Bradley A. Thornton) - speeling fix (Bradley A. Thornton) - chore: auto fixes from pre-commit.com hooks (pre-commit-ci[bot]) - chore: Remove cffi, importlib-metadata, reduce core lower bound (Bradley A. Thornton) - chore: Remove cffi, importlib-metadata, reduce core lower bound (Bradley A. Thornton) - chore: Remove cffi, importlib-metadata, reduce core lower bound (Bradley A. Thornton)