52 Commits

Author SHA256 Message Date
f4d256b436 Accepting request 1302928 from devel:languages:python
- add 0001-Don-t-use-codecs.open-on-Python-3.patch to fix
  deprecations for python 3.14

OBS-URL: https://build.opensuse.org/request/show/1302928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=22
2025-09-05 19:42:37 +00:00
7f05206a56 - add 0001-Don-t-use-codecs.open-on-Python-3.patch to fix
deprecations for python 3.14

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=52
2025-09-05 11:57:45 +00:00
e9a5085166 Accepting request 1285276 from devel:languages:python
- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1285276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=21
2025-06-13 16:43:17 +00:00
8751696c72 Accepting request 1138472 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1138472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=20
2024-01-15 21:10:54 +00:00
578122c712 - update to 0.2.13:
* Bugfix zero-width support for Hangul Jamo (Korean) #111

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=48
2024-01-06 13:10:01 +00:00
971eedcc5d Accepting request 1129072 from devel:languages:python
- update to 0.2.12:
  * Include tests files in the source distribution (PR #98, PR
  * **Bugfix** accounting of some kinds of emoji sequences using
    U+FE0F
  * Variation Selector 16 (PR #97).
  * **Bugfix** zero-width characters used in Emoji ZWJ sequences,
    Balinese, Jamo, Devanagari, Tamil, Kannada and others (PR #91).
  * Include requirements files in the source distibution (PR
    #83).
  * Update Unicode version to 15.1.0
  * Add testing support for Python 3.12
  * Update README
  * Update requirements
  * Enable GitHub Actions CI
  * Prepare release 0.2.7
  * Update tox envs in README
  * Include bin, docs, and tox.ini in the source distribution

  multibuild.
  * Enhancement: Unicode version may be selected by exporting the
    Environment variable UNICODE_VERSION, such as 13.0, or 6.3.0.
  * Updated tables for all Unicode Specifications with files published
- Convert to multibuild to break a self-requires loop.

OBS-URL: https://build.opensuse.org/request/show/1129072
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=19
2023-11-28 21:18:10 +00:00
7a3e9aac97 - update to 0.2.12:
* Include tests files in the source distribution (PR #98, PR
  * **Bugfix** accounting of some kinds of emoji sequences using
    U+FE0F
  * Variation Selector 16 (PR #97).
  * **Bugfix** zero-width characters used in Emoji ZWJ sequences,
    Balinese, Jamo, Devanagari, Tamil, Kannada and others (PR #91).
  * Include requirements files in the source distibution (PR
    #83).
  * Update Unicode version to 15.1.0
  * Add testing support for Python 3.12
  * Update README
  * Update requirements
  * Enable GitHub Actions CI
  * Prepare release 0.2.7
  * Update tox envs in README
  * Include bin, docs, and tox.ini in the source distribution
  multibuild.
  * Enhancement: Unicode version may be selected by exporting the
    Environment variable UNICODE_VERSION, such as 13.0, or 6.3.0.
  * Updated tables for all Unicode Specifications with files published
- Convert to multibuild to break a self-requires loop.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=46
2023-11-27 09:10:48 +00:00
4165d116cb Accepting request 1102818 from devel:languages:python
- use actual package name for importlib-metadata requires

OBS-URL: https://build.opensuse.org/request/show/1102818
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=18
2023-08-09 15:24:01 +00:00
45691da031 - use actual package name for importlib-metadata requires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=44
2023-08-08 07:04:54 +00:00
0eb17d819e - use actual package name
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=43
2023-08-07 11:09:25 +00:00
f9d8526efe Accepting request 1081728 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=17
2023-04-22 19:58:12 +00:00
ae34c78343 Accepting request 1081692 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081692
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=41
2023-04-21 13:28:30 +00:00
1242aa761e Accepting request 1058811 from devel:languages:python
- Update to 0.2.6:
  * Fix example for str.rjust(20, '_')
  * Add CodeQL workflow for GitHub code scanning
  * Switch to using importlib.metadata
  * Use a new jinja2 templating process to update library to latest unicode
- Drop patch remove-pkg_resources.patch.
- Remove Python 2 gubbins.

OBS-URL: https://build.opensuse.org/request/show/1058811
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=16
2023-01-18 12:08:15 +00:00
cfe629c740 - Update to 0.2.6:
* Fix example for str.rjust(20, '_')
  * Add CodeQL workflow for GitHub code scanning
  * Switch to using importlib.metadata
  * Use a new jinja2 templating process to update library to latest unicode
- Drop patch remove-pkg_resources.patch.
- Remove Python 2 gubbins.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=39
2023-01-17 06:30:00 +00:00
f4b1ea3a32 Accepting request 1037604 from devel:languages:python
Forwarded request #1037583 from ojkastl_buildservice

add explicit Requires for python-importlib_metadata for Python < 3.8

OBS-URL: https://build.opensuse.org/request/show/1037604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=15
2022-11-24 11:22:27 +00:00
1f5a0dc0fd Accepting request 1037583 from home:ojkastl_buildservice:Branch_devel_languages_python
add explicit Requires for python-importlib_metadata for Python < 3.8

OBS-URL: https://build.opensuse.org/request/show/1037583
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=37
2022-11-23 13:30:01 +00:00
c3f037f907 Accepting request 989970 from devel:languages:python
- Add patch remove-pkg_resources.patch:
  * Use importlib.metadata rather than pkg_resources.
- Since importlib.metadata is not as a stickler as pkg_resources is, remove
  multibuild.

OBS-URL: https://build.opensuse.org/request/show/989970
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=14
2022-08-04 11:23:11 +00:00
0faec7d1b8 - Add patch remove-pkg_resources.patch:
* Use importlib.metadata rather than pkg_resources.
- Since importlib.metadata is not as a stickler as pkg_resources is, remove
  multibuild.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=35
2022-07-18 13:41:20 +00:00
836ddefb1a Accepting request 896913 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/896913
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=13
2021-06-04 20:42:46 +00:00
608e598ab1 Accepting request 896864 from home:cgiboudeaux:branches:devel:languages:python
- Fix the %doc files. README.rst is a symlink pointing to
  docs/intro.rst.

OBS-URL: https://build.opensuse.org/request/show/896864
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=33
2021-06-02 12:12:58 +00:00
11a584fce7 Accepting request 841290 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/841290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=12
2020-10-29 08:47:40 +00:00
713db1716c Accepting request 841289 from home:mcalabkova:branches:devel:languages:python:pytest
- Remove nonsense keyword (breaks pytest)

OBS-URL: https://build.opensuse.org/request/show/841289
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=31
2020-10-12 14:14:31 +00:00
e58f0ae3e3 Accepting request 821443 from devel:languages:python
- update to 0.2.5
  * Do not depend on pkg_resources module for list_versions() function.

OBS-URL: https://build.opensuse.org/request/show/821443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=11
2020-07-21 13:40:38 +00:00
abd0af3970 - update to 0.2.5
* Do not depend on pkg_resources module for list_versions() function.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=29
2020-07-17 07:48:33 +00:00
2058a7ed34 Accepting request 814544 from devel:languages:python
- update to 0.2.4
  * minor "bugfix" to avoid using pkg_resources module on import, 7918f58
  * may help xonsh xonsh/xonsh#3607

OBS-URL: https://build.opensuse.org/request/show/814544
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=10
2020-06-21 16:50:41 +00:00
5363f1f245 - update to 0.2.4
* minor "bugfix" to avoid using pkg_resources module on import, 7918f58
  * may help xonsh xonsh/xonsh#3607

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=27
2020-06-14 09:02:03 +00:00
16aca13834 Accepting request 812628 from devel:languages:python
- update to 0.2.3
  * add tests

- Add missing python2 dependency for Leap to work

- Update to version 0.2.2
  * Enhancement: Unicode version may be selected by exporting the 
    Environment variable UNICODE_VERSION, such as 13.0, or 6.3.0. 
    See the jquast/ucs-detect CLI utility for automatic detection.
  * Enhancement: API Documentation is published to readthedocs.org.
  * Updated tables for all Unicode Specifications with files published 
    in a programmatically consumable format.

OBS-URL: https://build.opensuse.org/request/show/812628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=9
2020-06-11 12:42:15 +00:00
812b211b7a - update to 0.2.3
* add tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=25
2020-06-08 13:46:25 +00:00
Tomáš Chvátal
b11b600f06 - Add missing python2 dependency for Leap to work
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=24
2020-06-08 07:19:59 +00:00
Tomáš Chvátal
940c1a1058 Accepting request 810735 from home:mcalabkova:branches:devel:languages:python
- Update to version 0.2.2
  * Enhancement: Unicode version may be selected by exporting the 
    Environment variable UNICODE_VERSION, such as 13.0, or 6.3.0. 
    See the jquast/ucs-detect CLI utility for automatic detection.
  * Enhancement: API Documentation is published to readthedocs.org.
  * Updated tables for all Unicode Specifications with files published 
    in a programmatically consumable format.

OBS-URL: https://build.opensuse.org/request/show/810735
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=23
2020-06-02 08:08:09 +00:00
9ad218695d Accepting request 800655 from devel:languages:python
- Convert to multibuild to break a self-requires loop.

OBS-URL: https://build.opensuse.org/request/show/800655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=8
2020-05-11 11:25:52 +00:00
a2929d0c6e Specify flavor from BUILD_FLAVOR
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=21
2020-05-06 09:58:14 +00:00
aa41020dd6 Don't share Name between flavors, and don't install for test flavor
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=20
2020-05-06 09:37:05 +00:00
870b788558 - Convert to multibuild to break a self-requires loop.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=19
2020-05-06 02:34:31 +00:00
0be7599fe2 Accepting request 788241 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/788241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=7
2020-03-26 23:29:33 +00:00
Tomáš Chvátal
80d5e5974f Accepting request 788229 from home:pgajdos:python
- version update to 0.1.9
  * Performance optimization by @avylove , PR #35.
  * Updated tables to Unicode Specification 13.0.0.

OBS-URL: https://build.opensuse.org/request/show/788229
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=17
2020-03-25 15:11:54 +00:00
5dcf868221 Accepting request 770631 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/770631
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=6
2020-02-15 21:22:51 +00:00
Tomáš Chvátal
b74e56463a Accepting request 770630 from home:mcalabkova:branches:devel:languages:python
- update to 0.1.8
  * Unicode v12 and proj. maintenence
  * remove static analysis
  * EastAsianWidth v9 -> v12
  * README and tox.ini

OBS-URL: https://build.opensuse.org/request/show/770630
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=15
2020-02-06 15:00:55 +00:00
b8eec83810 Accepting request 734571 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/734571
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=5
2019-10-05 14:19:22 +00:00
Tomáš Chvátal
2852b4aaa6 Accepting request 734446 from home:jayvdb:branches:devel:languages:python
Re-active test suite
Remove test suite from runtime package
Run fdupes

OBS-URL: https://build.opensuse.org/request/show/734446
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=13
2019-10-02 11:58:19 +00:00
9791338b63 Accepting request 682425 from devel:languages:python
- Fix test macro expansion

OBS-URL: https://build.opensuse.org/request/show/682425
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=4
2019-03-12 08:44:34 +00:00
Tomáš Chvátal
ac20289831 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=11 2019-03-07 11:24:52 +00:00
Tomáš Chvátal
9172c624d4 - Fix test macro expansion
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=10
2019-03-07 11:18:38 +00:00
ac3a913a90 Accepting request 633706 from devel:languages:python
- Drop devel dependency
- Install license file

OBS-URL: https://build.opensuse.org/request/show/633706
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=3
2018-09-07 13:41:29 +00:00
Tomáš Chvátal
1525dc36a9 - Drop devel dependency
- Install license file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=8
2018-09-06 10:10:42 +00:00
b9f56afaa6 Accepting request 484887 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/484887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=2
2017-04-11 07:41:00 +00:00
Todd R
8ebadf3d6a Accepting request 484885 from home:TheBlackCat:branches:devel:languages:python
Fix source URL.

OBS-URL: https://build.opensuse.org/request/show/484885
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=6
2017-04-03 14:33:48 +00:00
Todd R
5220803d9d Accepting request 484364 from home:TheBlackCat:branches:devel:languages:python
Update to version 0.1.7

OBS-URL: https://build.opensuse.org/request/show/484364
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=5
2017-04-01 21:39:52 +00:00
bfc060d431 Accepting request 455830 from devel:languages:python
- New dependency for google-cloud-sdk

OBS-URL: https://build.opensuse.org/request/show/455830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=1
2017-02-28 22:49:08 +00:00
7c21f017cf - Include in SLE 12 (bsc#1002895, FATE#321630)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=3
2017-01-31 13:18:18 +00:00
f4425a6cb1 - Include in SLE 12 (bsc##1002895, FATE#321630)
+ Version 0.1.4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=2
2017-01-30 21:51:00 +00:00
Todd R
63f8d654e5 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=1
2015-08-14 09:02:36 +00:00
3 changed files with 49 additions and 1 deletions

View File

@@ -0,0 +1,41 @@
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()]

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 5 11:56:57 UTC 2025 - Dirk Müller <dmueller@suse.com>
- add 0001-Don-t-use-codecs.open-on-Python-3.patch to fix
deprecations for python 3.14
-------------------------------------------------------------------
Fri Jun 13 02:43:13 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-wcwidth
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@ 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}