Up to [cvs.NetBSD.org] / pkgsrc / devel / py-wcwidth
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-wcwidth: provide working test target
py-wcwidth: fix PLIST for setuptools 84.2 and depend on it Bump PKGREVISION.
py-wcwidth: updated to 0.9.4 0.9.4 *2026-10-24* * **Bugfix** Flag emojis were split by grapheme breaks when following control characters, like newline or tab * **Improved** performance of most general functions by +64%
py-wcwidth: updated to 0.9.3 0.9.3 * **Bugfix** libwcwidth no longer has undefined behavior on NULL or empty input in the UTF-8 and alignment functions * **Changed** `HyperlinkParams.parse()`_ now rejects trailing text * **Bugfix** `wrap()`_ should keep a link's own OSC 8 params across a line break
py-wcwidth: updated to 0.9.2 0.9.2 *2026-10-04* * **Bugfix** `wrap()`_ should omit an empty line as output, like `textwrap.wrap()`_ * **Bugfix** `clip()`_ when using non-default argument, ``tabsize=0`` * **Bugfix** regional-indicator pairs (flags) when corrected for terminals that show lone regional indicators as narrow (xterm, wezterm, VTE, and others) in `wcstwidth()`_ and `width()`_
py-wcwidth: updated to 0.9.1 0.9.1 *2026-09-23* * **Bugfix** a regression in 0.9.0 Python and libwcwidth_ `width()`_ mis-measured CSI sequences over 64 bytes * **Performance** improvement of ~15% for 11 many Python API functions when using default ``ambiguous_width`` and ``term_program`` arguments. 0.9.0 *2026-09-23* * **New** Optional CPython extension using libwcwidth_, improving performance 10-58x * **Drop Support** for Python 3.8
py-wcwidth: updated to 0.8.4
0.8.4 *2026-09-17*
* **Bugfix** `clip()`_ hangs with OSC 8 hyperlinks in some conditions
* **Bugfix** width of ITU T.416 colon-format SGR color parameters
* **Bugfix** width of OSC 66 text sizing sequences without a text field
* **Bugfix** `width()`_, `ljust()`_, `rjust()`_, `center()`_, `clip()`_ and `strip_sequences()`_
treated ``ESC ( LF`` as text instead of a character set designation (rare)
* **Bugfix** `clip()`_ painter's algorithm and "tab expansion" should be spaces
* **Changed** `iter_graphemes()`_ clustering rule GB9c for Unicode 18.0
* **Changed** ``ambiguous_width`` arguments are now clamped to allowed range (1, 2)
* **Changed** `wrap()`_ now raises ``ValueError`` for a width of zero or less, matching stdlib
``textwrap``. Previously ``wrap('女', 0)`` returned ``['女']``
* **Changed** `clip()`_ arguments ``start=0`` and ``end=-1`` become optional
* **Updated** tables for Unicode version 18.0
* **Updated** ``ucs-detect`` data files used in some automatic tests are no longer
distributed,
py-wcwidth: update to 0.8.3.
0.8.3 2026-08-28
Bugfix Do not hang on wrap() calls of width 1 with text containing OSC8 hyperlinks and wide characters, PR #231.
Bugfix clip() with propagate_sgr=True, should match behavior of propagate_sgr(), PR #235.
py-wcwidth: updated to 0.8.2 0.8.2 bugfix: IndexError when 'n' exceeds length
py-wcwidth: updated to 0.8.1 0.8.1 Improved corrections tables
py-wcwidth: updated to 0.8.0 0.8.0 New support for Variation Selector 15 Emojis as narrow, New argument, term_program for wcstwidth(), width(), clip(), wrap(), ljust(), rjust(), and center(). False disables corrections; True auto-detects by TERM_PROGRAM or TERM; string values accept canonical names matching list_term_programs(). wcstwidth()_ defaults to True; all other functions default to False. Improved performance on Python 3.15 using standard library iter_graphemes() Improved memory usage and import time for Python 3.15 using lazy imports Bugfix Invisible_Stacker viramas now form conjuncts (Burmese, Khmer, etc.) and change some Virama width calculations to match jacobsandlund/uucode_ (ghostty) Updated graphemes width maximum now 2, matching Ghostty, foot, and Windows Terminal
py-wcwidth: update to 0.7.0.
New support for kitty text sizing protocol (OSC 66) in width() and clip().
New clip() parameter control_codes='parse', 'ignore', and 'strict'. clip()
is now able to clip OSC 8 hyperlinks and OSC 66 text sizing sequences.
Improved clip() and width() to support horizontal cursor sequences (cub, cuf,
hpa). Cursor-left (cub) or backspace (\b) now overwrites text. column_address
(hpa) and carriage return (\r) are now parsed, and more values conditionally raise
ValueError when control_codes='strict'.
PR's
Remove docs, add utils by @jquast in #209
Bump requests from 2.32.5 to 2.33.0 in /docs by @dependabot[bot] in #210
Bump pygments from 2.19.2 to 2.20.0 in /docs by @dependabot[bot] in #212
dependabot nonsense by @jquast in #215
Expand terminal escape sequence for three more ECMA-48 "families" by @jquast in #214
Improve clip() and width() with hyperlinks and overtyping by @jquast in #216
Improve width() and clip() with kitty Text Sizing Protocol by @jquast in #213
py-wcwidth: update to 0.6.0. Complete textwrap.wrap() with 6 missing params! by @jquast in #207
py-wcwidth: update to 0.5.3.
0.5.3
Add Virama conjunct for the Brahmic scripts by @jquast in #204
0.5.2
Do not distribute any data files by @jquast in #199
Update specs and zero-width tables regarding Mc by @jquast in #200
Standalone emoji support by @jquast in #202
0.5.1
Updated generated zero and wide code tables to length of 1 to complete the previously announced removal of historical wide and zero tables. #196
0.5.0
Drop Support of many historical versions of wide and zero unicode tables. Only the latest Unicode version (17.0.0) is now shipped. The related unicode_version='auto' keyword of the wcwidth()-family of functions are ignored. list_versions() always returns a tuple of only a single element of the only unicode version supported. #195
Performance improvement of most common call without version or ambiguous_width specified by 20%. #195
New Function propagate_sgr() for applying SGR state propagation to a list of lines. #194
Improved wrap() and clip() with propagate_sgr=True. #194
Bugfix clip() zero-width characters at clipping boundaries. #194
Bugfix OSC Hyperlinks when broken mid-text by wrap(). #193
0.4.0
Bugfix: OSC Hyperlinks should not be broken by wrap() by @jquast in #191
New functions: iter_graphemes_reverse(), grapheme_boundary_before() by @jquast in #192
py-wcwidth: update to 0.3.5.
0.3.5
Re-stamp package version correctly, 0.3.4 packaged a failing test
0.3.4
bugfix our center() padding algorithm by @jquast in #188
docfix: accidental double-escapes \t -> \t by @jquast in #187
0.3.3
Add fast path for ASCII printables to width() by @hugovk in #185
Add py.typed file and Typing :: Typed classifier by @hugovk in #184
0.3.2
type hinting for full mympy --strict compliance, by @penguinolog #183
0.3.1
Add benchmarking using codspeed.io by @jquast in #180
improve width() performance by @jquast in #181
0.3.0
Major changes since 0.2.14, in order
Migrate from setup.py + setuptools to pyproject.toml + hatchling by @hugovk in #156
Small improvements to update-tables.py and wcwidth-browser.py by @jquast in #160
New: iter_graphemes() by @jquast in #165
New: width() terminal-aware string measurement by @jquast in #166
New: ljust(), rjust(), center() justify text by @jquast in #168
New: wrap() by @jquast in #169
improve wcswidth() performance ~30% by @jquast in #171
New ambigous_width=1 argument by @jquast in #172
New strip_sequences() and cut() functions by @jquast in #173
Width 0 for Default_Ignorable_Code_Point characters by @jquast in #174
Bugfix for Prepended_Concatenation_Mark characters by @jquast in #176
py-wcwidth: updated to 0.2.14 0.2.14 Drop Support for Python 2.7 and 3.5. Update tables to include Unicode Specifications 16.0.0 and 17.0.0. Bugfix U+00AD SOFT HYPHEN should measure as 1, versions 0.2.9 through 0.2.13 measured as 0.
Fix PLIST after py-setuptools update; bump depends and revision
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-wcwidth: switch to wheel.mk
py-wcwidth: updated to 0.2.13 0.2.13 Bugfix zero-width support for Hangul Jamo (Korean)
py-wcwidth: updated to 0.2.12 0.2.12 re-release to remove .pyi file misplaced in wheel file
py-wcwidth: updated to 0.2.11 0.2.11 Include tests files in the source distribution
py-wcwidth: updated to 0.2.10 0.2.10 2023-11-13 Bugfix accounting of some kinds of emoji sequences using U+FE0F Variation Selector 16. Updated Specification.
py-wcwidth: updated to 0.2.9 0.2.9 Bugfix zero-width characters used in Emoji ZWJ sequences, Balinese, Jamo, Devanagari, Tamil, Kannada and others. Updated to include Specification of character measurements.
py-wcwidth: updated to 0.2.8 0.2.8 Minor changes Include requirements files in the source distibution
py-wcwidth: updated to 0.2.7 0.2.7 Major changes Update Unicode version to 15.1.0 Minor changes Add testing support for Python 3.12 Update README Update requirements Enable GitHub Actions CI Prepare release 0.2.7 Update tox envs in README Include bin, docs, and tox.ini in the source distribution
*: use PYTHON_VERSION instead of _PYTHON_VERSION
py-wcwidth: updated to 0.2.6 0.2.6 Fix example for str.rjust(20, '_') Bugfix sphinx build on readthedocs.org Add CodeQL workflow for GitHub code scanning Switch to using importlib.metadata Use a new jinja2 templating process to update library to latest unicode (15.0)
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-wcwidth: updated to 0.2.5 0.2.5: Do not depend on pkg_resources module for list_versions() function.
py-wcwidth: updated to 0.2.4 0.2.4: Bug fixes
py-wcwidth: updated to 0.2.3 0.2.3: include tests in sdist
py-wcwidth: updated to 0.2.2 0.2.2: Support *ALL* Unicode Versions (0.4.1 through 13.0.0)
py-wcwidth: updated to 0.1.9 0.1.9: Performance improvements and Unicode version 13
py-wcwidth: updated to 0.1.8 0.1.8: Update tables to Unicode Specification 12.0.0 * remove static analysis * EastAsianWidth v9 -> v12 * README and tox.ini
Import wcwidth-0.1.7 as py-wcwidth This Library is mainly for those implementing a Terminal Emulator, or programs that carefully produce output to be interpreted by one Originally packaged in pkgsrc-wip by: - K.I.A.Derouiche