From patchwork Tue Feb 13 14:15:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 60272 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 3D7E027BBE9; Tue, 13 Feb 2024 14:18:25 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable 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 4CD6627BBE2 for ; Tue, 13 Feb 2024 14:18:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZtbZ-00005Y-SK; Tue, 13 Feb 2024 09:17:49 -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 1rZtbX-0008WT-Ev for guix-patches@gnu.org; Tue, 13 Feb 2024 09:17:47 -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 1rZtbX-0003l2-6k; Tue, 13 Feb 2024 09:17:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZtbo-0007pW-JJ; Tue, 13 Feb 2024 09:18:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68207] [PATCH v4 5/8] gnu: python-textual: Update to 0.50.1. Resent-From: Sharlatan Hellseher 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: Tue, 13 Feb 2024 14:18:04 +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 , Sharlatan Hellseher , 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.170783385029998 (code B ref 68207); Tue, 13 Feb 2024 14:18:04 +0000 Received: (at 68207) by debbugs.gnu.org; 13 Feb 2024 14:17:30 +0000 Received: from localhost ([127.0.0.1]:43514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZtbF-0007ng-Gc for submit@debbugs.gnu.org; Tue, 13 Feb 2024 09:17:30 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:43067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZtb5-0007m6-6g for 68207@debbugs.gnu.org; Tue, 13 Feb 2024 09:17:20 -0500 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40fd2f7ef55so30777755e9.0 for <68207@debbugs.gnu.org>; Tue, 13 Feb 2024 06:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707833756; x=1708438556; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WUYZsLRGfmh71WtyG6ReTLl+4iugwdPEbz+G+CXIYxg=; b=D4D7eqxKg9RTAhL4cK0V0bIzW825g8Lbt9al+YuhGgk/vJK7IJDB/Xd3YpZhpa3WdH FKO91nuCn0PibAUPMkmrhbYuyq8P0/iKaFK1JV5KOdIyETGuZGy+Oy74RtJaAvcIoFcv h6ROBzXU4RfANvB8DmxWqCq9lVtdigHtHZQokeRRNSRIWeO+UG2pRi8yaowdibVBmH7R AEQ642NRXfYdeR60whK+n7gwun+aHUiZBT23/RrSEHc0nOW8Q3Y7F/6/jx65fa+OP83T UOkxySPiZUV+8vd0LIatPSVqRHzbHicwIhwb3zAOA1VYWsN4df0nMaKrGxdHTcDltIRI vQgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707833756; x=1708438556; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WUYZsLRGfmh71WtyG6ReTLl+4iugwdPEbz+G+CXIYxg=; b=eiXoBx4QVUhDUUfNOe6As9vn69v8Y92rYRQXatm6NKnh1ekeFPLraSBSpxnIAzvmc4 fjEoceU5IDtvtju8gEuv6m2GLlnDNXK6/nS2qmJmou6MNr4IAbbjufUfEn2Dq7avei2n 9x94GaiDu3ubZwyGZqd+rdOeUqQBPeAEYPCTHUHxRYyb+MG7tX9hYmvpgNK+hESwQdAm JikQwSczk5WIonJK8+2vYh1DZrgm9GP2kRc7syQBvmdCYrk4jSG+66kaqjHmRUV6egs6 PnV6aCWiOfzndbO367A6Y3Oxg5uIe3i097yITPGa7h/47tp1g403/xuj2xVihHUnWHMB vrpQ== X-Gm-Message-State: AOJu0YxVeEj4VQCr/caKB7hyZ4CDo2Yqj+QSe5KO6dBFgNkqoluc/9c8 y19SSqwOVnDzfLogaoqqXenY9vRs7A8Ow+cSjHFyF8OJU9BzXZKTHGW41MZ7878= X-Google-Smtp-Source: AGHT+IHnpDcc464TvisX1NsLuPPheg2nFdPwdZvWvheiGJVCg+BkVeIlv8W/qi8G5TjWSyHQmLsGZA== X-Received: by 2002:a05:600c:314e:b0:410:4b4:dc7f with SMTP id h14-20020a05600c314e00b0041004b4dc7fmr2324834wmo.4.1707833756106; Tue, 13 Feb 2024 06:15:56 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXkjTNp2M4JhwMFc84L/gKHDC9oE6PyOBpcgnOvt20rp52fyHP+U9SvKH5mx2NZMEifH8yXklEggmxPBTmOzwSrAVnggk8= Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id je11-20020a05600c1f8b00b00410885ba8casm10685161wmb.39.2024.02.13.06.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 06:15:55 -0800 (PST) From: Sharlatan Hellseher Date: Tue, 13 Feb 2024 14:15:42 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <9c3d89f5eb0359dc6493dfc0d24667d2a5c6b484.1707833700.git.sharlatanus@gmail.com> References: <9c3d89f5eb0359dc6493dfc0d24667d2a5c6b484.1707833700.git.sharlatanus@gmail.com> 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 From: Felix Gruber * 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 Signed-off-by: Sharlatan Hellseher --- 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..27665e1cad 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_language_binary_missing" + " 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 ; optional, not packed yet + 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