From 2c838103e4afb3482da02baae248bc1aefb4261e9e64e179a2a1a3341a7a096a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 24 Sep 2021 20:40:34 +0000 Subject: [PATCH] Accepting request 921313 from home:pgajdos:python - %check: do no use deprecated setup.py test OBS-URL: https://build.opensuse.org/request/show/921313 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.cachedescriptors?expand=0&rev=5 --- python-zope.cachedescriptors.changes | 5 +++++ python-zope.cachedescriptors.spec | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/python-zope.cachedescriptors.changes b/python-zope.cachedescriptors.changes index 4f24f75..368ffe3 100644 --- a/python-zope.cachedescriptors.changes +++ b/python-zope.cachedescriptors.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 24 12:39:41 UTC 2021 - pgajdos@suse.com + +- %check: do no use deprecated setup.py test + ------------------------------------------------------------------- Tue Dec 4 12:56:27 UTC 2018 - Matej Cepl diff --git a/python-zope.cachedescriptors.spec b/python-zope.cachedescriptors.spec index 57140ef..fbd6b88 100644 --- a/python-zope.cachedescriptors.spec +++ b/python-zope.cachedescriptors.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.cachedescriptors # -# Copyright (c) 2018 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 @@ -23,7 +23,7 @@ Release: 0 Summary: Method and property caching decorators License: ZPL-2.1 Group: Development/Languages/Python -Url: http://github.com/zopefoundation/zope.cachedescriptors +URL: http://github.com/zopefoundation/zope.cachedescriptors Source: https://files.pythonhosted.org/packages/source/z/zope.cachedescriptors/zope.cachedescriptors-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -53,7 +53,11 @@ persistent objects. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py -q test -q +cd build/lib +%{python_expand \ +$python -m unittest -v zope.cachedescriptors.tests +$python -m doctest -v zope/cachedescriptors/*.rst +} %files %{python_files} %doc CHANGES.rst README.rst