unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: phodina via <help-guix@gnu.org>
To: help-guix <help-guix@gnu.org>
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [PATCH 1/2] gnu: python-pycodestyle: Update to 2.8.0.
Date: Mon, 06 Jun 2022 20:19:41 +0000	[thread overview]
Message-ID: <ayjyIaBhjzIt-IJ-wyWXoaS0WZAvwocPe3NrX61tcqabSTguFAx8HvcPqdDjZf8nj2KViBnUsLCIkM9bsMf9oHrNIDh6V4X6Fx-UVj11qEU=@protonmail.com> (raw)

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

Hi Efraim,

I've also noticed broken python-flake8 and saw your fix b995c1bd10e445cfdabadb1a5e30935729ce094c.

Here are the patches to make it redundant :-)

Kind regards
Petr

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-python-pycodestyle-Update-to-2.8.0.patch --]
[-- Type: text/x-patch; name=0001-gnu-python-pycodestyle-Update-to-2.8.0.patch, Size: 1396 bytes --]

From 921a6da57ce688587734af3c51a337cc7c77dddb Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Mon, 6 Jun 2022 22:13:03 +0200
Subject: [PATCH 1/2] gnu: python-pycodestyle: Update to 2.8.0.

* gnu/packages/python-xyz.scm (python-pycodestyle): Update to 2.8.0.
  [arguments]: Respect tests?.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6132019a53..69ddd3608b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6444,21 +6444,22 @@ (define-public python-socksipychain
 (define-public python-pycodestyle
   (package
     (name "python-pycodestyle")
-    (version "2.7.0")
+    (version "2.8.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pycodestyle" version))
        (sha256
         (base32
-         "1vqwmzmjdv331kmfq3q9j3as2x7r2r49lf83r9w4147pdg8c32f3"))))
+         "0zxyrg8029lzjhima6l5nk6y0z6lm5wfp9qchz3s33j3xx3mipgd"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "pytest" "-vv"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest" "-vv")))))))
     (native-inputs
      (list python-pytest))
     (home-page "https://pycodestyle.readthedocs.io/")
-- 
2.35.1


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-python-flake8-Update-to-4.0.1.patch --]
[-- Type: text/x-patch; name=0002-gnu-python-flake8-Update-to-4.0.1.patch, Size: 2039 bytes --]

From cf237f9d413cb69df5fed12f75cde87555fd5c4b Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Mon, 6 Jun 2022 22:15:10 +0200
Subject: [PATCH 2/2] gnu: python-flake8: Update to 4.0.1.

* gnu/packages/python-xyz.scm (python-flake8): Update to 4.0.1.
  [source]: Remove snippet.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 69ddd3608b..dec7a45961 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10195,27 +10195,21 @@ (define-public python-mccabe
 (define-public python-flake8
   (package
     (name "python-flake8")
-    (version "3.9.2")
+    (version "4.0.1")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "flake8" version))
               (sha256
                (base32
-                "0sspgh2ph7bb5fmf49mrdhi7n5m421kfkxk1n0vn4akgg20q6lh7"))
-              (snippet
-               #~(begin
-                   (use-modules (guix build utils))
-                   (substitute* "setup.cfg"
-                     ;; Remove upper bound on pyflakes version.
-                     (("(pyflakes >=.*), .*" _ pyflakes)
-                      (string-append pyflakes "\n")))))))
+                "03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0"))))
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
                   (replace 'check
-                    (lambda* (#:key inputs outputs #:allow-other-keys)
-                      (add-installed-pythonpath inputs outputs)
-                      (invoke "pytest" "-v"))))))
+                    (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+                      (when tests?
+                        (add-installed-pythonpath inputs outputs)
+                        (invoke "pytest" "-v")))))))
     (propagated-inputs (list python-pycodestyle python-entrypoints
                              python-pyflakes python-mccabe))
     (native-inputs (list python-mock python-pytest))
-- 
2.35.1


                 reply	other threads:[~2022-06-06 20:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='ayjyIaBhjzIt-IJ-wyWXoaS0WZAvwocPe3NrX61tcqabSTguFAx8HvcPqdDjZf8nj2KViBnUsLCIkM9bsMf9oHrNIDh6V4X6Fx-UVj11qEU=@protonmail.com' \
    --to=help-guix@gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=phodina@protonmail.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).