From patchwork Mon Feb 12 17:55:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 60210 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 4EF7327BBEC; Mon, 12 Feb 2024 18:00:21 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED 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 82DB327BBE2 for ; Mon, 12 Feb 2024 18:00:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZaav-0002Gv-NG; Mon, 12 Feb 2024 12:59:53 -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 1rZaat-0002GC-8a for guix-patches@gnu.org; Mon, 12 Feb 2024 12:59:51 -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 1rZaat-0005LS-0B; Mon, 12 Feb 2024 12:59:51 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZab5-0006C1-SO; Mon, 12 Feb 2024 13:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68207] [PATCH v2 5/5] gnu: python-textual: Update to 0.50.1. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Mon, 12 Feb 2024 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68207 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68207@debbugs.gnu.org Cc: Felix Gruber , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by 68207-submit@debbugs.gnu.org id=B68207.170776078723683 (code B ref 68207); Mon, 12 Feb 2024 18:00:03 +0000 Received: (at 68207) by debbugs.gnu.org; 12 Feb 2024 17:59:47 +0000 Received: from localhost ([127.0.0.1]:46061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZaao-00069s-Gs for submit@debbugs.gnu.org; Mon, 12 Feb 2024 12:59:47 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZaak-00068f-KW for 68207@debbugs.gnu.org; Mon, 12 Feb 2024 12:59:43 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0FE15240101 for <68207@debbugs.gnu.org>; Mon, 12 Feb 2024 18:59:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707760760; bh=CWdAkf0qv3TBp4zVRTym5IwfLsQZjkH8Ga5qTL8OP0U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=sEBCj7L0mSkKPky0rdPnDv3Urp3+JrEVnvbpZZrLBkj0FD2WuUAnkj2jyH7km3tVM H7VfeRp2zgA+d6V7PN4kEEUzDoazmXad36EQF6Kvs6KPHXahLARXvdsMSM7qLk1hUa IU2kAtaDgn2YO1Xg15gnmcGSyJ3BSvGqn16Owbj9BUdGUNk9mmC7KE/XRYqpFXHDxf FHo36KYiCp6cUC7HPAN7SHc/szFTPfE57TDkz8FaVPv72EdT6MRpPw/b00Psc1xxdB 24OJRNu/uYcQaobLoUv25+fs8hMzZtvHGyxGH0vejB+q0O0wj9oXoMY99OG48UIV6s IqFqQqFFDBsow== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TYXK33tQNz9rxF; Mon, 12 Feb 2024 18:59:19 +0100 (CET) From: Felix Gruber Date: Mon, 12 Feb 2024 17:55:30 +0000 Message-ID: <6898deb52f47658960781ab672e5d4b17c931672.1707760530.git.felgru@posteo.net> In-Reply-To: References: MIME-Version: 1.0 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+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-textual): Update to 0.50.1. [source]: Download from github as pypi package does not include tests. [build-system]: Change to pyproject-build-system. [arguments]: Remove custom 'check phase; add #:test-flags to disable broken tests. [propagated-inputs]: Add python-markdown-it-py, python-mdit-py-plugins and python-tree-sitter. [native-inputs]: Add python-poetry-core and python-pytest-asyncio. Change-Id: Ib144dc87f73e91d4c9d2e8f91ce6ce7a86a481a9 --- gnu/packages/python-xyz.scm | 49 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index afd5caf541..1d25ad6f8a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -108,7 +108,7 @@ ;;; Copyright © 2021 Simon Streit ;;; Copyright © 2021, 2022, 2023 Daniel Meißner ;;; Copyright © 2021, 2022 Pradana Aumars -;;; Copyright © 2021, 2022, 2023 Felix Gruber +;;; Copyright © 2021–2024 Felix Gruber ;;; Copyright © 2021 Sébastien Lerique ;;; Copyright © 2021 Raphaël Mélotte ;;; Copyright © 2021 ZmnSCPxj @@ -266,6 +266,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages textutils) #:use-module (gnu packages time) #:use-module (gnu packages tls) + #:use-module (gnu packages tree-sitter) #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages web) @@ -19242,20 +19243,8 @@ (define-public python-rich-click (define-public python-textual (package (name "python-textual") - (version "0.1.18") + (version "0.50.1") (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") @@ -19263,19 +19252,29 @@ (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")))))))) + "10mmmgsq5pblr9ijgyln79p3hc7sah56k2hkzlvm2abrr9gwgpcf")))) + (build-system pyproject-build-system) + (arguments + (list #:test-flags + ;; Snapshot tests require python-pytest-textual-snapshot which + ;; in turn depends on python-textual. + '(list "--ignore=tests/snapshot_tests/test_snapshots.py" + "-k" (string-append + ;broken for unknown reason + "not test_textual_env_var" + ; tests that require python-treesitter-languages + " and not test_register_language" + " and not test_register_language_existing_language" + )))) (propagated-inputs - (list python-rich python-typing-extensions)) + (list python-markdown-it-py + python-mdit-py-plugins + python-rich + python-tree-sitter + ; python-tree-sitter-languages + python-typing-extensions)) (native-inputs - (list python-pytest)) + (list python-poetry-core 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