Github messages for voidlinux
 help / color / mirror / Atom feed
From: jcgruenhage <jcgruenhage@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python3-ansible-lint: update to 6.13.0.
Date: Wed, 15 Feb 2023 20:01:53 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42293@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]

There is a new pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages python3-ansible-lint-6.13.0_1
https://github.com/void-linux/void-packages/pull/42293

python3-ansible-lint: update to 6.13.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


There was a bug in a new feature that was introduced upstream, which I fixed and submitted upstream. Is it okay to include stuff like this downstream?

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/42293.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-ansible-lint-6.13.0_1-42293.patch --]
[-- Type: text/x-diff, Size: 3321 bytes --]

From 0fe65fbf33fd75bb185be4cf491ec3b994f4b813 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Wed, 15 Feb 2023 20:00:25 +0100
Subject: [PATCH] python3-ansible-lint: update to 6.13.0.

---
 .../0002-fix-ignore-file-generation.patch     | 34 +++++++++++++++++++
 srcpkgs/python3-ansible-lint/template         |  4 +--
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch

diff --git a/srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch b/srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch
new file mode 100644
index 000000000000..7e80279e1b61
--- /dev/null
+++ b/srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch
@@ -0,0 +1,34 @@
+From 6c1efd11685ec829abcf944159012bd26a50a62c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Wed, 15 Feb 2023 19:22:48 +0100
+Subject: [PATCH 2/2] fix ignore file generation
+
+Previously, generated ignore files didn't put newlines between separate
+ignores. We're now appending `\n` to each line before writing them out.
+---
+ src/ansiblelint/app.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/ansiblelint/app.py b/src/ansiblelint/app.py
+index b87dcc66..8f1c45c0 100644
+--- a/src/ansiblelint/app.py
++++ b/src/ansiblelint/app.py
+@@ -171,13 +171,12 @@ class App:
+             console_stderr.print(f"Writing ignore file to {IGNORE_TXT}")
+             lines = set()
+             for rule in result.matches:
+-                lines.add(f"{rule.filename} {rule.tag}")
++                lines.add(f"{rule.filename} {rule.tag}\n")
+             with open(IGNORE_TXT, "w", encoding="utf-8") as ignore_file:
+                 ignore_file.write(
+                     "# This file contains ignores rule violations for ansible-lint\n"
+                 )
+                 ignore_file.writelines(sorted(list(lines)))
+-                ignore_file.write("\n")
+         elif matched_rules and not self.options.quiet:
+             console_stderr.print(
+                 "Read [link=https://ansible-lint.readthedocs.io/configuring/#ignoring-rules-for-entire-files]documentation[/link] for instructions on how to ignore specific rule violations."
+-- 
+2.39.2
+
diff --git a/srcpkgs/python3-ansible-lint/template b/srcpkgs/python3-ansible-lint/template
index caf694a16080..ed0cb9089e66 100644
--- a/srcpkgs/python3-ansible-lint/template
+++ b/srcpkgs/python3-ansible-lint/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-ansible-lint'
 pkgname=python3-ansible-lint
-version=6.12.0
+version=6.13.0
 revision=1
 build_style=python3-pep517
 make_install_target="dist/ansible_lint-*-*-*-*.whl"
@@ -18,7 +18,7 @@ maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
 license="GPL-3.0-only"
 homepage="https://github.com/ansible/ansible-lint"
 distfiles="${PYPI_SITE}/a/ansible-lint/ansible-lint-${version}.tar.gz"
-checksum=887e88262dbd9e2cbb5b7a70a94d945a8a2791d1467cf30af49c22b60899b40b
+checksum=e2d45d8315729f429cbbefdab446d38050ad7b36d9e3aa1ec1beaf2914d029a0
 # cba anymore, the list of failing tests changes with every update
 make_check="no"
 

             reply	other threads:[~2023-02-15 19:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-15 19:01 jcgruenhage [this message]
2023-02-20 13:29 ` [PR PATCH] [Updated] " jcgruenhage
2023-02-23 21:24 ` paper42
2023-02-23 21:25 ` [PR PATCH] [Merged]: " paper42
2023-02-23 22:12 ` jcgruenhage

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42293@inbox.vuxu.org \
    --to=jcgruenhage@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).