File python-pytest-doc.spec of Package python-pytest

# spec file for package python-pytest-doc
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pytest-doc
Version:        3.3.2
Release:        0
Summary:        Documentation for python-pytest, a testing tool with autodiscovery
License:        MIT
Group:          Documentation/HTML
BuildRequires:  %{python_module attrs}
BuildRequires:  %{python_module hypothesis}
BuildRequires:  %{python_module pluggy}
BuildRequires:  %{python_module py}
BuildRequires:  %{python_module setuptools_scm}
BuildRequires:  python-rpm-macros
BuildRequires:  python3-Sphinx
BuildRequires:  python-funcsigs
Provides:       %{python_module pytest-doc = %{version}}
BuildArch:      noarch

This package contains the documentation to pytest, a cross-project Python
testing tool.

%setup -q -n pytest-%{version}

python3 build_sphinx
rm doc/build/html/.buildinfo

# Only building documentation

#Check here because in main package creates buildcycle
%python_exec test

%doc doc/build/html