guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: python-pylint: Update to 3.3.1.


From: guix-commits
Subject: 02/04: gnu: python-pylint: Update to 3.3.1.
Date: Fri, 22 Nov 2024 12:13:02 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit cf25255e210af15a648cdce91bd8b1623c23533f
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 22 16:45:43 2024 +0000

    gnu: python-pylint: Update to 3.3.1.
    
    * gnu/packages/check.scm (python-pylint): Update to 3.3.1. Refresh
    package style.
    [build-system]: Swap to pyproject-build-system.
    [arguments]<phases>: Use default 'check phase. Add 'set-home phase.
    <test-flags>: Move test selection/exclusion logic here.
    [native-inputs]: Add python-pytest-timeout, python-setuptools, and
    python-wheel.
    
    Change-Id: I2cde539f5f29a23d4037232937e419bbfd47d372
---
 gnu/packages/check.scm | 41 ++++++++++++++++++++++++++---------------
 1 file changed, 26 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index d6675853cf..34eae36a11 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3176,7 +3176,7 @@ statements in the module it tests.")
 (define-public python-pylint
   (package
     (name "python-pylint")
-    (version "2.14.5")
+    (version "3.3.1")
     (source
      (origin
        (method git-fetch)
@@ -3185,23 +3185,34 @@ statements in the module it tests.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0ljfvyzr2i07pi7m19kbshlc3cfnwr53mjhcpydaa0w8bak4cc95"))))
-    (build-system python-build-system)
+        (base32 "023cd6gqhhykr1gf8w7nxs5n7qgqwwsd4mgn94r14is8gcf1hwvj"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
+     (list
+      #:test-flags
+      #~(list "--numprocesses" (number->string (parallel-job-count))
+              "-W" "ignore::DeprecationWarning"
+              "--ignore=tests/benchmark"
                ;; The unused but collected 'primer'-related test files require
-               ;; the extraneous 'git' Python module; remove them.
-               (delete-file "tests/primer/test_primer_external.py")
-               (delete-file "tests/testutils/test_package_to_lint.py")
-               (setenv "HOME" "/tmp")
-               (invoke "pytest" "-k" "test_functional"
-                       "-n" (number->string (parallel-job-count)))))))))
+               ;; the extraneous 'git' Python module; ignore them.
+              "--ignore=tests/testutils/_primer/test_package_to_lint.py"
+              "--ignore=tests/testutils/_primer/test_primer.py"
+              "-k" (string-join
+                    ;; Test failing with multiple assertion errors.
+                    (list "not test_functional"
+                          "test_functional_relation_extraction")
+                    " and not "))
+     #:phases
+       #~(modify-phases %standard-phases
+         (add-before 'check 'set-home
+           (lambda _
+               (setenv "HOME" "/tmp"))))))
     (native-inputs
-     (list python-pytest python-pytest-xdist))
+     (list python-pytest
+           python-pytest-timeout
+           python-pytest-xdist
+           python-setuptools
+           python-wheel))
     (propagated-inputs
      (list python-astroid
            python-dill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]