all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giacomo Leidi via Guix-patches via <guix-patches@gnu.org>
To: 66886@debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul@autistici.org>,
	Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>,
	Munyoki Kilyungi <me@bonfacemunyoki.com>,
	jgart <jgart@dismail.de>
Subject: [bug#66886] [PATCH v2 5/5] gnu: python-textual: Update to 0.41.0.
Date: Fri, 17 Nov 2023 00:54:09 +0100	[thread overview]
Message-ID: <4f40c077003c47b9a92e6b7c85722962cea290f9.1700178849.git.goodoldpaul@autistici.org> (raw)
In-Reply-To: <0a59734d147800a6cadbc800a20b24ce7460fde2.1700178849.git.goodoldpaul@autistici.org>

* 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]<test-flags>: disable failing tests;
<phases>: 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





  parent reply	other threads:[~2023-11-16 23:56 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01 16:58 [bug#66886] Update python-textual to 0.41 paul via Guix-patches via
2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via
2023-11-01 17:01   ` [bug#66886] [PATCH 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via
2023-11-01 17:01   ` [bug#66886] [PATCH 3/5] gnu: python-rich: Update to 13.6.0 Giacomo Leidi via Guix-patches via
2023-11-01 17:01   ` [bug#66886] [PATCH 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via
2023-11-01 17:01   ` [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via
2023-11-02  0:14   ` jgart via Guix-patches via
2023-11-16 23:55     ` paul via Guix-patches via
2023-11-18  2:44     ` jgart via Guix-patches via
2023-12-03 15:21       ` paul via Guix-patches via
2023-12-29 22:07         ` paul via Guix-patches via
2024-01-14 23:54           ` paul via Guix-patches via
2024-02-27 18:42             ` paul via Guix-patches via
2024-02-27 18:42               ` bug#66886: " paul via Guix-patches via
2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via
2023-11-16 23:54   ` [bug#66886] [PATCH v2 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via
2023-11-16 23:54   ` [bug#66886] [PATCH v2 3/5] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via
2023-11-16 23:54   ` [bug#66886] [PATCH v2 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via
2023-11-16 23:54   ` Giacomo Leidi via Guix-patches via [this message]
2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via
2023-12-03 15:22   ` [bug#66886] [PATCH v3 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via
2023-12-03 15:22   ` [bug#66886] [PATCH v3 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via
2023-12-03 15:22   ` [bug#66886] [PATCH v3 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via
2023-12-03 15:22   ` [bug#66886] [PATCH v3 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via
2023-12-03 15:22   ` [bug#66886] [PATCH v3 6/6] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via
2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via
2024-01-14 23:59   ` [bug#66886] [PATCH v4 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via
2024-01-14 23:59   ` [bug#66886] [PATCH v4 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via
2024-01-14 23:59   ` [bug#66886] [PATCH v4 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via
2024-01-14 23:59   ` [bug#66886] [PATCH v4 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via
2024-01-14 23:59   ` [bug#66886] [PATCH v4 6/6] gnu: python-textual: Update to 0.47.1 Giacomo Leidi via Guix-patches via

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

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

  git send-email \
    --in-reply-to=4f40c077003c47b9a92e6b7c85722962cea290f9.1700178849.git.goodoldpaul@autistici.org \
    --to=guix-patches@gnu.org \
    --cc=66886@debbugs.gnu.org \
    --cc=goodoldpaul@autistici.org \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.