guix-commits
[Top][All Lists]
Advanced

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

05/08: gnu: Remove python-pyflakes-2.2.


From: guix-commits
Subject: 05/08: gnu: Remove python-pyflakes-2.2.
Date: Fri, 8 Sep 2023 05:33:22 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 67ffb90dcbc88694fea4a1cbfc01c49aec4d1808
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Sep 8 10:01:02 2023 +0300

    gnu: Remove python-pyflakes-2.2.
    
    * gnu/packages/python-xyz.scm (python-pyflakes-2.2): Delete variable.
    * gnu/packages/patches/python-pyflakes-test-location.patch: Remove file.
    * gnu/local.mk (dist_patch_DATA): Remove it.
---
 gnu/local.mk                                       |  1 -
 .../patches/python-pyflakes-test-location.patch    | 42 ----------------------
 gnu/packages/python-xyz.scm                        | 13 -------
 3 files changed, 56 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index f58d04cf91..2b20606ca1 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1835,7 +1835,6 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/python-piexif-fix-tests-with-pillow-7.2.patch   \
   %D%/packages/patches/python-pillow-CVE-2022-45199.patch      \
   %D%/packages/patches/python-pyfakefs-remove-bad-test.patch   \
-  %D%/packages/patches/python-pyflakes-test-location.patch     \
   %D%/packages/patches/python-flint-includes.patch             \
   %D%/packages/patches/python-libxml2-utf8.patch               \
   %D%/packages/patches/python-memcached-syntax-warnings.patch  \
diff --git a/gnu/packages/patches/python-pyflakes-test-location.patch 
b/gnu/packages/patches/python-pyflakes-test-location.patch
deleted file mode 100644
index ea2c50c82e..0000000000
--- a/gnu/packages/patches/python-pyflakes-test-location.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-This patch fixes test failure related to reported source code locations.
-It is a backport of this patch:
-
-  commit 6a5f38b5ab12260fde8a0463acd433bc2d34dbcf
-  Author: Louis Sautier <sautier.louis@gmail.com>
-  Date:   Sat Oct 3 02:37:53 2020 +0200
-
-      Fix tests with Python 3.9, closes #549 (#586)
-
-      Stop allowing failures on Python nightly.
-
-diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py
-index 128aa69..b728e65 100644
---- a/pyflakes/test/test_api.py
-+++ b/pyflakes/test/test_api.py
-@@ -515,6 +515,8 @@ def foo(bar=baz, bax):
-             if ERROR_HAS_LAST_LINE:
-                 if PYPY and sys.version_info >= (3,):
-                     column = 7
-+                elif sys.version_info >= (3, 9):
-+                    column = 21
-                 elif sys.version_info >= (3, 8):
-                     column = 9
-                 else:
-@@ -543,6 +545,8 @@ foo(bar=baz, bax)
-             if ERROR_HAS_LAST_LINE:
-                 if PYPY and sys.version_info >= (3,):
-                     column = 12
-+                elif sys.version_info >= (3, 9):
-+                    column = 17
-                 elif sys.version_info >= (3, 8):
-                     column = 14
-                 else:
-@@ -577,6 +581,8 @@ foo(bar=baz, bax)
-                 position_end = 1
-                 if PYPY:
-                     column = 6
-+                elif ver >= (3, 9):
-+                    column = 13
-                 else:
-                     column = 7
-                     # Column has been "fixed" since 3.2.4 and 3.3.1
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 325ff8b822..a540c6367d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12493,19 +12493,6 @@ file (e.g. @file{PKG-INFO}).")
       "Pyflakes statically checks Python source code for common errors.")
     (license license:expat)))
 
-(define-public python-pyflakes-2.2
-  (package
-    (inherit python-pyflakes)
-    (version "2.2.0")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "pyflakes" version))
-              (sha256
-               (base32
-                "1j3zqbiwkyicvww499bblq33x0bjpzdrxajhaysr7sk7x5gdgcim"))
-              (patches
-               (search-patches "python-pyflakes-test-location.patch"))))))
-
 (define-public python-mccabe
   (package
     (name "python-mccabe")



reply via email to

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