From patchwork Sun Feb 4 12:54:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 59778 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7C90627BBE9; Sun, 4 Feb 2024 12:56:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0449E27BBEB for ; Sun, 4 Feb 2024 12:56:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWc2O-00028Z-Hc; Sun, 04 Feb 2024 07:55:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWc2L-000283-ID for guix-patches@gnu.org; Sun, 04 Feb 2024 07:55:54 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rWc2H-0001XN-VC for guix-patches@gnu.org; Sun, 04 Feb 2024 07:55:51 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rWc2T-0007Of-Ot for guix-patches@gnu.org; Sun, 04 Feb 2024 07:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66788] [PATCH 1/2] gnu: python-black: Update to 23.1.0. References: <20231028094534.26587-1-ngraves@ngraves.fr> In-Reply-To: <20231028094534.26587-1-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Feb 2024 12:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66788 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66788@debbugs.gnu.org Cc: ludo@gnu.org, ngraves@ngraves.fr Received: via spool by 66788-submit@debbugs.gnu.org id=B66788.170705130228327 (code B ref 66788); Sun, 04 Feb 2024 12:56:01 +0000 Received: (at 66788) by debbugs.gnu.org; 4 Feb 2024 12:55:02 +0000 Received: from localhost ([127.0.0.1]:48385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWc1V-0007Mn-Rw for submit@debbugs.gnu.org; Sun, 04 Feb 2024 07:55:02 -0500 Received: from 8.mo560.mail-out.ovh.net ([188.165.52.147]:36009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWc1R-0007MC-Gg for 66788@debbugs.gnu.org; Sun, 04 Feb 2024 07:55:00 -0500 Received: from director2.ghost.mail-out.ovh.net (unknown [10.108.17.89]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 168FD25325 for <66788@debbugs.gnu.org>; Sun, 4 Feb 2024 12:54:44 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-hpcsk (unknown [10.108.42.198]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 90B5A1FE24; Sun, 4 Feb 2024 12:54:43 +0000 (UTC) Received: from ngraves.fr ([37.59.142.96]) by ghost-submission-6684bf9d7b-hpcsk with ESMTPSA id 4h4oHhOJv2WTVRAAf9cG3w (envelope-from ); Sun, 04 Feb 2024 12:54:43 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-96R0010a7033de-e904-4156-ba6a-c419fa08d80a, CDD90146079FDB87F723A7A7FD21F5F4569C6C59) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Sun, 4 Feb 2024 13:54:38 +0100 Message-ID: <20240204125440.3508-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 9877519883433796317 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrfedukedggeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteeffefhfffhjeevleeuvdehgffgveekheeuhfekhfehuefgheffhedugfegleeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddrleeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeiieejkeekseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-black): Update to 23.1.0. --- gnu/packages/python-xyz.scm | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c68b17b0ab..5ffea67fc9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7496,43 +7496,41 @@ (define-public python-language-server (define-public python-black (package (name "python-black") - (version "22.3.0") + (version "23.1.0") (source (origin (method url-fetch) (uri (pypi-uri "black" version)) (sha256 - (base32 - "0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im")))) - (build-system python-build-system) + (base32 "1b4jjv3fw2wgssnw2v1x0w09s7rz9sj5g4i1lwmmlgwhm2z9ggdh")))) + (build-system pyproject-build-system) + ;; These tests fail because Guix replaces the file shebangs. (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"))))))) + '(#:test-flags `("-k" ,(string-append + "not test_infer_target_version " + "and not test_simple_format[fmtonoff] " + "and not test_simple_format[function] " + "and not test_simple_format[string_prefixes] " + "and not test_python_39[python39]")))) (propagated-inputs (list python-click python-attrs python-appdirs python-pathspec python-mypy-extensions + python-packaging python-platformdirs python-regex python-tomli python-typed-ast python-typing-extensions)) (native-inputs - (list python-pytest python-pytest-aiohttp python-setuptools-scm)) + (list python-hatchling + python-hatch-vcs + python-hatch-fancy-pypi-readme + python-pytest + python-pytest-aiohttp + python-setuptools-scm)) (home-page "https://github.com/psf/black") (synopsis "The uncompromising code formatter") (description "Black is the uncompromising Python code formatter.")