14
0

Accepting request 914347 from home:pgajdos:python

- %check: use %pyunittest rpm macro

OBS-URL: https://build.opensuse.org/request/show/914347
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unittest-mixins?expand=0&rev=3
This commit is contained in:
John Vandenberg
2021-09-01 12:59:58 +00:00
committed by Git OBS Bridge
parent c36668807d
commit 907e488a3d
2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 26 07:33:28 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest rpm macro
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 19 17:27:05 UTC 2019 - John Vandenberg <jayvdb@gmail.com> Tue Feb 19 17:27:05 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-unittest-mixins # spec file for package python-unittest-mixins
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -21,11 +22,11 @@ Version: 1.6
Release: 0 Release: 0
License: Apache-2.0 License: Apache-2.0
Summary: Helpful mixins for unittest classes Summary: Helpful mixins for unittest classes
Url: https://github.com/nedbat/unittest-mixins URL: https://github.com/nedbat/unittest-mixins
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/u/unittest-mixins/unittest-mixins-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/u/unittest-mixins/unittest-mixins-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module six >= 1.4.0} BuildRequires: %{python_module six >= 1.4.0}
# /SECTION # /SECTION
@@ -49,7 +50,7 @@ Helpful mixins for unittest classes.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %pyunittest discover -v
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst