diff --git a/ansible-lint-6.10.0.tar.gz b/ansible-lint-6.10.0.tar.gz new file mode 100644 index 0000000..e8fb1c2 --- /dev/null +++ b/ansible-lint-6.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32f365c989ffd1044a09f04448e4e058aee46f4081c0155a0a749e808897009a +size 395805 diff --git a/ansible-lint-6.9.1.tar.gz b/ansible-lint-6.9.1.tar.gz deleted file mode 100644 index 9f4e303..0000000 --- a/ansible-lint-6.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fdda60c0a622679adad1623aae3b96bef6df29f839db9d4476544cfc6bd0adb3 -size 388343 diff --git a/ansible-lint.changes b/ansible-lint.changes index 74f2121..811a201 100644 --- a/ansible-lint.changes +++ b/ansible-lint.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Dec 16 12:46:39 UTC 2022 - Johannes Kastl + +- convert from setup.cfg to pyproject.toml +- update to 6.10.0: + * Minor Changes + - Add schema for Antsibull changelogs (#2814) @ssbarnea + - Add a rule to validate module options (#2749) @ganeshrn + - Add meta-unsupported-ansible rule for checking requires_ansible values (#2770) @alisonlhart + * Bugfixes + - Avoid running lookup filters while evaluating jinja2 (#2821) @ssbarnea + - Update schema to accept a list for 'listen' (#2817) @zigarn + - Update changelog schema etag (#2818) @ssbarnea + - Fix args validation with setup module (#2813) @ssbarnea + - Adopt PEP-621 packaging (#2807) @ssbarnea + - Restore classic behavior of offline mode (#2806) @ssbarnea + - Avoid false positive with name[casing] (#2800) @ssbarnea + - Use JSON Schema to validate own config file (#2797) @ssbarnea + - Add has_jinja and has_glob to text module (#2794) @ssbarnea + - Update schema etags (#2791) @ssbarnea + - Fix redirected links (#2790) @ssbarnea + - Correct schema refresh logic (#2785) @ssbarnea + - Add OracleLinux to supported platforms and include version 8.7 and 9.1 (#2783) @facorazza + ------------------------------------------------------------------- Mon Dec 5 09:14:15 UTC 2022 - Johannes Kastl diff --git a/ansible-lint.spec b/ansible-lint.spec index df90f20..9e71322 100644 --- a/ansible-lint.spec +++ b/ansible-lint.spec @@ -31,7 +31,7 @@ %global lib_name ansiblelint %{?python_enable_dependency_generator} Name: ansible-lint -Version: 6.9.1 +Version: 6.10.0 Release: 0%{?dist} Summary: Best practices checker for Ansible License: MIT @@ -98,17 +98,23 @@ Checks playbooks for practices and behavior that could potentially be improved. %prep %setup -n %{name}-%{version} -sed -ri 's/(\[metadata\])/\1\nversion = %{version}/' setup.cfg +sed -i '/^dynamic/d' pyproject.toml +sed -i '/^description/a version = "%{version}"' pyproject.toml sed -i '1{/\/usr\/bin\/env python/d;}' src/ansiblelint/__main__.py %build -%{ansible_python_executable} -mpip wheel --no-deps --disable-pip-version-check --use-pep517 --no-build-isolation --progress-bar off --verbose . -w build/ +%{ansible_python_executable} -mpip wheel --no-deps --disable-pip-version-check --use-pep517 --no-build-isolation --progress-bar off --verbose --wheel-dir ./build/ . +mkdir -p ./dist +cp ./build/ansible_lint-*-none-any.whl ./dist/ %install -%{ansible_python_executable} -mpip install --root %{buildroot} --disable-pip-version-check --no-compile --no-deps --progress-bar off build/ansible_lint-*.whl + +%{ansible_python_executable} -mpip install --root %{buildroot} --disable-pip-version-check --no-compile --no-deps --progress-bar off --ignore-installed --no-index --verbose --find-links build/ansible_lint-*.whl ansible_lint==%{version} find %{buildroot}/%{ansible_python_sitelib} -name '*.pyc' -delete %{ansible_python_executable} -m compileall %{buildroot}/%{ansible_python_sitelib} %{ansible_python_executable} -O -m compileall %{buildroot}/%{ansible_python_sitelib} +cp -vr src/ansiblelint/schemas %{buildroot}/%{ansible_python_sitelib}/%{lib_name}/ +cp -vr src/ansiblelint/data %{buildroot}/%{ansible_python_sitelib}/%{lib_name}/ %fdupes -s %{buildroot}/%{ansible_python_sitelib}