14
0

Accepting request 894270 from home:pgajdos:python

- use %pytest macro in %check

OBS-URL: https://build.opensuse.org/request/show/894270
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-DateTime?expand=0&rev=4
This commit is contained in:
2021-05-19 12:10:00 +00:00
committed by Git OBS Bridge
parent 01b27fb4b4
commit aefea85b9e
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 19 09:31:11 UTC 2021 - pgajdos@suse.com
- use %pytest macro in %check
-------------------------------------------------------------------
Thu Aug 1 03:15:12 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-DateTime
#
# Copyright (c) 2019 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
@@ -32,6 +32,7 @@ Requires: python-pytz
Requires: python-zope.interface
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module zope.interface}
# /SECTION
@@ -53,7 +54,7 @@ better off using Python's built-in datetime module.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%pytest
%files %{python_files}
%doc CHANGES.rst README.txt