GNU bug report logs - #70858
[PATCH 00/32] python-team: Remove native inputs

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Fri, 10 May 2024 07:50:01 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 70858 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>, sharlatanus <at> gmail.com
Subject: [bug#70858] [PATCH v3 05/28] build-system/pyproject: Remove python-flake8 inputs.
Date: Fri, 31 Jan 2025 03:03:05 +0100
* gnu/packages/bioinformatics.scm (python-doubletdetection,
python-biom-format)[native-inputs]: Remove python-flake8.

* gnu/packages/ebook.scm (calibre)[native-inputs]: Remove
python-flake8.

* gnu/packages/engineering.scm (python-scikit-rf)[native-inputs]:
Remove python-flake8.

* gnu/packages/finance.scm (python-mt-940)[native-inputs]: Remove
python-flake8.

* gnu/packages/geo.scm (python-geopy)[native-inputs]: Remove
python-flake8.

* gnu/packages/gettext.scm (python-mdpo)[native-inputs]: Remove
python-flake8.

* gnu/packages/graph.scm (python-pygsp)[native-inputs]: Remove
python-flake8.

* gnu/packages/graphviz.scm (python-uqbar)[native-inputs]: Remove
python-flake8.

* gnu/packages/machine-learning.scm (python-funsor,
python-imbalanced-learn, python-captum, python-pyro-api,
python-pyro-ppl, python-linear-operator,
python-gpytorch)[native-inputs]: Remove python-flake8.

* gnu/packages/music.scm (python-mutagen):
  [arguments]<#:test-flags>: Ignore flake8 quality tests.
  [native-inputs]: Remove python-flake8.

* gnu/packages/protobuf.scm (python-pure-protobuf):
  [arguments]<#:phases>: Remove flake8 invocation from check phase.
  [native-inputs]: Remove python-flake8.

* gnu/packages/python-web.scm (python-ovh, python-furl,
python-httplib2, python-http-ece, python-woob,
python-starsessions-for-pytorch-lightning)[native-inputs]: Remove
python-flake8.

* gnu/packages/python-xyz.scm (python-colorful, python-pymd4c,
  python-flasgger, python-imageio, python-importlib-ressources,
  python-seaborn, python-inflect, python-yq, python-update-checker,
  python-eliot, python-dateparser, python-jinja2-cli, python-verspec,
  python-mike)[native-inputs]: Remove python-flake8.

* gnu/packages/simulation.scm (python-dolfin-adjoint)[native-inputs]:
Remove python-flake8.

* gnu/packages/statistics.scm (python-statsmodels)[native-inputs]:
Remove python-flake8.

* gnu/packages/vpn.scm (sshuttle)[native-inputs]: Remove
python-flake8.

* gnu/packages/wm.scm (qtile)[native-inputs]: Remove python-flake8.

* gnu/packages/textutils.scm (python-panflute)[native-inputs]: Remove
python-flake8.
---
 gnu/packages/bioinformatics.scm   |  7 ++-----
 gnu/packages/ebook.scm            |  1 -
 gnu/packages/engineering.scm      |  1 -
 gnu/packages/finance.scm          |  4 +---
 gnu/packages/gettext.scm          |  1 -
 gnu/packages/graph.scm            |  3 +--
 gnu/packages/graphviz.scm         |  1 -
 gnu/packages/machine-learning.scm | 14 ++++----------
 gnu/packages/music.scm            |  4 ++--
 gnu/packages/protobuf.scm         |  4 +---
 gnu/packages/python-web.scm       | 12 +++---------
 gnu/packages/python-xyz.scm       | 30 ++++++++++++------------------
 gnu/packages/simulation.scm       |  1 -
 gnu/packages/statistics.scm       |  1 -
 gnu/packages/textutils.scm        |  1 -
 gnu/packages/vpn.scm              |  1 -
 gnu/packages/wm.scm               |  1 -
 17 files changed, 26 insertions(+), 61 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 546aa97c71..fca21ebd73 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2765,8 +2765,7 @@ (define-public python-doubletdetection
            python-scipy
            python-tqdm))
     (native-inputs
-     (list python-flake8
-           python-poetry-core
+     (list python-poetry-core
            python-pytest))
     (home-page "https://github.com/JonathanShor/DoubletDetection")
     (synopsis
@@ -3813,7 +3812,6 @@ (define-public python-biom-format
     (propagated-inputs
      (list python-anndata
            python-click
-           python-flake8
            python-future
            python-h5py
            python-numpy
@@ -23573,8 +23571,7 @@ (define-public scvelo
            python-umap-learn
            pybind11))
     (native-inputs
-     (list python-flake8
-           python-hypothesis
+     (list python-hypothesis
            python-pytest
            python-setuptools-scm
            python-wheel))
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 46ec951916..75e14801dd 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -156,7 +156,6 @@ (define-public calibre
     (native-inputs
      (list bash-minimal
            pkg-config
-           python-flake8
            python-pyqt-builder
            qtbase-5                     ; for qmake
            xdg-utils))
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 009629307d..d19b58b3e7 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2828,7 +2828,6 @@ (define-public python-scikit-rf
                              python-qtpy
                              python-scipy))
     (native-inputs (list python-coverage
-                         python-flake8
                          python-nbval
                          python-networkx
                          python-pytest
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 0bb2f46abb..5cf2db24a2 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -2309,9 +2309,7 @@ (define-public python-mt-940
                         ;; Remove custom --cov flags.
                         (delete-file "pytest.ini")
                         (invoke "pytest" "-vv")))))))
-    (native-inputs (list python-flake8
-                         python-pytest
-                         python-pyyaml))
+    (native-inputs (list python-pytest python-pyyaml))
     (home-page "https://mt940.readthedocs.io/")
     (synopsis "Python parser for MT940-encoded SWIFT data")
     (description
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index 7862c296bd..29cdbab915 100644
--- a/gnu/packages/gettext.scm
+++ b/gnu/packages/gettext.scm
@@ -226,7 +226,6 @@ (define-public mdpo
     (build-system python-build-system)
     (native-inputs
      (list python-bump2version
-           python-flake8
            python-flake8-implicit-str-concat
            python-flake8-print
            python-isort
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 02268f4391..85cb1d6437 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -570,8 +570,7 @@ (define-public python-pygsp
                 "")))))))
     (propagated-inputs (list python-numpy python-scikit-image python-scipy))
     (native-inputs
-     (list python-coverage python-coveralls python-flake8
-           python-pytest))
+     (list python-coverage python-coveralls python-pytest))
     (home-page "https://github.com/epfl-lts2/pygsp")
     (synopsis "Graph Signal Processing in Python")
     (description "The PyGSP is a Python package to ease signal processing on
diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index defd53df73..0d3db31212 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -224,7 +224,6 @@ (define-public python-uqbar
 and not test_sphinx_book_text_broken_strict")))
     (native-inputs
      (list graphviz
-           python-flake8
            python-isort
            python-mypy
            python-pytest
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 439c3c9c77..b93bfb551f 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -229,8 +229,7 @@ (define-public python-funsor
     (propagated-inputs (list python-makefun python-multipledispatch
                              python-numpy python-opt-einsum
                              python-typing-extensions))
-    (native-inputs (list python-flake8
-                         python-isort
+    (native-inputs (list python-isort
                          python-nbsphinx
                          python-pandas
                          python-pillow
@@ -2150,8 +2149,7 @@ (define-public python-imbalanced-learn
                               (getcwd)))))))
     (propagated-inputs (list python-joblib python-numpy python-scikit-learn
                              python-scipy python-threadpoolctl))
-    (native-inputs (list python-flake8
-                         python-keras
+    (native-inputs (list python-keras
                          python-mypy
                          python-pandas
                          python-pytest
@@ -5320,7 +5318,6 @@ (define-public python-captum
      (list python-matplotlib python-numpy python-pytorch python-tqdm))
     (native-inputs (list jupyter
                          python-annoy
-                         python-flake8
                          python-flask
                          python-flask-compress
                          python-ipython
@@ -5841,8 +5838,7 @@ (define-public python-pyro-api
     (build-system python-build-system)
     (arguments '(#:tests? #false)) ;requires pyro
     (native-inputs
-     (list python-flake8
-           python-ipython
+     (list python-ipython
            python-pytest
            python-sphinx
            python-sphinx-rtd-theme))
@@ -5899,8 +5895,7 @@ (define-public python-linear-operator
                              python-pytorch
                              python-scipy
                              python-typeguard))
-    (native-inputs (list python-flake8
-                         python-flake8-print
+    (native-inputs (list python-flake8-print
                          python-pytest
                          python-setuptools
                          python-setuptools-scm
@@ -5931,7 +5926,6 @@ (define-public python-gpytorch
                              python-scikit-learn
                              python-scipy))
     (native-inputs (list python-coverage
-                         python-flake8
                          python-flake8-print
                          python-nbval
                          python-pytest
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 6659dc0d53..dc82cfa570 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -4112,6 +4112,7 @@ (define-public python-mutagen
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags '(list "--ignore=tests/quality/test_flake8.py")
        #:phases
        #~(modify-phases %standard-phases
            (add-before 'check 'remove-hypothesis-deadlines
@@ -4122,8 +4123,7 @@ (define-public python-mutagen
                  (("( +)@given" all spaces)
                   (string-append spaces "@settings(deadline=None)\n" all))))))))
     (native-inputs
-     (list python-flake8
-           python-hypothesis
+     (list python-hypothesis
            python-pytest
            python-setuptools
            python-wheel))
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index d4b48e585b..4f18d1e6e2 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -505,7 +505,7 @@ (define-public python-pure-protobuf
         (base32 "15dp5pvazd0jx4wzzh79080ah7hkpd3axh40al9vhzs2hf3v90hx"))))
     (build-system python-build-system)
     (native-inputs
-     (list python-flake8 python-pytest python-pytest-cov python-isort))
+     (list python-pytest python-pytest-cov python-isort))
     (arguments
      `(#:phases
        (modify-phases %standard-phases
@@ -513,8 +513,6 @@ (define-public python-pure-protobuf
            (lambda _
              (invoke "pytest" "--cov-report" "term-missing" "--cov"
                      "pure_protobuf")
-             (invoke "flake8" "pure_protobuf" "tests"
-                     "--ignore=F541")
              (invoke "isort" "-rc" "-c" "pure_protobuf" "tests"))))))
     (home-page "https://pypi.org/project/pure-protobuf/")
     (synopsis "Protobuf implementation using dataclasses")
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 25407f4d7f..8f88693e56 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1516,7 +1516,6 @@ (define-public python-ovh
     (arguments (list #:tests? #f))      ; XXX: tests require networking
     (propagated-inputs (list python-requests))
     (native-inputs (list python-coverage
-                         python-flake8
                          python-isort
                          python-pytest
                          python-pytest-cov
@@ -1832,8 +1831,6 @@ (define-public python-furl
     (build-system python-build-system)
     (propagated-inputs
      (list python-six python-orderedmultidict))
-    (native-inputs
-     (list python-flake8))
     (home-page "https://github.com/gruns/furl")
     (synopsis "URL manipulation in Python")
     (description "Furl provides an easy-to-use alternative to the
@@ -1866,7 +1863,6 @@ (define-public python-httplib2
                  (("==") ">=")))))))
     (native-inputs
      (list python-cryptography
-           python-flake8
            python-future
            python-mock
            python-pytest
@@ -8472,7 +8468,7 @@ (define-public python-http-ece
     (propagated-inputs
      (list python-cryptography))
     (native-inputs
-     (list python-coverage python-flake8 python-mock python-nose))
+     (list python-coverage python-mock python-nose))
     (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
     (synopsis "Encrypted Content Encoding for HTTP")
     (description
@@ -9549,8 +9545,7 @@ (define-public python-woob
            python-six
            python-unidecode))
     (native-inputs
-     (list python-coverage python-flake8 python-nose python-selenium
-           python-xunitparser))
+     (list python-coverage python-nose python-selenium python-xunitparser))
     (home-page "https://woob.tech/")
     (synopsis "Woob, Web Outside Of Browsers")
     (description "Woob is a collection of applications able to interact with
@@ -10210,8 +10205,7 @@ (define-public python-starsessions
            python-itsdangerous
            python-starlette))
     (native-inputs
-     (list python-flake8
-           python-httpx
+     (list python-httpx
            python-mypy
            python-poetry-core
            python-pytest
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d9a4b3340b..c4cd591093 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1470,8 +1470,7 @@ (define-public python-colorful
         (base32 "0kyy9qhvrb5m9h8xmri7c88i0k1g5qc7017anw39gx44an7mn33y"))))
     (build-system pyproject-build-system)
     (native-inputs
-     (list python-coverage python-flake8 python-pytest python-setuptools
-           python-wheel))
+     (list python-coverage python-pytest python-setuptools python-wheel))
     (propagated-inputs
      (list python-colorama))
     (home-page "http://github.com/timofurrer/colorful")
@@ -2815,7 +2814,7 @@ (define-public python-pymd4c
     (inputs
      (list md4c))
     (native-inputs
-     (list python-flake8 python-pkgconfig pkg-config))
+     (list python-pkgconfig pkg-config))
     (home-page "https://github.com/dominickpastore/pymd4c")
     (synopsis "Python bindings for MD4C")
     (description
@@ -11760,8 +11759,7 @@ (define-public python-imageio
     (propagated-inputs
      (list python-imageio-ffmpeg python-numpy python-pillow python-tifffile))
     (native-inputs
-     (list python-flake8
-           python-fsspec
+     (list python-fsspec
            python-pytest
            python-pytest-cov
            python-setuptools
@@ -12585,8 +12583,7 @@ (define-public python-importlib-resources
              (setenv "PYTHONPATH"
                      (string-append (getcwd) "/_custom_build")))))))
     (native-inputs
-     (list python-flake8
-           python-pytest
+     (list python-pytest
            python-pytest-black
            python-pytest-checkdocs
            python-pytest-cov
@@ -14858,8 +14855,7 @@ (define-public python-seaborn
            python-scipy
            python-statsmodels))
     (native-inputs
-     (list python-flake8
-           python-flit-core
+     (list python-flit-core
            python-ipykernel
            python-nbconvert
            python-numpydoc
@@ -22488,8 +22484,7 @@ (define-public python-inflect
              (setenv "PYTHONPATH"
                      (string-append (getcwd) "/_custom_build")))))))
     (propagated-inputs (list python-pydantic))
-    (native-inputs (list python-flake8
-                         python-pygments
+    (native-inputs (list python-pygments
                          python-pytest
                          python-pytest-black
                          python-pytest-checkdocs
@@ -27950,7 +27945,7 @@ (define-public python-yq
     (inputs
      (list python-argcomplete python-pyyaml python-xmltodict python-toml jq))
     (native-inputs
-     (list python-coverage python-flake8 python-setuptools-scm python-wheel))
+     (list python-coverage python-setuptools-scm python-wheel))
     (home-page "https://github.com/kislyuk/yq")
     (synopsis "Command-line YAML/XML processor")
     (description
@@ -28958,7 +28953,7 @@ (define-public python-update-checker
         (base32 "04yb5a9mi45ax50m2m0ih6gdvkk1j7gfmy83dd58i1f59axlabba"))))
     (build-system python-build-system)
     (propagated-inputs (list python-requests))
-    (native-inputs (list python-flake8 python-pytest))
+    (native-inputs (list python-pytest))
     (home-page "https://github.com/bboe/update_checker")
     (synopsis "Python module that will check for package updates")
     (description "This package provides a Python module that will check for
@@ -33264,7 +33259,6 @@ (define-public python-eliot
      (list python-boltons python-orjson python-pyrsistent python-zope-interface))
     (native-inputs
      (list python-coverage
-           python-flake8
            python-hypothesis
            python-pytest
            python-pytest-xdist
@@ -34073,7 +34067,7 @@ (define-public python-dateparser
      (list python-dateutil python-pytz python-regex python-ruamel.yaml
            python-tzlocal))
     (native-inputs
-     (list python-flake8 python-pytest python-parameterized tzdata-for-tests
+     (list python-pytest python-parameterized tzdata-for-tests
            python-setuptools python-wheel))
     (arguments
      `(#:phases
@@ -35496,7 +35490,7 @@ (define-public python-jinja2-cli
     (propagated-inputs
       (list python-jinja2))
     (native-inputs
-      (list python-flake8 python-jinja2 python-pytest))
+      (list python-jinja2 python-pytest))
     (home-page "https://github.com/mattrobenolt/jinja2-cli")
     (synopsis "Command-line interface to Jinja2")
     (description
@@ -38051,7 +38045,7 @@ (define-public python-verspec
                (base32
                 "07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64"))))
     (build-system python-build-system)
-    (native-inputs (list python-coverage python-flake8 python-mypy
+    (native-inputs (list python-coverage python-mypy
                          python-pretend python-pytest))
     (arguments
      `(#:phases (modify-phases %standard-phases
@@ -38451,7 +38445,7 @@ (define-public python-mike
                 "0yxp816x7s948xsd0fifvq9shg01xdxlifd9rzf5y2rd9iwz3hsn"))))
     (build-system python-build-system)
     (native-inputs
-     (list python-coverage python-flake8 python-shtab))
+     (list python-coverage python-shtab))
     (propagated-inputs
      (list python-jinja2 python-mkdocs python-pyyaml python-verspec))
     (home-page "https://github.com/jimporter/mike")
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 3af29aeeaa..1eed4fd180 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -1252,7 +1252,6 @@ (define-public python-dolfin-adjoint
      (list pkg-config
            python-coverage
            python-decorator
-           python-flake8
            python-pkgconfig
            python-pytest))
     (propagated-inputs
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 0e9a07f7b8..37abd291d2 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -2670,7 +2670,6 @@ (define-public python-statsmodels
     (native-inputs
      (list python-colorama
            python-cython
-           python-flake8
            python-isort
            python-joblib
            python-matplotlib
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 229e69a2b3..5424f6a28c 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -1758,7 +1758,6 @@ (define-public python-panflute
     (propagated-inputs (list python-click python-pyyaml))
     (native-inputs (list python-configparser
                          python-coverage
-                         python-flake8
                          python-pandocfilters
                          python-pytest
                          python-pytest-cov
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index 0b62e8c7cf..53706a8de1 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -1034,7 +1034,6 @@ (define (install-man-page file)
     (native-inputs
      (list python-setuptools-scm
            ;; For tests only.
-           python-flake8
            python-mock
            python-poetry-core
            python-pytest-cov
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 0d4f7860c6..9d6725ee5c 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -860,7 +860,6 @@ (define-public qtile
            python-xcffib))
     (native-inputs
       (list pkg-config
-            python-flake8
             python-pep8-naming
             python-pytest
             python-pytest-cov
-- 
2.48.1





This bug report was last modified 67 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.