unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 68207@debbugs.gnu.org
Cc: Felix Gruber <felgru@posteo.net>,
	Sharlatan Hellseher <sharlatanus@gmail.com>,
	Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>,
	Munyoki Kilyungi <me@bonfacemunyoki.com>,
	Sharlatan Hellseher <sharlatanus@gmail.com>,
	jgart <jgart@dismail.de>
Subject: [bug#68207] [PATCH v4 5/8] gnu: python-textual: Update to 0.50.1.
Date: Tue, 13 Feb 2024 14:15:42 +0000	[thread overview]
Message-ID: <c277a22f7e5556443a29bf5bd05bfb01ba8c591b.1707833700.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <9c3d89f5eb0359dc6493dfc0d24667d2a5c6b484.1707833700.git.sharlatanus@gmail.com>

From: Felix Gruber <felgru@posteo.net>

* 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 <sharlatanus@gmail.com>
---
 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 <simon@netpanic.org>
 ;;; Copyright © 2021, 2022, 2023 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
 ;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
-;;; Copyright © 2021, 2022, 2023 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021–2024 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
 ;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj@protonmail.com>
@@ -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
-- 
2.41.0





  parent reply	other threads:[~2024-02-13 14:18 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 3/5] gnu: Add python-pygments-next Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 5/5] gnu: python-textual: Update to 0.46.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 0/5] Update python-textual to 0.50.1 Felix Gruber
2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 3/5] gnu: Add python-pygments-next Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 3/5] gnu: Add python-pygments-next Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
2024-02-13 14:13 ` [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Sharlatan Hellseher
2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 2/8] gnu: python-mdit-py-plugins: Update to 0.4.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 3/8] gnu: Add python-pygments-next Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 4/8] gnu: python-rich: Update to 13.7.0 Sharlatan Hellseher
2024-02-13 14:15   ` Sharlatan Hellseher [this message]
2024-02-13 14:15   ` [bug#68207] [PATCH v4 6/8] gnu: python-jupytext: Update to 1.15.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 7/8] gnu: python-lightning-cloud: Disable tests Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 8/8] gnu: python-myst-parser: Relax some requirements Sharlatan Hellseher
2024-02-27  9:24 ` bug#68207: [PATCH 0/5] Update python-textual to 0.46.0 Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c277a22f7e5556443a29bf5bd05bfb01ba8c591b.1707833700.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=68207@debbugs.gnu.org \
    --cc=felgru@posteo.net \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).