Accepting request 895699 from home:pgajdos:python

setup.py test replacement

OBS-URL: https://build.opensuse.org/request/show/895699
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isodate?expand=0&rev=26
This commit is contained in:
Matej Cepl 2021-05-27 12:17:04 +00:00 committed by Git OBS Bridge
parent a695a288bf
commit 9cb95d1c49
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 26 07:18:51 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest rpm macro
-------------------------------------------------------------------
Tue Dec 4 12:49:23 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-isodate
#
# 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
@ -16,19 +16,15 @@
#
# Tests don't work and cause a dependency loop with python-SPARQLWrapper
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-isodate
Version: 0.6.0
Release: 0
Url: http://cheeseshop.python.org/pypi/isodate
Summary: An ISO 8601 Date/Time/Duration Parser and Formatter
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://cheeseshop.python.org/pypi/isodate
Source: https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -52,13 +48,10 @@ option.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
%python_exec setup.py -q test
%endif
%pyunittest discover -v src/
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.txt README.rst TODO.txt
%{python_sitelib}/*