Hello community, here is the log from the commit of package python-wcwidth for openSUSE:Factory checked in at 2020-06-21 18:50:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wcwidth (Old) and /work/SRC/openSUSE:Factory/.python-wcwidth.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wcwidth" Sun Jun 21 18:50:41 2020 rev:10 rq:814544 version:0.2.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wcwidth/python-wcwidth.changes 2020-06-11 14:42:39.864995643 +0200 +++ /work/SRC/openSUSE:Factory/.python-wcwidth.new.3606/python-wcwidth.changes 2020-06-21 19:06:50.481091712 +0200 @@ -1,0 +2,7 @@ +Sun Jun 14 09:00:42 UTC 2020 - Dirk Mueller <dmuel...@suse.com> + +- update to 0.2.4 + * minor "bugfix" to avoid using pkg_resources module on import, 7918f58 + * may help xonsh xonsh/xonsh#3607 + +------------------------------------------------------------------- Old: ---- wcwidth-0.2.3.tar.gz New: ---- wcwidth-0.2.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wcwidth.spec ++++++ --- /var/tmp/diff_new_pack.dzWKcv/_old 2020-06-21 19:06:50.885093024 +0200 +++ /var/tmp/diff_new_pack.dzWKcv/_new 2020-06-21 19:06:50.889093036 +0200 @@ -27,7 +27,7 @@ %endif %bcond_without python2 Name: python-wcwidth%{psuffix} -Version: 0.2.3 +Version: 0.2.4 Release: 0 Summary: Number of Terminal column cells of wide-character codes License: MIT ++++++ wcwidth-0.2.3.tar.gz -> wcwidth-0.2.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wcwidth-0.2.3/bin/new-wide-by-version.py new/wcwidth-0.2.4/bin/new-wide-by-version.py --- old/wcwidth-0.2.3/bin/new-wide-by-version.py 2020-06-02 18:27:05.000000000 +0200 +++ new/wcwidth-0.2.4/bin/new-wide-by-version.py 2020-06-08 05:37:40.000000000 +0200 @@ -16,20 +16,30 @@ """ # std imports import json +import sys # List new WIDE characters at each unicode version. # def main(): from wcwidth import WIDE_EASTASIAN, _bisearch - next_version_values = [] + versions = list(WIDE_EASTASIAN.keys()) results = {} - for version, table in reversed(WIDE_EASTASIAN.items()): - for value_pair in next_version_values: + for version in versions: + prev_idx = versions.index(version) - 1 + if prev_idx == -1: + continue + previous_version = versions[prev_idx] + previous_table = WIDE_EASTASIAN[previous_version] + for value_pair in WIDE_EASTASIAN[version]: for value in range(*value_pair): - if not _bisearch(value, table): + if not _bisearch(value, previous_table): results[version] = results.get(version, []) + [value] - next_version_values = table + if '--debug' in sys.argv: + print(f'version {version} has unicode character ' + f'0x{value:05x} ({chr(value)}) but previous ' + f'version, {previous_version} does not.', + file=sys.stderr) print(json.dumps(results, indent=4)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wcwidth-0.2.3/setup.py new/wcwidth-0.2.4/setup.py --- old/wcwidth-0.2.3/setup.py 2020-06-02 18:27:05.000000000 +0200 +++ new/wcwidth-0.2.4/setup.py 2020-06-08 05:37:40.000000000 +0200 @@ -48,6 +48,7 @@ """Setup.py entry point.""" setuptools.setup( name='wcwidth', + # NOTE: manually manage __version__ in wcwidth/__init__.py ! version=_get_version( _get_here(os.path.join('wcwidth', 'version.json'))), description=( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wcwidth-0.2.3/wcwidth/__init__.py new/wcwidth-0.2.4/wcwidth/__init__.py --- old/wcwidth-0.2.3/wcwidth/__init__.py 2020-06-02 18:27:05.000000000 +0200 +++ new/wcwidth-0.2.4/wcwidth/__init__.py 2020-06-08 05:37:40.000000000 +0200 @@ -16,10 +16,18 @@ _bisearch, list_versions, _wcmatch_version, - _wcversion_value, - _get_package_version) + _wcversion_value) # The __all__ attribute defines the items exported from statement, # 'from wcwidth import *', but also to say, "This is the public API". __all__ = ('wcwidth', 'wcswidth', 'list_versions') -__version__ = _get_package_version() + +# I used to use a _get_package_version() function to use the `pkg_resources' +# module to parse the package version from our version.json file, but this blew +# some folks up, or more particularly, just the `xonsh' shell. +# +# Yikes! I always wanted to like xonsh and tried it many times but issues like +# these always bit me, too, so I can sympathize -- this version is now manually +# kept in sync with version.json to help them out. Shucks, this variable is just +# for legacy, from the days before 'pip freeze' was a thing. +__version__ = '0.2.4' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wcwidth-0.2.3/wcwidth/version.json new/wcwidth-0.2.4/wcwidth/version.json --- old/wcwidth-0.2.3/wcwidth/version.json 2020-06-02 18:27:05.000000000 +0200 +++ new/wcwidth-0.2.4/wcwidth/version.json 2020-06-08 05:37:40.000000000 +0200 @@ -1 +1 @@ -{"tables": ["4.1.0", "5.0.0", "5.1.0", "5.2.0", "6.0.0", "6.1.0", "6.2.0", "6.3.0", "7.0.0", "8.0.0", "9.0.0", "10.0.0", "11.0.0", "12.0.0", "12.1.0", "13.0.0"], "package": "0.2.3", "default": "8.0.0"} +{"tables": ["4.1.0", "5.0.0", "5.1.0", "5.2.0", "6.0.0", "6.1.0", "6.2.0", "6.3.0", "7.0.0", "8.0.0", "9.0.0", "10.0.0", "11.0.0", "12.0.0", "12.1.0", "13.0.0"], "package": "0.2.4", "default": "8.0.0"}