14
0

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
This commit is contained in:
2021-09-24 20:40:34 +00:00
committed by Git OBS Bridge
parent a4e9dde8d6
commit 2c838103e4
2 changed files with 12 additions and 3 deletions

View File

@@ -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 <mcepl@suse.com>

View File

@@ -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