Re: Update: devel/py-wcwidth 0.1.9 -> 0.2.5

2020-09-12 Thread Ingo Schwarze
Hi Kurt,

Kurt Mosiejczuk wrote on Sat, Sep 12, 2020 at 06:28:30PM -0400:

> Update py-wcwidth from 0.1.9 to 0.2.5

This library is a very bad idea, it should better not exist.
Python should use native wcwidth(3) instead.

PKG-INFO says:

  This library attempts to determine the printable width [...]
  using the very latest Unicode specification.
  [...]
  The libc version of `wcwidth(3)`_ is often several unicode releases
  behind, and therefor several levels of support lower than this
  python library.

That's just not true on OpenBSD where wcwidth(3) is very diligently
maintained by afresh1@ in a timely manner.  Even on systems
where libc *is* behind, using a newer version on the application
level is a very bad idea because the goal must be to have consistent
data between the application program and the terminal emulator.
Now the terminal emulator is (hopefully) using libc and certainly
not using this Python library, so using the latest and greatest on the
application level achieves nothing but inconsistency and hence
misformatting in the terminal, whereas using the same native libc
function in both Python and the terminal emulator would yield better
results, even if the Unicode data data were slightly outdated.

Not sure this observation should stand in the way of a routine
update - but it might potentially make sense to deliver a dummy
version on OpenBSD instead that merely calls through to libc and
does not attempt to do any work whatsoever on its own.

Yours,
  Ingo



Update: devel/py-wcwidth 0.1.9 -> 0.2.5

2020-09-12 Thread Kurt Mosiejczuk
Update py-wcwidth from 0.1.9 to 0.2.5

All consumer regression tests pass with this update.

ok?

--Kurt

Index: Makefile
===
RCS file: /cvs/ports/devel/py-wcwidth/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile3 Jul 2020 21:12:52 -   1.10
+++ Makefile12 Sep 2020 22:25:47 -
@@ -2,10 +2,9 @@
 
 COMMENT=   measures number of terminal column cells of wide-char 
code
 
-MODPY_EGG_VERSION= 0.1.9
+MODPY_EGG_VERSION= 0.2.5
 DISTNAME=  wcwidth-${MODPY_EGG_VERSION}
 PKGNAME=   py-${DISTNAME}
-REVISION=  0
 
 CATEGORIES=devel
 
@@ -19,7 +18,6 @@ MODULES=  lang/python
 MODPY_PI=  Yes
 MODPY_SETUPTOOLS=  Yes
 MODPY_PYTEST = Yes
-MODPY_PYTEST_ARGS =wcwidth
 
 FLAVORS=   python3
 FLAVOR =   python3
Index: distinfo
===
RCS file: /cvs/ports/devel/py-wcwidth/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo30 Mar 2020 13:18:41 -  1.5
+++ distinfo12 Sep 2020 22:25:47 -
@@ -1,2 +1,2 @@
-SHA256 (wcwidth-0.1.9.tar.gz) = 7nOGKGKhVr93/5KwkDT8SCXdOvnPgbxbNgZo1CXzxfE=
-SIZE (wcwidth-0.1.9.tar.gz) = 24764
+SHA256 (wcwidth-0.2.5.tar.gz) = xNZHuZhykp/be9yqT75/AUE+09mAd995hTDlsE8RbIM=
+SIZE (wcwidth-0.2.5.tar.gz) = 34755
Index: pkg/PLIST
===
RCS file: /cvs/ports/devel/py-wcwidth/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   29 Mar 2020 18:46:23 -  1.2
+++ pkg/PLIST   12 Sep 2020 22:25:47 -
@@ -6,6 +6,7 @@ lib/python${MODPY_VERSION}/site-packages
 
lib/python${MODPY_VERSION}/site-packages/wcwidth-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
 
lib/python${MODPY_VERSION}/site-packages/wcwidth-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
 
lib/python${MODPY_VERSION}/site-packages/wcwidth-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
+lib/python${MODPY_VERSION}/site-packages/wcwidth-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
 
lib/python${MODPY_VERSION}/site-packages/wcwidth-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
 
lib/python${MODPY_VERSION}/site-packages/wcwidth-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe
 lib/python${MODPY_VERSION}/site-packages/wcwidth/__init__.py
@@ -13,13 +14,9 @@ ${MODPY_COMMENT}lib/python${MODPY_VERSIO
 
lib/python${MODPY_VERSION}/site-packages/wcwidth/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/wcwidth/${MODPY_PYCACHE}table_wide.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/wcwidth/${MODPY_PYCACHE}table_zero.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/wcwidth/${MODPY_PYCACHE}unicode_versions.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/wcwidth/${MODPY_PYCACHE}wcwidth.${MODPY_PYC_MAGIC_TAG}pyc
 lib/python${MODPY_VERSION}/site-packages/wcwidth/table_wide.py
 lib/python${MODPY_VERSION}/site-packages/wcwidth/table_zero.py
-lib/python${MODPY_VERSION}/site-packages/wcwidth/tests/
-lib/python${MODPY_VERSION}/site-packages/wcwidth/tests/__init__.py
-${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/wcwidth/tests/${MODPY_PYCACHE}/
-lib/python${MODPY_VERSION}/site-packages/wcwidth/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
-lib/python${MODPY_VERSION}/site-packages/wcwidth/tests/${MODPY_PYCACHE}test_core.${MODPY_PYC_MAGIC_TAG}pyc
-lib/python${MODPY_VERSION}/site-packages/wcwidth/tests/test_core.py
+lib/python${MODPY_VERSION}/site-packages/wcwidth/unicode_versions.py
 lib/python${MODPY_VERSION}/site-packages/wcwidth/wcwidth.py