From 871dbbd176876feaaaa09e8efe40c6fb2bdd939f0e014b9abe882fbd469830dc Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Wed, 29 May 2024 11:10:52 +0000 Subject: [PATCH] Accepting request 1177353 from home:jbaier_cz:branches:systemsmanagement:ansible - update Requires to include new dependency - fix dynamic requirements inclusion OBS-URL: https://build.opensuse.org/request/show/1177353 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible-lint?expand=0&rev=53 --- ansible-lint.changes | 6 ++++++ ansible-lint.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ansible-lint.changes b/ansible-lint.changes index e267b77..169757e 100644 --- a/ansible-lint.changes +++ b/ansible-lint.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 28 11:51:56 UTC 2024 - Jan Baier + +- update Requires to include new dependency +- fix dynamic requirements inclusion + ------------------------------------------------------------------- Sat May 18 08:43:45 UTC 2024 - Johannes Kastl diff --git a/ansible-lint.spec b/ansible-lint.spec index c533a46..464e210 100644 --- a/ansible-lint.spec +++ b/ansible-lint.spec @@ -92,6 +92,7 @@ Requires: %{ansible_python}-black >= 23.10.1 Requires: %{ansible_python}-bracex >= 2.2.1 Requires: %{ansible_python}-enrich >= 1.2.7 Requires: %{ansible_python}-filelock >= 3.3.0 +Requires: %{ansible_python}-importlib-metadata Requires: %{ansible_python}-jsonschema >= 4.17.3 Requires: %{ansible_python}-packaging >= 23.1 Requires: %{ansible_python}-PyYAML >= 6.0.1 @@ -108,7 +109,7 @@ Checks playbooks for practices and behavior that could potentially be improved. %prep %setup -n %{name}-%{version} -sed -i '/^dynamic/d' pyproject.toml +sed -i '/^dynamic/ s/"version", //' pyproject.toml sed -i '/^description/a version = "%{version}"' pyproject.toml sed -i '1{/\/usr\/bin\/env python/d;}' src/ansiblelint/__main__.py sed -i '/__version__ =/ s/0.1.dev1/%{version}/' src/ansiblelint/version.py