Accepting request 813148 from home:mcalabkova:branches:devel:languages:python

- replace nose

OBS-URL: https://build.opensuse.org/request/show/813148
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=26
This commit is contained in:
Tomáš Chvátal 2020-06-10 11:46:58 +00:00 committed by Git OBS Bridge
parent 188ba02fbb
commit fe78d28be2
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 10 09:07:14 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- replace nose
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 14 13:37:36 UTC 2019 - Matej Cepl <mcepl@suse.com> Mon Oct 14 13:37:36 UTC 2019 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-extras # spec file for package python-extras
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 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
@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
# A build cycle exists between python-extras and python-testtools. Thus, only # A build cycle exists between python-extras and python-testtools. Thus, only
# enable testing with a build conditional (off by default): # enable testing with a build conditional (off by default):
%bcond_with tests %bcond_without tests
Name: python-extras Name: python-extras
Version: 1.0.0 Version: 1.0.0
Release: 0 Release: 0
@ -35,7 +35,6 @@ BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
# Test requirements: # Test requirements:
%if %{with tests} %if %{with tests}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module testtools} BuildRequires: %{python_module testtools}
%endif %endif
%python_subpackages %python_subpackages
@ -57,7 +56,7 @@ general use outside of a testing context.
%if %{with tests} %if %{with tests}
%check %check
%python_exec %{_bindir}/nosetests %python_exec -m unittest discover
%endif %endif
%files %{python_files} %files %{python_files}