From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GJTZJOQiZmJHRAAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:26:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uFDSJOQiZmLJhQEA9RJhRA (envelope-from ) for ; Mon, 25 Apr 2022 06:26:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1A27329F49 for ; Mon, 25 Apr 2022 06:26:12 +0200 (CEST) Received: from localhost ([::1]:52018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqId-0006c6-33 for larch@yhetil.org; Mon, 25 Apr 2022 00:26:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipvh-00081i-Th for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:31 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipvg-0001p7-Fm for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipvg-0008Hr-DD for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:28 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 093/232] gnu: python-black: Update to 22.3.0. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:02:28 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085934531789 (code B ref 55104); Mon, 25 Apr 2022 04:02:28 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:02:25 +0000 Received: from localhost ([127.0.0.1]:60944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipvc-0008GT-EP for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:02:24 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:36740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipuB-0007uT-Pa for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:57 -0400 Received: by mail-qt1-f176.google.com with SMTP id bb21so9571760qtb.3 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=G7rbxJH5fEv3feoSB6L+Vkl1h/XTM0bulPcQDhoNEsk=; b=NmbCtkNld7+FtvKhuDF3xvFeqgrgMIIuGPC96vMCveqZieehFrI3CBobyx6vLzA+R7 2n+3Lc6rikY4ozcsmBr/Lon9CWz7KWLqDQ855c4Z/5m+lJJP2tAPce13Yqrmd3wjkpae 5Av7GY2+wOmlIpkSpFTgedDTeugBxjzEzwAaolVV8E13Or7ZNmyEYuHfeKJOccnr4HCg RVbZxRdP1TURfdcjIGkM4vxskHjwKKaDXazxwOY6JxkmYFBop44CCyP5eT4tekzLp/W7 2VKp3q+uyogUH8oaSTf5I1BelHnqXRDMaqRSznoom/hvA+cFbfmrJoUGpNahYF+R6yKF rFuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G7rbxJH5fEv3feoSB6L+Vkl1h/XTM0bulPcQDhoNEsk=; b=eNXmRxn0U6TtIsBwfzDOFc14yYwvN6fJuxYAhbbd1x+VggCdG3Z9H0Mq2iqNRXtikT XZnu1qpF3mv1DNv8HSbvGT3vEVJtFSR+smqUjuWpDv+GygxG+JSbRaP7GEbaISY75ayb yBM6Tr2QXevuqEkzXiXg641jWIR2HZaLKm+ySc36CI5n2uE8cHusiTYMOZYaMa1SVhq2 LxF0ovjrMFsIrqY7KFxRknA5ZGLUHrNtRlQLCkSKn5u8+kOC7uzj7SxllqaHXaEs0CAq MIgZ4O5ZRrhcnswSC4FSzfHO7LdqZfGfZ2dSzsO/xOZ1+RmyrfLrgjldoew4yWU4MIxm jCkg== X-Gm-Message-State: AOAM530nr4sG2QaSyHt8Vs3TyFxHK8zJFIzd9bSUgaz1c/90Sai/3ZtP 8lG1NbA24u5QylIe8ZtrLU/2INivZgzEQg== X-Google-Smtp-Source: ABdhPJznAqMEzcapqSmcttXonDm8+bZW3sqHHXJkj6Ah2kawUNVjcAQwV54nRsrrAsqN0GQR0dHQ/Q== X-Received: by 2002:a05:622a:1a27:b0:2f3:6417:f20e with SMTP id f39-20020a05622a1a2700b002f36417f20emr4646521qtb.5.1650859250225; Sun, 24 Apr 2022 21:00:50 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.21.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:00:49 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:56:59 -0400 Message-Id: <20220425035918.25683-93-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650860772; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G7rbxJH5fEv3feoSB6L+Vkl1h/XTM0bulPcQDhoNEsk=; b=m45uScCAP1pwBhrGxItw5zkbXn4PpsFAs821ZdG6xYGGzVo5QoVIhZE85XAh/AtlvispSZ nh95MT0FNdxuSJTtgfH2bTHdZbyshlEkxoChpOeg0oVm7OnFOh7+gs6eA+GEEnwoK9elhG 3a9znTn9i3iF20suito/YEqkY6uQfUcsUnTq+I/LK7ZDMsEU+y/qxJQ/BX05e2UQuB3WFg sMXm8/zIlKkgD73PVADcRk7Z3XdXtc+Vp29O0lOEf+VK3XBTAyro7KHf7OW43Lq1nVnthF q7kYTEVaU+df4UxdXxeJ0tYwxR7drznt2svTNtHjjMLvI9S8pn6qxYsVc6P4yA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860772; a=rsa-sha256; cv=none; b=MxkmHO62sMkHlk0Bx5SOsdIVHQ0/38FMTeVe6pF3fv90b1rWhw13SEgvnTMo3JkrApCRUt KjDx1lGUk/EmVSd7F5Gbn/ca9w5FdNicswE60SSTvO8ftP9imvuBm3TOcQqUGC0PyNpBdr kiLhOiu6TxV7OHohWnLjGGp0LNq5o2F2fRCM2rULeCMCRC1M/IXDwmtPEBWDGtx7eZRtuW Xa20fhJcKdaXAJJ2HHVxnKP7I6/p4tqJrLCHUJnN4yNK7ruHKbqXj/vmWAeRp4sHj67h2W B+othGg1hwFWuN5geWb6CUnZqiP5oQBwFMEHMLk1Zo40AsxQVonM0PbNziMEug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=NmbCtkNl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=NmbCtkNl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1A27329F49 X-Spam-Score: 7.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: UR4fIjzet23C * gnu/packages/python-xyz.scm (python-black): Update to 22.3.0. [phases]{relax-version-requirements}: Delete phase. {use-absolute-file-names}: Streamline phase. {disable-broken-tests, remove-entrypoint}: Delete phases. --- gnu/packages/python-xyz.scm | 39 ++++--------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a6e9f64ff3..96a04009bc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5415,58 +5415,27 @@ (define-public python-pathspec (define-public python-black (package (name "python-black") - (version "21.12b0") + (version "22.3.0") (source (origin (method url-fetch) (uri (pypi-uri "black" version)) (sha256 (base32 - "1czjwr1bx9ax5l64xfi54sxb1ycdy4s9ciaqg592x7jn79lhzf3p")))) + "0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases - ;; XXX Remove this when updating this package: - ;; https://github.com/psf/black/issues/2703#issuecomment-1004752142 - (add-after 'unpack 'relax-version-requirements - (lambda _ - (substitute* "setup.py" - (("tomli[^\"]*\",") - "tomli\",")))) (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")) - (/bin/false (search-input-file inpts "/bin/false")) - (/bin/sleep (search-input-file inpts "/bin/sleep"))) + (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 - "")))) - (substitute* "tests/test_primer.py" - (("/bin/false") /bin/false) - (("/bin/sleep") /bin/sleep))))) - (add-after 'unpack 'disable-broken-tests - (lambda* (#:key outputs inputs #:allow-other-keys) - ;; Make installed package available for running the tests - (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin" - ":" (getenv "PATH"))) - - ;; The source formatting test fails because we patch various - ;; files; just disable it. - (substitute* "tests/test_format.py" - (("def test_source_is_formatted" all) - (format #f "@pytest.mark.skip(\"Disabled by Guix.\")\n~a" - all))))) - ;; Remove blackd, because it depends on python-aiohttp and - ;; python-aiohttp-cors. - (add-after 'unpack 'remove-entrypoint - (lambda _ - (substitute* "setup.py" - (("\\s*\"blackd=blackd:patched_main \\[d\\]\",\n") "") - (("\"blackd\", ") "")))) + ""))))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv"))))))) -- 2.34.0