14
0

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
This commit is contained in:
Todd R
2017-04-01 21:39:52 +00:00
committed by Git OBS Bridge
parent bfc060d431
commit 5220803d9d
4 changed files with 41 additions and 20 deletions

View File

@@ -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}/*