From d03dc9afc7ca81980dc4fbc60fa2d4e163a64f1e599e2084fc65db34a78ee370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 29 Oct 2025 14:20:47 +0000 Subject: [PATCH] Accepting request 1314364 from home:glaubitz:branches:devel:languages:python - Update to 0.2.14 * Drop Support for Python 2.7 and 3.5. PR #117. * Update tables to include Unicode Specifications 16.0.0 and 17.0.0. PR #146. * Bugfix U+00AD SOFT HYPHEN should measure as 1, versions 0.2.9 through 0.2.13 measured as 0. PR #149. - Drop 0001-Don-t-use-codecs.open-on-Python-3.patch, merged upstream OBS-URL: https://build.opensuse.org/request/show/1314364 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=54 --- 0001-Don-t-use-codecs.open-on-Python-3.patch | 41 -------------------- python-wcwidth.changes | 11 ++++++ python-wcwidth.spec | 3 +- wcwidth-0.2.13.tar.gz | 3 -- wcwidth-0.2.14.tar.gz | 3 ++ 5 files changed, 15 insertions(+), 46 deletions(-) delete mode 100644 0001-Don-t-use-codecs.open-on-Python-3.patch delete mode 100644 wcwidth-0.2.13.tar.gz create mode 100644 wcwidth-0.2.14.tar.gz diff --git a/0001-Don-t-use-codecs.open-on-Python-3.patch b/0001-Don-t-use-codecs.open-on-Python-3.patch deleted file mode 100644 index 82c511a..0000000 --- a/0001-Don-t-use-codecs.open-on-Python-3.patch +++ /dev/null @@ -1,41 +0,0 @@ -From ec2d19f90818ea608076dfbb1cb7951ac0b7372d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Wed, 28 May 2025 16:53:31 +0200 -Subject: [PATCH] Don't use codecs.open on Python 3 - -This is to avoid: - - DeprecationWarnings: codecs.open() is deprecated. Use open() instead. ---- - tests/test_emojis.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/tests/test_emojis.py b/tests/test_emojis.py -index 4f88e23..088ee5e 100644 ---- a/tests/test_emojis.py -+++ b/tests/test_emojis.py -@@ -1,6 +1,5 @@ - # std imports - import os --import codecs - - # 3rd party - import pytest -@@ -11,6 +10,8 @@ - except NameError: - # python 3 - unichr = chr -+else: -+ from codecs import open - - # some tests cannot be done on some builds of python, where the internal - # unicode structure is limited to 0x10000 for memory conservation, -@@ -146,7 +147,7 @@ def test_longer_emoji_zwj_sequence(): - - - def read_sequences_from_file(filename): -- fp = codecs.open(os.path.join(os.path.dirname(__file__), filename), 'r', encoding='utf-8') -+ fp = open(os.path.join(os.path.dirname(__file__), filename), 'r', encoding='utf-8') - lines = [line.strip() - for line in fp.readlines() - if not line.startswith('#') and line.strip()] diff --git a/python-wcwidth.changes b/python-wcwidth.changes index f00a078..2beab1c 100644 --- a/python-wcwidth.changes +++ b/python-wcwidth.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Oct 29 13:02:46 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.2.14 + * Drop Support for Python 2.7 and 3.5. PR #117. + * Update tables to include Unicode Specifications 16.0.0 and + 17.0.0. PR #146. + * Bugfix U+00AD SOFT HYPHEN should measure as 1, versions 0.2.9 + through 0.2.13 measured as 0. PR #149. +- Drop 0001-Don-t-use-codecs.open-on-Python-3.patch, merged upstream + ------------------------------------------------------------------- Fri Sep 5 11:56:57 UTC 2025 - Dirk Müller diff --git a/python-wcwidth.spec b/python-wcwidth.spec index 4c2fa1c..ee27d34 100644 --- a/python-wcwidth.spec +++ b/python-wcwidth.spec @@ -18,13 +18,12 @@ %{?sle15_python_module_pythons} Name: python-wcwidth -Version: 0.2.13 +Version: 0.2.14 Release: 0 Summary: Number of Terminal column cells of wide-character codes License: MIT URL: https://github.com/jquast/wcwidth Source: https://github.com/jquast/wcwidth/archive/%{version}.tar.gz#/wcwidth-%{version}.tar.gz -Patch1: https://github.com/jquast/wcwidth/commit/ec2d19f90818ea608076dfbb1cb7951ac0b7372d.patch#/0001-Don-t-use-codecs.open-on-Python-3.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} diff --git a/wcwidth-0.2.13.tar.gz b/wcwidth-0.2.13.tar.gz deleted file mode 100644 index cde1a1a..0000000 --- a/wcwidth-0.2.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:144f41dc91f1cee91e59ad3af58d0dd119279b897742a5a0579d958a128506a7 -size 93790 diff --git a/wcwidth-0.2.14.tar.gz b/wcwidth-0.2.14.tar.gz new file mode 100644 index 0000000..06d1215 --- /dev/null +++ b/wcwidth-0.2.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3d1b4f2bf12f2bf9a759de9b1322c83367d199b3c7526191b8bfb54816bf0b0 +size 94478