From unknown Mon Aug 18 11:12:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53640 <53640@debbugs.gnu.org> To: bug#53640 <53640@debbugs.gnu.org> Subject: Status: Python-black 22.1.0 update Reply-To: bug#53640 <53640@debbugs.gnu.org> Date: Mon, 18 Aug 2025 18:12:36 +0000 retitle 53640 Python-black 22.1.0 update reassign 53640 guix-patches submitter 53640 Leo Famulari severity 53640 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 30 15:20:22 2022 Received: (at submit) by debbugs.gnu.org; 30 Jan 2022 20:20:22 +0000 Received: from localhost ([127.0.0.1]:37737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEGgP-0001C5-Vp for submit@debbugs.gnu.org; Sun, 30 Jan 2022 15:20:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:51752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEGgO-0001Bw-7A for submit@debbugs.gnu.org; Sun, 30 Jan 2022 15:20:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEGgL-0006BQ-M8 for guix-patches@gnu.org; Sun, 30 Jan 2022 15:20:19 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEGgJ-0007c5-Ky; Sun, 30 Jan 2022 15:20:17 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 55A7C5C0091; Sun, 30 Jan 2022 15:20:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 30 Jan 2022 15:20:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=mesmtp; bh=9x8uyKdcY5Uu0xOVx/yBeWYAFjxuAqvDNz3iFbBsrS4=; b=tw+87G7zyu6N Oo85ZCAW1AjGnrEGwZ+XHnjyWKdrniXAqPKSd7F4CGHWECTDleRVokY7zc4Owo81 KNPN+lG33GHyjJl6/znkpohGZLCbaaPvEP00rNCXnzCbgDRLEmd7vbWsJizGnR/7 6feMMADlxH4U+sDqGRFL/ztXbZgY6uM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=9x8uyKdcY5Uu0xOVx/yBeWYAFjxuAqvDNz3iFbBsr S4=; b=mqUvZwBbu1O7IYhrqjxfkeaZnCX7vKpLyuJuoVwQRVnqswK3s2aN9qa9S PRG4d8cy1hGRW2ScpGo+dcRAEbye2QcCGHIP9AF/ohsEpPYorMN06hkCs6d94VRd /mc8jDqZ9wBOVWPfSM449azR847uZtwWMWxSl9ApGy0GZnts038TiCsC1q045XBi d7vYfvG1YTmX6KqinVKVq3tyNnDfNU5vxn4VtJih15YAS9Sp6qtibJ/91XHlLka1 DngVpo4HVXVpjQdZU8ki8vz5ORCybunWaPuD5i15nllcOKYifxKmMmqeBsFBpPbX Hn3MpWKQ7kJjUlGNDA5w4t7/G0mug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeelgddufeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhi rdhnrghmvgeqnecuggftrfgrthhtvghrnhepffehtdeffedtvdeuieefudeujedvkeehff euieejgfdvteelgeehgeefheehuddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 30 Jan 2022 15:20:09 -0500 (EST) Date: Sun, 30 Jan 2022 15:20:02 -0500 From: Leo Famulari To: guix-patches@gnu.org Subject: Python-black 22.1.0 update Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=66.111.4.27; envelope-from=leo@famulari.name; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: monego@posteo.net, marius@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) These patches update python-black to 22.1.0, so it's no longer a beta. I rebuilt all packages reported by `guix refresh -l python-black`, and the only new failure is of python-pyls-black. Basically, all of its tests fail like this: ------ filename = '/tmp/guix-build-python-pyls-black-0.4.7.drv-0/source/tests/fixtures/example.py' def load_config(filename: str) -> Dict: defaults = { "line_length": 88, "fast": False, "pyi": filename.endswith(".pyi"), "skip_string_normalization": False, "target_version": set(), } root = black.find_project_root((filename,)) > pyproject_filename = root / "pyproject.toml" E TypeError: unsupported operand type(s) for /: 'tuple' and 'str' pyls_black/plugin.py:76: TypeError =========================== short test summary info ============================ FAILED tests/test_plugin.py::test_pylsp_format_document - TypeError: unsuppor... FAILED tests/test_plugin.py::test_pyls_format_pyi_document - TypeError: unsup... FAILED tests/test_plugin.py::test_pylsp_format_document_unchanged - TypeError... FAILED tests/test_plugin.py::test_pyls_format_pyi_document_unchanged - TypeEr... FAILED tests/test_plugin.py::test_pylsp_format_document_syntax_error - TypeEr... FAILED tests/test_plugin.py::test_pylsp_format_document_with_config - TypeErr... FAILED tests/test_plugin.py::test_pylsp_format_range[0-0-a = "hello"\n] - Typ... FAILED tests/test_plugin.py::test_pylsp_format_range[1-1-b = 42\n] - TypeErro... FAILED tests/test_plugin.py::test_pylsp_format_range[0-1-a = "hello"\nb = 42\n] FAILED tests/test_plugin.py::test_pylsp_format_range_unchanged - TypeError: u... FAILED tests/test_plugin.py::test_pylsp_format_range_syntax_error - TypeError... FAILED tests/test_plugin.py::test_load_config - TypeError: unsupported operan... FAILED tests/test_plugin.py::test_load_config_target_version - TypeError: uns... FAILED tests/test_plugin.py::test_load_config_py36 - TypeError: unsupported o... FAILED tests/test_plugin.py::test_load_config_defaults - TypeError: unsupport... ========================= 15 failed, 1 passed in 0.47s ========================= ------ Any ideas? I've CC-ed the people who have touched the python-pyls-black package. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 30 15:22:34 2022 Received: (at 53640) by debbugs.gnu.org; 30 Jan 2022 20:22:34 +0000 Received: from localhost ([127.0.0.1]:37745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEGiY-0001GV-DQ for submit@debbugs.gnu.org; Sun, 30 Jan 2022 15:22:34 -0500 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:37085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEGiW-0001GC-Ct for 53640@debbugs.gnu.org; Sun, 30 Jan 2022 15:22:32 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 3457658012A; Sun, 30 Jan 2022 15:22:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 30 Jan 2022 15:22:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=mesmtp; bh=ANcQR4xgEDq5fpoCZgfYB+FIgjOrbRrFL+T9m3KfjE0=; b=b7 30aAEibTySF6vf7CgMr/m1Px1CFoN9NsUkDSn9DcnBU/HFZpuWc1eYFPFLfIaWkN S90HnQenPNxwk8yv1MNlAmlrNpSUhbsAsz21c3re4BvilzufjJQ8N+ozwfXGE3WR Wf1gfOqrAv3Rsj/9TX8XUkM4pmBAWN3TQzfVp6eN0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=ANcQR4xgEDq5fpoCZgfYB+FIgjOrb RrFL+T9m3KfjE0=; b=hER7eRlwVV5AAXoXcw2UMjLVPnK7CQSWXRuU2kNSbFBuZ K4T6E8DigHFkUWAL684b8jkufywLFFPR4lOhxgqQFKcli/YftvL59wSPS7cXcfxM gWocUdZbWPGFMUvdNB6ZhPk7NBN/qnuCUnae6gZbZBTGGK2XtJeFokV+TudJxty/ /mvrf7lws2kichmm8UL0YBXc8MNjjq4+DFnqkI1MgWYmNM6sjr1zIDdpaW7n/zT0 i4DXydZy/q2tCcWGz/oFnEvmCHfaXTjoiqPHEit1szH/Hd9O45HNLaAYs6AMqv4r 0r3pS2AJ2hVQKnbSWnhWKTlA5LBLeoK/yu12KB2tw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeelgddufeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgovfgvgihtqfhnlhihqddqufhprghmsghothdqkg egvdduqdehudculdeftddtmdenucfjughrpefhvffufffkofgggfestdekredtredttden ucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrg hmvgeqnecuggftrfgrthhtvghrnhepteeuiefgleehkeevffevteffueegueduvdegieff veekuefffeetuddvhffhudfhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <53640@debbugs.gnu.org>; Sun, 30 Jan 2022 15:22:26 -0500 (EST) From: Leo Famulari To: 53640@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add python-click 8.0.3. Date: Sun, 30 Jan 2022 15:22:22 -0500 Message-Id: <592b792d0b22889b69d5fc1a6525490ed41417df.1643574143.git.leo@famulari.name> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53640 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/python-xyz.scm (python-click-8): New variable. --- gnu/packages/python-xyz.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4f77fae8d0..4875d7dd64 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3420,6 +3420,17 @@ (define-public python-click (define-public python2-click (package-with-python2 python-click)) +(define-public python-click-8 + (package (inherit python-click) + (version "8.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "click" version)) + (sha256 + (base32 + "0nybbsgaff8ihfh74nhmng6qj74pfpg99njc7ivysphg0lmr63j1")))))) + (define-public python-click-5 (package (inherit python-click) (name "python-click") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 30 15:22:35 2022 Received: (at 53640) by debbugs.gnu.org; 30 Jan 2022 20:22:35 +0000 Received: from localhost ([127.0.0.1]:37747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEGiY-0001GX-L3 for submit@debbugs.gnu.org; Sun, 30 Jan 2022 15:22:34 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEGiW-0001GE-LG for 53640@debbugs.gnu.org; Sun, 30 Jan 2022 15:22:33 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7919C5C00E4; Sun, 30 Jan 2022 15:22:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 30 Jan 2022 15:22:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=mesmtp; bh=vsM0JRZzglmIhaSsln84imFz24G V12YlPew/LNBoQ7s=; b=KD1n36+ozHeK15nddS1uaG+yjO9YGtA15kH7qfu4Fax 2eqdubkE9OXk0kv4TNIuvajOli05CcsqUoX9xeDIawHUJ7iJZ6YEc6eF8WanwCzg I239kMdrxyJOA/h1VnCHO1SBqhQsmqarkH9wVBV/MPJeARtVy6xBDD0Jq2Xp5I5I = DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vsM0JR ZzglmIhaSsln84imFz24GV12YlPew/LNBoQ7s=; b=YDh8jk0H5e1K+bGWR5/vTS kdFXlYg4m773b0k1p+V2nDyPSXBjHdew/H/rmdZvN8/8R45CQTrP6GSfDJrUUrZu enL31HwWDKgmMEBQswgA6P/Mi8JOoEON99qxS/3qJKiD/Hoxs2O0iDNs5s01KD16 JX5oyhPFXEq59X7COqxc0Rr8/+HTrUlPAhlyOPvOiodBcU2azNAOo1ZTcp/Xicc3 umDige6idLNCOxpbxYInNRK1T64zPEOEvdlFo8sPRvJV5nNh2oIaV/4acd76g2fD B+zJVKF4rja2N0OeKCYjbHnZ/H07eV3FJn12CqVUyDLUNJSFFueTzejyoHOvH+Rg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeelgddufeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgr rhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhepvefhtefgtdefkeeiteeltedvgeekhf ffkefhhffftdehudevvddthfffvddvleegnecuffhomhgrihhnpehgihhthhhusgdrtgho mhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg hosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <53640@debbugs.gnu.org>; Sun, 30 Jan 2022 15:22:27 -0500 (EST) From: Leo Famulari To: 53640@debbugs.gnu.org Subject: [PATCH 2/2] gnu: python-black: Update to 22.1.0. Date: Sun, 30 Jan 2022 15:22:23 -0500 Message-Id: X-Mailer: git-send-email 2.34.0 In-Reply-To: <592b792d0b22889b69d5fc1a6525490ed41417df.1643574143.git.leo@famulari.name> References: <592b792d0b22889b69d5fc1a6525490ed41417df.1643574143.git.leo@famulari.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53640 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/python-xyz.scm (python-black): Update to 22.1.0. [propagated-inputs]: Replace python-click with python-click-8. [arguments]: Remove obsolete 'relax-version-requirements' build phase. --- gnu/packages/python-xyz.scm | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4875d7dd64..028ec7dc8a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5237,25 +5237,18 @@ (define-public python-pathspec (define-public python-black (package (name "python-black") - (version "21.12b0") + (version "22.1.0") (source (origin (method url-fetch) (uri (pypi-uri "black" version)) (sha256 (base32 - "1czjwr1bx9ax5l64xfi54sxb1ycdy4s9ciaqg592x7jn79lhzf3p")))) + "1ddgh0da9kqdmzypkvi9srfjxs8mg75pbrab2z0nypv36lnikh57")))) (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)) @@ -5293,7 +5286,7 @@ (define-public python-black (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv"))))))) (propagated-inputs - (list python-click + (list python-click-8 python-attrs python-appdirs python-pathspec -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 30 19:42:10 2022 Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 00:42:10 +0000 Received: from localhost ([127.0.0.1]:38028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEKlm-0002cJ-E3 for submit@debbugs.gnu.org; Sun, 30 Jan 2022 19:42:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:43416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEKlk-0002cB-9E for submit@debbugs.gnu.org; Sun, 30 Jan 2022 19:42:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEKlj-0006D7-6k for guix-patches@gnu.org; Sun, 30 Jan 2022 19:42:08 -0500 Received: from mout01.posteo.de ([185.67.36.65]:34479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEKld-0003wX-PG for guix-patches@gnu.org; Sun, 30 Jan 2022 19:42:06 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9CC78240027 for ; Mon, 31 Jan 2022 01:41:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1643589717; bh=kZXg49Vg76Idb+a6fsmdZs+13ouxlC8MaZ4Nh1H8tjM=; h=Subject:From:To:Cc:Date:From; b=AzqKBMcjYH08/b6pTQcq3aqIG5Mw62XUAX2/Qo+urIgAk0tLFBfrWyjnZhtq4ULvL gvu3BHdPyLyt4dbkqo3jEbungbipaIMZYuTPmfzdaAGeylsMaWrJ/aB3P+l/NdlKWP B5BuKltizFNQ6lkFT4E/exWH3X54SqglzwqdnkeDrw/fiISqxB8VGr7E0W5+g8R2Ro YCqgq4IDznN9/K6Ba404IpjaUvPbmkfm2bnfKAOAELAyeE9sWqE4aOrciGhp8kkHTe gxq6eFt2MlaR1gXNQ2Bg3YWpFj1vHzoPFIbn4Ucods0M14HKKRVm5kIORxJmqbw47V VNS/OOvzh0pwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Jn8QW3PJ7z9rxG; Mon, 31 Jan 2022 01:41:55 +0100 (CET) Message-ID: Subject: Re: Python-black 22.1.0 update From: Vinicius Monego To: Leo Famulari , guix-patches@gnu.org Date: Mon, 31 Jan 2022 00:41:46 +0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: marius@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Black changed the return type for find_project_root in this version. It now returns a tuple instead of a Path object. See [1] and [2] to compare the latest stable with the version in Guix. That is, lsp-black is not compatible with this version. If that is the only error then I guess [3] (or two lines below) can be patched via substitution to extract the first element of the tuple, corresponding to the Path, but I haven't tried this. [1] https://github.com/psf/black/blob/d038a24ca200da9dacc1dcb05090c9e5b45b7869/src/black/files.py#L33 [2] https://github.com/psf/black/blob/f1d4e742c91dd5179d742b0db9293c4472b765f8/src/black/files.py#L33 [3] https://github.com/rupert/pyls-black/blob/0f2e9ed8c0fb20f7f88fe47e11b723e311b568d6/pyls_black/plugin.py#L74 Em dom, 2022-01-30 às 15:20 -0500, Leo Famulari escreveu: > These patches update python-black to 22.1.0, so it's no longer a > beta. > > I rebuilt all packages reported by `guix refresh -l python-black`, > and > the only new failure is of python-pyls-black. Basically, all of its > tests fail like this: > > ------ > filename = '/tmp/guix-build-python-pyls-black-0.4.7.drv- > 0/source/tests/fixtures/example.py' > >     def load_config(filename: str) -> Dict: >         defaults = { >             "line_length": 88, >             "fast": False, >             "pyi": filename.endswith(".pyi"), >             "skip_string_normalization": False, >             "target_version": set(), >         } >     >         root = black.find_project_root((filename,)) >     > >       pyproject_filename = root / "pyproject.toml" > E       TypeError: unsupported operand type(s) for /: 'tuple' and > 'str' > > pyls_black/plugin.py:76: TypeError > =========================== short test summary info > ============================ > FAILED tests/test_plugin.py::test_pylsp_format_document - TypeError: > unsuppor... > FAILED tests/test_plugin.py::test_pyls_format_pyi_document - > TypeError: unsup... > FAILED tests/test_plugin.py::test_pylsp_format_document_unchanged - > TypeError... > FAILED tests/test_plugin.py::test_pyls_format_pyi_document_unchanged > - TypeEr... > FAILED tests/test_plugin.py::test_pylsp_format_document_syntax_error > - TypeEr... > FAILED tests/test_plugin.py::test_pylsp_format_document_with_config - > TypeErr... > FAILED tests/test_plugin.py::test_pylsp_format_range[0-0-a = > "hello"\n] - Typ... > FAILED tests/test_plugin.py::test_pylsp_format_range[1-1-b = 42\n] - > TypeErro... > FAILED tests/test_plugin.py::test_pylsp_format_range[0-1-a = > "hello"\nb = 42\n] > FAILED tests/test_plugin.py::test_pylsp_format_range_unchanged - > TypeError: u... > FAILED tests/test_plugin.py::test_pylsp_format_range_syntax_error - > TypeError... > FAILED tests/test_plugin.py::test_load_config - TypeError: > unsupported operan... > FAILED tests/test_plugin.py::test_load_config_target_version - > TypeError: uns... > FAILED tests/test_plugin.py::test_load_config_py36 - TypeError: > unsupported o... > FAILED tests/test_plugin.py::test_load_config_defaults - TypeError: > unsupport... > ========================= 15 failed, 1 passed in 0.47s > ========================= > ------ > > Any ideas? I've CC-ed the people who have touched the python-pyls- > black > package. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 16:06:31 2022 Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 21:06:31 +0000 Received: from localhost ([127.0.0.1]:41081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEdsc-0003l4-RX for submit@debbugs.gnu.org; Mon, 31 Jan 2022 16:06:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:58180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEdsb-0003ku-1D for submit@debbugs.gnu.org; Mon, 31 Jan 2022 16:06:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEdsa-0007d7-Lj for guix-patches@gnu.org; Mon, 31 Jan 2022 16:06:28 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEdsW-0004ye-Tf; Mon, 31 Jan 2022 16:06:28 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E2D0F5C0135; Mon, 31 Jan 2022 16:06:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 31 Jan 2022 16:06:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=mesmtp; bh=rCncPQQfDI883zVvlB8K2xVHk4Z hFj2z1gm1ppEYOyM=; b=M855TPU0oGAvtx+Iq1tjgUe62qE6JEfTi/qFos+5G/X VYB/cktFnCyncCj0qI3/TEu7Mi0xqxQymLy2XttXDFH3gw4YKct5gYkan4IyJExJ jhP6y1Z/u9r+344QL6QEOLdIKoiYbXrqQQNnmRHMwIizs5yMKRKdoUQmn+DsxRE0 = DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=rCncPQQfDI883zVvl B8K2xVHk4ZhFj2z1gm1ppEYOyM=; b=CbRV5wATU/zQTF1O2bFvB3LCkPeQK/zNq /UZdbor33qdgt5MRUWoU+ureMkE7nwG0/RdVESyTI7l+kGAL4hqrkn5xCtMi5kOU AeXja3yZwfx7Tl1wu63YQzJpWsO/ZUvFmyYNzs08+34ypTymtyYKufNTFuZddFMT qC8KN9PDtQDe7SfrZ/ynTRPKI7rXRVDdWxhNt2u9u//VuJXurkXExDad4Dwqas8o 2+Eq276yuVkJQA1hvlnesO6dwCkqlY1Qhya8fIIvfxKFN72JXZFbl7qoC3pbzb0V iaEHvUEu9Ba4/sa7fqySCAqiOJE0gwjVrjFyn+PFdO8JvrfhMHmjA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgedugddugeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpeehgfelvefhtddtfeehiedtgfehffffffelvdelhffgkedtteehgfeugfehgeet hfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 31 Jan 2022 16:06:03 -0500 (EST) Date: Mon, 31 Jan 2022 16:06:02 -0500 From: Leo Famulari To: Vinicius Monego Subject: Re: Python-black 22.1.0 update Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=66.111.4.28; envelope-from=leo@famulari.name; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: guix-patches@gnu.org, marius@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On Mon, Jan 31, 2022 at 12:41:46AM +0000, Vinicius Monego wrote: > That is, lsp-black is not compatible with this version. If that is the > only error then I guess [3] (or two lines below) can be patched via > substitution to extract the first element of the tuple, corresponding > to the Path, but I haven't tried this. Thanks, reported upstream: https://github.com/rupert/pyls-black/issues/40 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 21:27:30 2022 Received: (at 53640-done) by debbugs.gnu.org; 5 Aug 2022 01:27:30 +0000 Received: from localhost ([127.0.0.1]:55426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJm7d-0004v3-8W for submit@debbugs.gnu.org; Thu, 04 Aug 2022 21:27:30 -0400 Received: from envs.net ([89.163.145.170]:39516 helo=mail.envs.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJm7R-0004ug-MB for 53640-done@debbugs.gnu.org; Thu, 04 Aug 2022 21:27:27 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 896F038A0DEA; Fri, 5 Aug 2022 01:27:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1659662834; bh=D9Ad9G+iZF6Y2NUZ8v7NIZyJoI3WxUyW/H/nfSF5txc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MSqCu1dtsXHAV6wJ18Xnk1FV71irOvhDpP5whIQfY+vv14gPCNLGj99iRbEl1cR0r 15ay3Qs91f4uI0+4Aofmne4v9RUwX9KlB65T13xQBoIAG7ku/Y2Z3OWLAXCk9A3ek8 WlvDXDGqO4ky2vO4sRKy1dQFiCHwOeBd8u+GFguPkPHWF4x0dHl557rr4LOt0hJeY6 BzeEyMiU0xNBEq5acgrdtRkM96X8gXSkeitHaubIB+nhIOHksiJeytPVOcLySB75Az MnaUe2zTWTkW//wUg1soXuPMNCyJXwpi6jRMg5v8hdauaHlXWPpee85JBlxee9xwxu iAzu7RFU0WCZEzdR7DYZHWPxM/EJtvY5gPBFbfXiKK90npN0fwMxJvi4LKuUBMZydc HF4xLKOBvTg81K0PXbzhOPU7BnI1BflQlg5mapKqC5FyS0Avac3v+4bRLFgh3nzo1s y3/m1VM92Eo/p0m70lGu7DMy69hWqK/kpkVcJtu3BEZWmx87sQ6oQOP7dWAYgharrd y6ZSbeYAlCw6SVL6hQ3IYphQLv1MDuIK6rwWp1FRyoV9XY5LBTt+nu/yFPAU9rqgvA MAlgdvQm6FERFxu4cv+d90YF2kGMzO7aKn0L5WDMGHc2Ms4+BiITq6EkfKy/nTpPaV 5k2JQsid5yhCaViDR9OTdOzU= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WLxor0XVQ7uu; Fri, 5 Aug 2022 01:27:11 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: iyzsong@envs.net) by mail.envs.net (Postfix) with ESMTPSA; Fri, 5 Aug 2022 01:27:11 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 170cb1e0; Fri, 5 Aug 2022 01:27:09 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: Leo Famulari Subject: Re: bug#53640: Python-black 22.1.0 update References: Date: Fri, 05 Aug 2022 09:27:09 +0800 In-Reply-To: (Leo Famulari's message of "Sun, 30 Jan 2022 15:20:02 -0500") Message-ID: <875yj77a4y.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53640-done Cc: 53640-done@debbugs.gnu.org, monego@posteo.net, marius@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Leo Famulari writes: > These patches update python-black to 22.1.0, so it's no longer a beta. We already have python-black 22.3.0, while the latest version is 22.6.0, feel free to update it in another issue. Close this now :) From unknown Mon Aug 18 11:12:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Sep 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator