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
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
From ec2d19f90818ea608076dfbb1cb7951ac0b7372d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
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()]
|
||||
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 29 13:02:46 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
BIN
wcwidth-0.2.13.tar.gz
LFS
BIN
wcwidth-0.2.13.tar.gz
LFS
Binary file not shown.
3
wcwidth-0.2.14.tar.gz
Normal file
3
wcwidth-0.2.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3d1b4f2bf12f2bf9a759de9b1322c83367d199b3c7526191b8bfb54816bf0b0
|
||||
size 94478
|
||||
Reference in New Issue
Block a user