14
0

Accepting request 734446 from home:jayvdb:branches:devel:languages:python

Re-active test suite
Remove test suite from runtime package
Run fdupes

OBS-URL: https://build.opensuse.org/request/show/734446
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal
2019-10-02 11:58:19 +00:00
committed by Git OBS Bridge
parent ac20289831
commit 2852b4aaa6
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> 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 Source: https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
BuildRequires: %{python_module nose} BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -53,13 +54,14 @@ release files, which this project aims to track.
%install %install
%python_install %python_install
# This file is meant to be runnable on its own for testing, # Remove tests from runtime
# so don't remove the shebang. %{python_expand rm -r %{buildroot}%{$python_sitelib}/wcwidth/tests/
%python_expand chmod a+x %{buildroot}%{$python_sitelib}/wcwidth/tests/test_*.py %fdupes %{buildroot}%{$python_sitelib}
}
%check %check
pushd wcwidth/tests 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 popd
%files %{python_files} %files %{python_files}