From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qJ1OG0GsVmUDOAAAG6o9tA:P1 (envelope-from ) for ; Fri, 17 Nov 2023 00:56:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qJ1OG0GsVmUDOAAAG6o9tA (envelope-from ) for ; Fri, 17 Nov 2023 00:56:49 +0100 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 3A73464928 for ; Fri, 17 Nov 2023 00:56:49 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=qD1d0wC0; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700179009; a=rsa-sha256; cv=none; b=oAVyUq2olabf36Qa8nfaU5EQ14XmIJ81q09rgr8UJa/l2rA2rY0IlsRFb0MzLoI85v1QMR mypafHyHbddvsvdUlXfUiJAq/R0sSIgaLSejwrC5hpB7dXcGTM7HNJMb0W0QUx3XbXFXQm lAziQ2RvFrH9N9cHONQI4id+4NSdg8XiKx7SRnK7KhvuJL+7Gn6LWbNDq+BSe4TFlsoxK4 P1T+xi93UjQ+/kT0ryx7ClhrRPXUU6iFw9xK2dkUh8d3pxwi2CaYbNG6/f2UjSCCGgwcUc ZeIGvi9AgXUfZTDvb3wQcAxiIhHVJH5srpz/y8DmGDoOGmrQ+wCGxC0YXh6pFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=qD1d0wC0; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700179009; h=from:from:sender:sender:reply-to: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=+C60Jp2LC9PPfGotWIWzXw2VaJy9jCnLj858iZIWG9o=; b=jvZj+F9E2FsIWfpLPqhp9BrdFD4BODd/H/3oypF2s5M6C/lVlTcnfCFnIhmHiHqs+RMkM7 c3cU6uF/JadI5VKYzr4Yvvyaqn/GMY7e9om+okuMR/Ix5U8KsivnBRHIb5QCHpzmaGxj2V jG0twdjsFyITH9mifDA/sBlB1UCqJb7ffpsBSw6tVLtMtApppYkRr/3sYmIekNBklRHAHo +GJhXq+Z9VFUSS0w/Pc6uxCa+7oHngy//VycTEkch3IyKVDq9NOKldJ3u91jqW2AYsUQJZ Udm6VuSUEP2Vhr7gByls2cE+D+rhvTFkvR0tfVVBGvFOVsfTFNVDnPwwWkB9bA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3mDT-000710-4u; Thu, 16 Nov 2023 18:56:11 -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 1r3mDR-000700-S5 for guix-patches@gnu.org; Thu, 16 Nov 2023 18:56:09 -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 1r3mDR-0000uk-5x; Thu, 16 Nov 2023 18:56:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3mDM-0005OB-EP; Thu, 16 Nov 2023 18:56:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66886] [PATCH v2 5/5] gnu: python-textual: Update to 0.41.0. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Thu, 16 Nov 2023 23:56:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66886 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 66886@debbugs.gnu.org Cc: Giacomo Leidi , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart Received: via spool by 66886-submit@debbugs.gnu.org id=B66886.170017894220650 (code B ref 66886); Thu, 16 Nov 2023 23:56:04 +0000 Received: (at 66886) by debbugs.gnu.org; 16 Nov 2023 23:55:42 +0000 Received: from localhost ([127.0.0.1]:44846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3mCz-0005Mv-QO for submit@debbugs.gnu.org; Thu, 16 Nov 2023 18:55:42 -0500 Received: from confino.investici.org ([93.190.126.19]:57435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3mCv-0005MA-D3 for 66886@debbugs.gnu.org; Thu, 16 Nov 2023 18:55:38 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4SWcNm6k8Fz11Jk; Thu, 16 Nov 2023 23:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1700178936; bh=+C60Jp2LC9PPfGotWIWzXw2VaJy9jCnLj858iZIWG9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qD1d0wC0TCqg7Zcw7AE7hahRUi2H1iMCO2WMCRVFEXHBNRlTJBCVgP/DNYKPbw1lb jbpqrpmffx8AYtOpuv77HEp98DQV0ceVpRYWE7GY1FIqVTfM5/hhYge0Xm6zgOdLEz qxcHR37gGgAjoPxvfySUsNxzlX344ZBnWIBqYk48= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4SWcNm5Lm4z11JD; Thu, 16 Nov 2023 23:55:36 +0000 (UTC) Date: Fri, 17 Nov 2023 00:54:09 +0100 Message-ID: <4f40c077003c47b9a92e6b7c85722962cea290f9.1700178849.git.goodoldpaul@autistici.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <0a59734d147800a6cadbc800a20b24ce7460fde2.1700178849.git.goodoldpaul@autistici.org> References: <0a59734d147800a6cadbc800a20b24ce7460fde2.1700178849.git.goodoldpaul@autistici.org> 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: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 3A73464928 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.10 X-Spam-Score: -6.10 X-TUID: WWD87idxpSVo * gnu/packages/python-xyz.scm (python-textual): Update to 0.41.0; [source]: switch to git-origin; [build-system]: switch to pyproject-build-system; [arguments]: disable failing tests; : use check phase from pyproject-build-system and adapt build machinery to our old version of poetry; [propagated-inputs]: adapt to pyproject.toml; [native-inputs] add poetry and python-pytest-asyncio. Change-Id: I1060b25cb2ec439f26a4348305bc05fd0b09cf07 --- gnu/packages/python-xyz.scm | 58 ++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7a8eaf0db3..29dcded9a0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18217,20 +18217,8 @@ (define-public python-rich-click (define-public python-textual (package (name "python-textual") - (version "0.1.18") + (version "0.41.0") (source (origin - (method url-fetch) - (uri (pypi-uri "textual" version)) - (sha256 - (base32 - "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j")))) - (build-system python-build-system) - (arguments - (let ((tests - ;; The release on pypi comes without tests. We can't build - ;; from this checkout, though, because installation requires - ;; an invocation of poetry. - (origin (method git-fetch) (uri (git-reference (url "https://github.com/Textualize/textual") @@ -18238,19 +18226,41 @@ (define-public python-textual (file-name (git-file-name name version)) (sha256 (base32 - "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax"))))) - (list #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (copy-recursively #$(file-append tests "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv")))))))) + "0fmximmnxb7h7swdrs0amlya09h0yyr1h1k09za7isihb40njwib")))) + (build-system pyproject-build-system) + (arguments + (list + ;; 3 failed, 1932 passed, 1 skipped, 4 xfailed, 10 warnings in 115.19s (0:01:55) + #:test-flags + #~'("-k" + ;; this test fails because of an AssertionError: + ;; assert app.devtools is not None + #$(string-append "not test_textual_env_var" + ;; these tests require python-tresitter-languages + " and not test_register_language" + " and not test_register_language_existing_language")) + #:phases #~(modify-phases %standard-phases + ;; TODO: This is because of our old version of poetry. + ;; It can be removed once it's been updated to a current one. + (add-after 'unpack 'adapt-pyproject.toml + (lambda _ + (substitute* "pyproject.toml" + (("group\\.dev\\.") "dev-")))) + ;; snapshot tests require syrupy + (add-after 'adapt-pyproject.toml 'remove-snapshot-tests + (lambda _ + (delete-file "tests/snapshot_tests/test_snapshots.py")))))) (propagated-inputs - (list python-rich python-typing-extensions)) + (list python-importlib-metadata + python-linkify-it-py + python-markdown-it-py + python-mdit-py-plugins + python-rich + python-typing-extensions)) (native-inputs - (list python-pytest)) + (list poetry + python-pytest + python-pytest-asyncio)) (home-page "https://github.com/Textualize/textual") (synopsis "Build text user interfaces in Python") (description "Textual is a @acronym{TUI, Text User Interface} framework -- 2.41.0