Accepting request 894229 from home:pgajdos:python
- use %pytest macro in %check OBS-URL: https://build.opensuse.org/request/show/894229 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-contextvars?expand=0&rev=3
This commit is contained in:
parent
b3ea8a6bc6
commit
84a0440dd1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 19 07:20:33 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- use %pytest macro in %check
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 14 10:38:27 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
Sun Apr 14 10:38:27 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-contextvars
|
# spec file for package python-contextvars
|
||||||
#
|
#
|
||||||
# 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-%{**}}
|
||||||
@ -22,13 +23,14 @@ Version: 2.4
|
|||||||
Release: 0
|
Release: 0
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Summary: PEP 567 (context variables) backport
|
Summary: PEP 567 (context variables) backport
|
||||||
Url: http://github.com/MagicStack/contextvars
|
URL: http://github.com/MagicStack/contextvars
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://files.pythonhosted.org/packages/source/c/contextvars/contextvars-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/c/contextvars/contextvars-%{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 immutables >= 0.9}
|
BuildRequires: %{python_module immutables >= 0.9}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-immutables >= 0.9
|
Requires: python-immutables >= 0.9
|
||||||
@ -50,7 +52,7 @@ PEP 567 (Context Variables) backport.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user