Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release 0.2.7 #78

Merged
merged 7 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions bin/wcwidth-browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Other Languages
History
=======

Unreleased *2023-?-?*
0.2.7 *2023-09-23*
* **Updated** tables to include Unicode Specification 15.1.0.

0.2.6 *2023-01-14*
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion wcwidth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion wcwidth/wcwidth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])


Expand Down