- Do not disable py2 build for Leap
- Use pytest directly, pytest-runner is deprecated upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cerberus?expand=0&rev=19
This commit is contained in:
parent
7f74fbd6aa
commit
7322c5d71c
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 29 11:43:45 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Do not disable py2 build for Leap
|
||||||
|
- Use pytest directly, pytest-runner is deprecated upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 20 08:15:08 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Sat Jun 20 08:15:08 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-Cerberus
|
Name: python-Cerberus
|
||||||
Version: 1.3.2
|
Version: 1.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -29,7 +28,7 @@ Source: https://files.pythonhosted.org/packages/source/C/Cerberus/Cerber
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION tests
|
# SECTION tests
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -52,9 +51,7 @@ validation.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand rm -rf _build*/ build/
|
%pytest
|
||||||
$python setup.py test
|
|
||||||
}
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst UPGRADING.rst AUTHORS
|
%doc README.rst UPGRADING.rst AUTHORS
|
||||||
|
Loading…
Reference in New Issue
Block a user