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
This commit is contained in:
Dominique Leuenberger 2019-10-05 14:19:22 +00:00 committed by Git OBS Bridge
commit b8eec83810
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Oct 2 04:39:59 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Re-active test suite
- Remove test suite from runtime package
- Run fdupes
-------------------------------------------------------------------
Thu Mar 7 11:18:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -27,6 +27,7 @@ URL: https://github.com/jquast/wcwidth
Source: https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
@ -53,13 +54,14 @@ release files, which this project aims to track.
%install
%python_install
# This file is meant to be runnable on its own for testing,
# so don't remove the shebang.
%python_expand chmod a+x %{buildroot}%{$python_sitelib}/wcwidth/tests/test_*.py
# Remove tests from runtime
%{python_expand rm -r %{buildroot}%{$python_sitelib}/wcwidth/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
%check
pushd wcwidth/tests
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix}
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} test*.py
popd
%files %{python_files}