From 5220803d9d2ea7320607d2980c0e82ba1a8bb32a33183c8e563023bf281e567d Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 1 Apr 2017 21:39:52 +0000 Subject: [PATCH] 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 --- python-wcwidth.changes | 18 ++++++++++++++++++ python-wcwidth.spec | 37 ++++++++++++++++++++----------------- wcwidth-0.1.4.tar.gz | 3 --- wcwidth-0.1.7.tar.gz | 3 +++ 4 files changed, 41 insertions(+), 20 deletions(-) delete mode 100644 wcwidth-0.1.4.tar.gz create mode 100644 wcwidth-0.1.7.tar.gz diff --git a/python-wcwidth.changes b/python-wcwidth.changes index 3d4c9b9..8342d05 100644 --- a/python-wcwidth.changes +++ b/python-wcwidth.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Sat Apr 1 21:00:22 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.1.7 + * **Updated** tables to Unicode Specification 9.0.0. (`PR #18`_). +- Update to version 0.1.6 +0.1.6 *2016-01-08 Production/Stable* + * ``LICENSE`` file now included with distribution. +- Update to version 0.1.5 + * **Bugfix**: + Resolution of "combining_ character width" issue, most especially + those that previously returned -1 now often (correctly) return 0. + resolved by `Philip Craig`_ via `PR #11`_. + * **Deprecated**: + The module path ``wcwidth.table_comb`` is no longer available, + it has been superseded by module path ``wcwidth.table_zero``. +- Implement single-spec version + ------------------------------------------------------------------- Mon Jan 30 21:50:06 UTC 2017 - rjschwei@suse.com diff --git a/python-wcwidth.spec b/python-wcwidth.spec index 7be2399..4058f92 100644 --- a/python-wcwidth.spec +++ b/python-wcwidth.spec @@ -16,23 +16,23 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wcwidth -Version: 0.1.4 +Version: 0.1.7 Release: 0 Summary: Number of Terminal column cells of wide-character codes License: MIT Group: Development/Languages/Python Url: https://github.com/jquast/wcwidth Source: https://pypi.python.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz -BuildRequires: python-devel >= 2.7 -BuildRequires: python-nose -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools} BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description This API is mainly for Terminal Emulator implementors -- any python @@ -51,21 +51,24 @@ release files, which this project aims to track. %setup -q -n wcwidth-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%check -pushd wcwidth/tests -PYTHONPATH=%{buildroot}%{python_sitelib} nosetests -popd +%python_install # This file is meant to be runnable on its own for testing, # so don't remove the shebang. -chmod a+x %{buildroot}%{python_sitelib}/wcwidth/tests/test_*.py +%python_expand chmod a+x %{buildroot}%{$python_sitelib}/wcwidth/tests/test_*.py -%files +%check +pushd wcwidth/tests +%{python_expand +export PYTHONPATH=%{buildroot}%{python_sitelib} +nosetests-%{python_bin_suffix} +} +popd + +%files %{python_files} %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/* diff --git a/wcwidth-0.1.4.tar.gz b/wcwidth-0.1.4.tar.gz deleted file mode 100644 index c59f9f2..0000000 --- a/wcwidth-0.1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:906d3123045d77027b49fe912458e1a1e1d6ca1a51558a4bd9168d143b129d2b -size 19584 diff --git a/wcwidth-0.1.7.tar.gz b/wcwidth-0.1.7.tar.gz new file mode 100644 index 0000000..5ff55f5 --- /dev/null +++ b/wcwidth-0.1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e +size 22884