pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/py-textual



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun May  4 15:11:08 UTC 2025

Modified Files:
        pkgsrc/comms/py-textual: Makefile distinfo

Log Message:
py-textual: update to 3.2.0.

There are a few interesting features in this release.

Many widgets have grown a compact reactive. If you set this to True
then the widget will have a compact (borderless) style.

Reactives have a new toggle_class attribute, that toggles a TCSS
classname according to the truthyness of its value. If that sounds
complicated, it really isn't in practice. Let's see it in action:

class MyWidget(Widget):
    compact = reactive(False, toggle_class="-textual-compact")

This adds a boolean attribute to the widget. If you set compact=True
then it will add the class "-textual-compact". If you set compact=False
it will remove the class. Simples.

We also have breakpoint support, so you can build UIs that adjust
to the dimensions of the screen. This was always possible, but it
was a pattern before. Now it is a first class feature. See the
breakpoints.py example.

We also have two new pseudo classes: :first-child and :last-child,
which have the same meaning as browser CSS. Contributed by
@sponsfreixes

There is one potential breaking change. RadioSet now has a default
width of 1fr, meaning they will take up the full available space.
This makes RadioSet size like other widgets. If you want the original
behavior, then set the width to "auto"


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/comms/py-textual/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/comms/py-textual/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/comms/py-textual/Makefile
diff -u pkgsrc/comms/py-textual/Makefile:1.21 pkgsrc/comms/py-textual/Makefile:1.22
--- pkgsrc/comms/py-textual/Makefile:1.21       Mon Apr 28 11:01:11 2025
+++ pkgsrc/comms/py-textual/Makefile    Sun May  4 15:11:08 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2025/04/28 11:01:11 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2025/05/04 15:11:08 wiz Exp $
 
-DISTNAME=      textual-3.1.1
+DISTNAME=      textual-3.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    comms devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/textual/}
@@ -26,8 +26,8 @@ TEST_DEPENDS+=        ${PYPKGPREFIX}-textual-de
 
 USE_LANGUAGES= # none
 
-# as of 3.1.1
-# 206 failed, 3024 passed, 3 skipped, 5 xfailed, 2 warnings
+# as of 3.2.0
+# 212 failed, 3026 passed, 3 skipped, 5 xfailed, 2 warnings
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/comms/py-textual/distinfo
diff -u pkgsrc/comms/py-textual/distinfo:1.17 pkgsrc/comms/py-textual/distinfo:1.18
--- pkgsrc/comms/py-textual/distinfo:1.17       Mon Apr 28 11:01:11 2025
+++ pkgsrc/comms/py-textual/distinfo    Sun May  4 15:11:08 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.17 2025/04/28 11:01:11 wiz Exp $
+$NetBSD: distinfo,v 1.18 2025/05/04 15:11:08 wiz Exp $
 
-BLAKE2s (textual-3.1.1.tar.gz) = f75c0bafbcb5903f35339921ca3c683c1ced01c917fc31da80288c6bf76da4a5
-SHA512 (textual-3.1.1.tar.gz) = 09e2af2c690a323ce3ad18487d106cb1c565d6f715198ce55290ee9ed1e1dc8a972aa886664ab1e731da54b5e9c4010e02914c1f1f416231620cf6e429cd06e0
-Size (textual-3.1.1.tar.gz) = 1592628 bytes
+BLAKE2s (textual-3.2.0.tar.gz) = 31e0f6060badaa67eb27c1fd7be735c8e70a7ad03368d22cbd7f253b66a14664
+SHA512 (textual-3.2.0.tar.gz) = 548b45e59d2029e5016698eed19c94d8c73fc5cfa15bba292f88729f74748d559f956eb7ee69faca5aa0db4cdfdf14594af0968ab01e2ecf03271fac35f39cfe
+Size (textual-3.2.0.tar.gz) = 1607281 bytes



Home | Main Index | Thread Index | Old Index