From 6614fcaa34e5dc97a90142314bd99acdc284a11cd83d07dcaf4cd0a80be1b9b2 Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Thu, 6 Oct 2022 09:27:43 +0000 Subject: [PATCH] Accepting request 1008363 from home:ojkastl_buildservice:Branch_systemsmanagement_ansible check/verify/update build and runtime dependencies OBS-URL: https://build.opensuse.org/request/show/1008363 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible-lint?expand=0&rev=7 --- ansible-lint.changes | 5 +++++ ansible-lint.spec | 46 +++++++++++++++++++++++++++----------------- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/ansible-lint.changes b/ansible-lint.changes index 3e6478d..d08badc 100644 --- a/ansible-lint.changes +++ b/ansible-lint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 6 08:39:49 UTC 2022 - Johannes Kastl + +- check/verify/update build and runtime dependencies + ------------------------------------------------------------------- Thu Oct 6 07:09:51 UTC 2022 - Johannes Kastl diff --git a/ansible-lint.spec b/ansible-lint.spec index bbb4323..72fb3e8 100644 --- a/ansible-lint.spec +++ b/ansible-lint.spec @@ -28,35 +28,45 @@ URL: https://github.com/ansible-community/ansible-lint Source0: https://github.com/ansible-community/ansible-lint/archive/v%{version}/ansible-lint-%{version}.tar.gz#/ansible-lint-%{version}.tar.gz BuildArch: noarch BuildRequires: python-rpm-macros -BuildRequires: python3-PyYAML BuildRequires: python3-pip -BuildRequires: python3-six BuildRequires: python3-wheel +BuildRequires: fdupes + +# https://github.com/ansible/ansible-lint/blob/main/setup.cfg#L98 # SECTION tests -BuildRequires: python3-pytest-xdist -BuildRequires: python3-flaky -BuildRequires: python3-packaging -BuildRequires: python3-tenacity -BuildRequires: python3-yamllint >= 1.25.0 -#BuildRequires: git -BuildRequires: python3-enrich >= 1.2.6 -BuildRequires: python3-ansible-compat >= 2.0.2 -BuildRequires: python3-black -BuildRequires: python3-flake8 +BuildRequires: python3-flaky >= 3.7.0 +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-xdist >= 2.1.0 +BuildRequires: python3-psutil +BuildRequires: python3-black >= 22.1.0 BuildRequires: python3-mypy BuildRequires: python3-pylint -BuildRequires: python3-pytest-cov +BuildRequires: python3-flake8 +# /SECTION + +# Add runtime requirements (unless required for tests) +# to make sure this only builds if they are present +BuildRequires: ansible-core >= 2.12 +BuildRequires: python3-ansible-compat >= 2.2.1 +BuildRequires: python3-enrich >= 1.2.6 +BuildRequires: python3-jsonschema >= 4.9.0 +BuildRequires: python3-packaging +BuildRequires: python3-PyYAML BuildRequires: python3-rich >= 9.5.1 BuildRequires: python3-ruamel.yaml >= 0.15.37 +BuildRequires: python3-six +BuildRequires: python3-tenacity BuildRequires: python3-wcmatch >= 7.0 -# /SECTION -BuildRequires: ansible-core >= 2.12 -BuildRequires: fdupes +BuildRequires: python3-yamllint >= 1.25.0 + +# https://github.com/ansible/ansible-lint/blob/main/setup.cfg#L69 Requires: ansible-core >= 2.12 -Requires: python3-PyYAML -Requires: python3-ansible-compat >= 2.0.2 +Requires: python3-ansible-compat >= 2.2.1 +Requires: python3-black >= 22.1.0 Requires: python3-enrich >= 1.2.6 +Requires: python3-jsonschema >= 4.9.0 Requires: python3-packaging +Requires: python3-PyYAML Requires: python3-rich >= 9.5.1 Requires: python3-ruamel.yaml >= 0.15.37 Requires: python3-six