From 8114dde71cb9762183a15fb8224da0ba2ef0145d Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 22 Sep 2023 21:57:02 -0400 Subject: [PATCH 1/6] small spellfix --- wcwidth/wcwidth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcwidth/wcwidth.py b/wcwidth/wcwidth.py index 6162cdd..0045b74 100644 --- a/wcwidth/wcwidth.py +++ b/wcwidth/wcwidth.py @@ -218,7 +218,7 @@ def wcwidth(wc, unicode_version='auto'): if _bisearch(ucs, ZERO_WIDTH[_unicode_version]): return 0 - # "Wide AastAsian" (and emojis) + # "Wide EastAsian" (and emojis) return 1 + _bisearch(ucs, WIDE_EASTASIAN[_unicode_version]) From 9291be642941ceaf94589d1e70be5b136d24cea7 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 22 Sep 2023 22:00:34 -0400 Subject: [PATCH 2/6] bump for release version 0.2.7 --- docs/intro.rst | 2 +- setup.py | 2 +- wcwidth/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/intro.rst b/docs/intro.rst index 487b681..bbbc5e0 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -217,7 +217,7 @@ Other Languages History ======= -Unreleased *2023-?-?* +0.2.7 *2023-09-22* * **Updated** tables to include Unicode Specification 15.1.0. 0.2.6 *2023-01-14* diff --git a/setup.py b/setup.py index ec302f4..fdfd00c 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def main(): setuptools.setup( name='wcwidth', # NOTE: manually manage __version__ in wcwidth/__init__.py ! - version='0.2.6', + version='0.2.7', description=( "Measures the displayed width of unicode strings in a terminal"), long_description=codecs.open( diff --git a/wcwidth/__init__.py b/wcwidth/__init__.py index ec554c3..437e8d4 100644 --- a/wcwidth/__init__.py +++ b/wcwidth/__init__.py @@ -25,4 +25,4 @@ # We also used pkg_resources to load unicode version tables from version.json, # generated by bin/update-tables.py, but some environments are unable to # import pkg_resources for one reason or another, yikes! -__version__ = '0.2.6' +__version__ = '0.2.7' From d4d08d5f812e36a67870bb655ba5d6d3be736962 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 22 Sep 2023 22:08:51 -0400 Subject: [PATCH 3/6] small bugfix for escape key in wcwidth-browser when selecting 'v'ersion, pressing escape should return empty string and redraw the screen. --- bin/wcwidth-browser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/wcwidth-browser.py b/bin/wcwidth-browser.py index fb6ac19..51bcc21 100755 --- a/bin/wcwidth-browser.py +++ b/bin/wcwidth-browser.py @@ -54,8 +54,8 @@ def readline(term, width): inp = term.inkey() if inp.code == term.KEY_ENTER: break - if inp.code == term.KEY_ESCAPE or inp == chr(3): - text = None + if inp.code == term.KEY_ESCAPE: + text = '' break if not inp.is_sequence and len(text) < width: text += inp @@ -478,7 +478,7 @@ def _process_keystroke_commands(self, inp): # library performs best-match (with warnings) self.unicode_version = _wcmatch_version(inp) self.initialize_page_data() - self.on_resize(None, None) + self.on_resize(None, None) def _process_keystroke_movement(self, inp, idx, offset): """Process keystrokes that adjust index and offset.""" From 1c33a1c3da801f569fc9c2af5da1f4be4e471ece Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 22 Sep 2023 22:11:13 -0400 Subject: [PATCH 4/6] use utc date --- docs/intro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro.rst b/docs/intro.rst index bbbc5e0..37cf0b5 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -217,7 +217,7 @@ Other Languages History ======= -0.2.7 *2023-09-22* +0.2.7 *2023-09-23* * **Updated** tables to include Unicode Specification 15.1.0. 0.2.6 *2023-01-14* From 8b4bc91817774165695b102523c60710b7d620c1 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 22 Sep 2023 22:20:04 -0400 Subject: [PATCH 5/6] Add new required file '.readthedocs.yaml' for rtd https://blog.readthedocs.com/migrate-configuration-v2/ --- .readthedocs.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..4ef1387 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,11 @@ +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details +version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.11" +sphinx: + configuration: docs/conf.py +python: + install: + - requirements: docs/requirements.txt From 241c6107f28505f2dbb56d8cc19c4380200a9749 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Thu, 28 Sep 2023 19:52:25 -0400 Subject: [PATCH 6/6] update release date for today --- docs/intro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro.rst b/docs/intro.rst index 37cf0b5..f686a6b 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -217,7 +217,7 @@ Other Languages History ======= -0.2.7 *2023-09-23* +0.2.7 *2023-09-28* * **Updated** tables to include Unicode Specification 15.1.0. 0.2.6 *2023-01-14*