Accepting request 826843 from home:jayvdb:py-submit

Build helper: verify minimum tests pass

OBS-URL: https://build.opensuse.org/request/show/826843
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-plus?expand=0&rev=1
This commit is contained in:
2020-08-16 02:18:25 +00:00
committed by Git OBS Bridge
commit 558dc29c4a
5 changed files with 91 additions and 0 deletions

60
python-pytest-plus.spec Normal file
View File

@@ -0,0 +1,60 @@
#
# spec file for package python-pytest-plus
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-plus
Version: 0.2
Release: 0
Summary: Extension for pytest to enforce minimum tests pass
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pycontribs/pytest-plus
Source: https://files.pythonhosted.org/packages/source/p/pytest-plus/pytest-plus-%{version}.tar.gz
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.50
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.50}
# /SECTION
%python_subpackages
%description
PyTest Plus extends pytest functionality to enforce PYTEST_REQPASS tests passed.
%prep
%setup -q -n pytest-plus-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog