From 0d10375e4c6ed569ddbe5735e28201206d18491899744879c2be69919ff0f107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 22 Nov 2018 10:47:10 +0000 Subject: [PATCH] - 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 --- python-pytest-html.changes | 7 +++++++ python-pytest-html.spec | 27 ++++++++++++++------------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/python-pytest-html.changes b/python-pytest-html.changes index fef3222..e083e64 100644 --- a/python-pytest-html.changes +++ b/python-pytest-html.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 22 10:45:00 UTC 2018 - Tomáš Chvátal + +- 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 diff --git a/python-pytest-html.spec b/python-pytest-html.spec index d83558d..7f2ed70 100644 --- a/python-pytest-html.spec +++ b/python-pytest-html.spec @@ -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