unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 70855@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#70855] [PATCH 03/92] gnu: python-black: Move to pyproject-build-system.
Date: Fri, 10 May 2024 00:52:58 +0200	[thread overview]
Message-ID: <20240509225530.24649-3-ngraves@ngraves.fr> (raw)
In-Reply-To: <20240509225530.24649-1-ngraves@ngraves.fr>

* gnu/packages/python-xyz.scm (python-black): Improve package style.
  [build-system]: Move to pyproject-build-system.
  [arguments]<#:phases>: Improve style of use-absolute-file-names
  phase. Remove phase check.

Change-Id: If2da4b3b0fea4928d1aeb270fbaa4167f20a6ee5
---
 gnu/packages/python-xyz.scm | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c1590c2b568..862efc0f5b5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8262,22 +8262,16 @@ (define-public python-black
        (sha256
         (base32
          "0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
          (add-after 'patch-source-shebangs 'use-absolute-file-names
-           (lambda* (#:key native-inputs inputs #:allow-other-keys)
-             (let* ((inpts (or native-inputs inputs))
-                    (python3 (search-input-file inpts "/bin/python3")))
-               (substitute* (find-files "tests" "\\.py$")
-                 (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
-                  (string-append "#!" python3 (if (string? minor-version)
-                                                  minor-version
-                                                  "")))))))
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests? (invoke "pytest" "-vv")))))))
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* (find-files "tests" "\\.py$")
+               (("#!/usr/bin/env python3")
+                (string-append
+                 "#!" (search-input-file inputs "/bin/python3")))))))))
     (propagated-inputs
      (list python-click
            python-attrs
-- 
2.41.0





  parent reply	other threads:[~2024-05-09 22:56 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09 22:40 [bug#70855] [PATCH 00/92] python-team patches Nicolas Graves via Guix-patches via
2024-05-09 22:52 ` [bug#70855] [PATCH 01/92] gnu: python-seaborn: Correct dependencies Nicolas Graves via Guix-patches via
2024-05-09 22:52   ` [bug#70855] [PATCH 02/92] gnu: python-transient: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:52   ` Nicolas Graves via Guix-patches via [this message]
2024-05-09 22:52   ` [bug#70855] [PATCH 04/92] gnu: python-isort: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 06/92] gnu: python-mutagen: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 07/92] gnu: python-http-ece: Update to 1.2.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 08/92] gnu: python-zope-i18nmessageid: Update to 5.1.1 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 09/92] gnu: python-aionotify: Update to 0.3.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 10/92] gnu: vdirsyncer: Move to pyproject-build-system and enable tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 12/92] gnu: python-docker-pycreds: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 13/92] gnu: Add xcffibgen Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 14/92] gnu: Add ghc-language-python Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 15/92] gnu: python-xcffib: Move to (gnu packages xorg) Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 16/92] gnu: qtile: Update to 0.23.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 17/92] gnu: qtile: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 18/92] gnu: sshuttle: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 19/92] gnu: python-apiron: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 20/92] gnu: python-alembic: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 21/92] gnu: conda: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 22/92] gnu: conda: Reindent Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 23/92] gnu: python-conda-package-handling: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 24/92] gnu: python-scikit-rf: Fix tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 25/92] gnu: gunicorn: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 26/92] gnu: python-arrow: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 27/92] gnu: dynaconf: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 28/92] gnu: zulip-term: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 29/92] gnu: python-pypujs: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 31/92] gnu: python-nbval: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 32/92] gnu: python-asdf-astropy: Fix build Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 33/92] gnu: python-pytest-runner: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 34/92] gnu: gunicorn: Update to 21.2.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 35/92] gnu: python-unidecode: Update to 1.3.8 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 36/92] gnu: python-cbor2: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 37/92] gnu: python-tinycss: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 38/92] gnu: behave: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 39/92] gnu: python-cucumber-tag-expressions: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 40/92] gnu: python-flask-login: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 41/92] gnu: python-parse-type: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 42/92] gnu: python-amqp: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 43/92] gnu: python-cbor: Update home-page Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 44/92] gnu: python-sphinx: Ignore failing tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 45/92] gnu: python-sphinx-autodoc-typehints: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 46/92] gnu: abjad: Update to 3.19 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 47/92] gnu: abjad-ext-rmakers: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 48/92] gnu: abjad-ext-nauert: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 49/92] gnu: python-pytest-remotedata: Ignore failing test Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 50/92] gnu: python-pytest-toolbox: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 51/92] gnu: python-cairosvg: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 52/92] gnu: python-docspec-python: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 53/92] gnu: python-jaraco-classes: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 54/92] gnu: python-jaraco-context: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 55/92] gnu: python-jaraco-functools: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 56/92] gnu: python-jaraco-packaging: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 57/92] gnu: python-jaraco-test: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 58/92] gnu: python-nbstripout: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 59/92] gnu: Add ghc-xcb-types Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 60/92] gnu: python-sparse: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 61/92] gnu: python-pytest-enabler: Break dependency cycle Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 62/92] gnu: python-pint: Disable benchmark tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 63/92] gnu: python-apprise: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 64/92] gnu: python-autoflake: Update to 2.3.1 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 65/92] gnu: python-orderedmultidict: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 66/92] gnu: python-shtab: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 67/92] gnu: python-flake8-isort: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 68/92] gnu: python-xmltodict: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 69/92] gnu: python-rich: Update to 13.7.1 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 70/92] gnu: python-cmd2: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 71/92] gnu: Add python-sphinx-autodoc-typehints-5 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 72/92] gnu: python-uqbar: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 73/92] gnu: python-uqbar: Upgrade to python-team branch Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 74/92] gnu: python-uqbar: Update to 0.6.9 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 75/92] gnu: python-typeguard-4: Ignore failing tests Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 76/92] gnu: python-zope-i18nmessageid: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 77/92] gnu: python-funsor: Ignore flaky test Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 78/92] gnu: borgmatic: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 79/92] gnu: tuir: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 80/92] gnu: python-pytest-trio: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 81/92] gnu: python-fenics-dijitso: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 82/92] gnu: python-pyan3: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 83/92] gnu: python-numpydoc: Move to pyproject-build-sytem Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 84/92] gnu: python-multidict: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 85/92] gnu: python-warcio: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 86/92] gnu: python-certauth: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 87/92] gnu: python-matplotlib: Ignore failing tests Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 88/92] gnu: python-qemu-qmp: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 89/92] gnu: python-qemu-qmp: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 90/92] gnu: python-cssselect2: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 91/92] gnu: python-notebook: Add python-jupyter-server native-input Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 92/92] build-system/pyproject: Add missing native-inputs Nicolas Graves via Guix-patches via
2024-05-23 21:17 ` bug#70855: [PATCH 00/92] python-team patches Nicolas Goaziou via Guix-patches via

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=20240509225530.24649-3-ngraves@ngraves.fr \
    --to=guix-patches@gnu.org \
    --cc=70855@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).