From adeba89d3a6859a4f7ccc130b618857ff2378d6b27cee1118a8253003c2155d5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 23 Sep 2021 11:20:33 +0000 Subject: [PATCH] Accepting request 921128 from home:pgajdos:python - %check: do not use setup.py test OBS-URL: https://build.opensuse.org/request/show/921128 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zc.customdoctests?expand=0&rev=3 --- python-zc.customdoctests.changes | 5 +++++ python-zc.customdoctests.spec | 19 ++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/python-zc.customdoctests.changes b/python-zc.customdoctests.changes index df8c9ef..870e7f9 100644 --- a/python-zc.customdoctests.changes +++ b/python-zc.customdoctests.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 23 10:25:50 UTC 2021 - pgajdos@suse.com + +- %check: do not use setup.py test + ------------------------------------------------------------------- Tue Apr 9 10:36:32 UTC 2019 - Marketa Calabkova diff --git a/python-zc.customdoctests.spec b/python-zc.customdoctests.spec index 7898f37..ddc8d8a 100644 --- a/python-zc.customdoctests.spec +++ b/python-zc.customdoctests.spec @@ -1,7 +1,7 @@ # # spec file for package python-zc.customdoctests # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -21,17 +22,17 @@ Version: 1.0.1 Release: 0 License: ZPL-2.1 Summary: zc.customdoctests -- Use doctest with other languages -Url: http://pypi.python.org/pypi/zc.customdoctests +URL: http://pypi.python.org/pypi/zc.customdoctests Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/z/zc.customdoctests/zc.customdoctests-%{version}.zip Source1: LICENSE.txt -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} +BuildRequires: %{python_module manuel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module zope.testing} -BuildRequires: %{python_module manuel} -BuildRequires: unzip BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip BuildArch: noarch %python_subpackages @@ -62,7 +63,11 @@ JavaScript, and sh. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +cd build/lib +%{python_expand export PYTHONPATH='.' +$python -m unittest -v zc.customdoctests.tests.test_suite +$python -m doctest -v zc/customdoctests/tests.py +} %files %{python_files} %license ../../SOURCES/LICENSE.txt