Skip to content

Commit 43eeee4

Browse files
committed
Switch to cwcwidth
1 parent 6b0a8a6 commit 43eeee4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install "blessings>=1.5" "wcwidth>=0.1.4" pyte pytest
25+
pip install "blessings>=1.5" cwcwidth pyte pytest
2626
- name: Build with Python ${{ matrix.python-version }}
2727
run: |
2828
python setup.py build

curtsies/formatstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import itertools
4242
import re
4343
import sys
44-
from wcwidth import wcswidth
44+
from cwcwidth import wcswidth
4545

4646
from .escseqparse import parse, remove_ansi
4747
from .termformatconstants import (

docs/FmtStr.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ To access this information, :py:class:`~curtsies.FmtStr` objects have a :py:clas
218218
>>> len(combined), combined.width, combined.s
219219
(2, 1, u'a\u0324')
220220

221-
As shown above, `full width characters <http://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms>`_ can take up two columns, and `combining characters <http://en.wikipedia.org/wiki/Combining_character>`_ may be combined with the previous character to form a single grapheme. Curtsies uses a `Python implementation of wcwidth <https://github.com/jquast/wcwidth>`_ to do this calculation.
221+
As shown above, `full width characters <http://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms>`_ can take up two columns, and `combining characters <http://en.wikipedia.org/wiki/Combining_character>`_ may be combined with the previous character to form a single grapheme. Curtsies uses `Python bindings of wcwidth <https://github.com/sebastinas/cwcwidth>`_ to do this calculation.
222222

223223
FmtStr - API Docs
224224
=================

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def long_description():
3131
python_requires=">=3.6",
3232
install_requires=[
3333
"blessings>=1.5",
34-
"wcwidth>=0.1.4",
34+
"cwcwidth",
3535
],
3636
tests_require=[
3737
"pyte",

0 commit comments

Comments
 (0)