- Cleanup with spec-cleaner

- Make sure the tests are really executed
- Remove useless devel dependency

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-html?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2018-11-22 10:47:10 +00:00 committed by Git OBS Bridge
parent fbb3c1e3c4
commit 0d10375e4c
2 changed files with 21 additions and 13 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 22 10:45:00 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Cleanup with spec-cleaner
- Make sure the tests are really executed
- Remove useless devel dependency
-------------------------------------------------------------------
Fri Nov 16 16:39:49 UTC 2018 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@ -12,31 +12,30 @@
# license that conforms to the Open Source Definition (Version 1.9)
# 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-%{**}}
Name: python-pytest-html
Version: 1.19.0
Release: 0
License: MPL-2.0
Summary: pytest plugin for generating HTML reports
Url: https://github.com/pytest-dev/pytest-html
License: MPL-2.0
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-html
Source: https://files.pythonhosted.org/packages/source/p/pytest-html/pytest-html-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.0
Requires: python-pytest-metadata
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module pytest-metadata}
# /SECTION
BuildRequires: fdupes
Requires: python-pytest >= 3.0
Requires: python-pytest-metadata
BuildArch: noarch
%python_subpackages
%description
@ -51,11 +50,13 @@ pytest plugin for generating HTML reports
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%doc CHANGES.rst LICENSE README.rst
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog