From 2852b4aaa66add8e877f6a14653f8523626abc8fdc81b674911e51d4bc836572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 2 Oct 2019 11:58:19 +0000 Subject: [PATCH] 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 --- python-wcwidth.changes | 7 +++++++ python-wcwidth.spec | 10 ++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-wcwidth.changes b/python-wcwidth.changes index b029a44..80b3e83 100644 --- a/python-wcwidth.changes +++ b/python-wcwidth.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 2 04:39:59 UTC 2019 - John Vandenberg + +- Re-active test suite +- Remove test suite from runtime package +- Run fdupes + ------------------------------------------------------------------- Thu Mar 7 11:18:22 UTC 2019 - Tomáš Chvátal diff --git a/python-wcwidth.spec b/python-wcwidth.spec index 07bf8b4..c534e6d 100644 --- a/python-wcwidth.spec +++ b/python-wcwidth.spec @@ -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}