From 9cb95d1c49129366151439e3d566afb3c4378735cfb1a997ef8247de7464d53f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 27 May 2021 12:17:04 +0000 Subject: [PATCH] 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 --- python-isodate.changes | 5 +++++ python-isodate.spec | 13 +++---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/python-isodate.changes b/python-isodate.changes index 3992a30..4cb23ee 100644 --- a/python-isodate.changes +++ b/python-isodate.changes @@ -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 diff --git a/python-isodate.spec b/python-isodate.spec index 7eecd68..9b42d74 100644 --- a/python-isodate.spec +++ b/python-isodate.spec @@ -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}/*