From 19aa9a01b1a1e1a06a82f2ab8924c383b5327f60029a510e9434eb4fce3ac81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 1 Mar 2019 11:16:57 +0000 Subject: [PATCH] Accepting request 680461 from home:frispete:python - don't run tests, if they're disabled from build conditional OBS-URL: https://build.opensuse.org/request/show/680461 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=7 --- python-pydocstyle.changes | 5 +++++ python-pydocstyle.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-pydocstyle.changes b/python-pydocstyle.changes index 200dabe..a9a280f 100644 --- a/python-pydocstyle.changes +++ b/python-pydocstyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 1 11:13:40 UTC 2019 - Hans-Peter Jansen + +- don't run tests, if they're disabled from build conditional + ------------------------------------------------------------------- Tue Dec 4 12:52:06 UTC 2018 - Matej Cepl diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index 2ed3d2e..c52f6b7 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -1,7 +1,7 @@ # # spec file for package python-pydocstyle # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -66,6 +66,7 @@ conventions. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check mkdir empty pushd empty @@ -74,6 +75,7 @@ $python -c "import pydocstyle" $python -c "from pydocstyle import *" } popd +%endif %files %{python_files} %defattr(-,root,root,-)