1
0
python-sphinx-autodoc-typeh.../python-sphinx-autodoc-typehints.spec

68 lines
2.2 KiB
RPMSpec

#
# spec file for package python-sphinx-autodoc-typehints
#
# Copyright (c) 2019 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-sphinx-autodoc-typehints
Version: 1.6.0
Release: 0
License: MIT
Summary: Type hints (PEP 484) support for the Sphinx autodoc extension
Url: https://github.com/agronholm/sphinx-autodoc-typehints
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/s/sphinx-autodoc-typehints/sphinx-autodoc-typehints-%{version}.tar.gz
Requires: python-typing_extensions
Requires: python-Sphinx
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools >= 36.2.7}
BuildRequires: %{python_module setuptools_scm >= 1.7.0}
BuildRequires: fdupes
# SECTION tests
BuildRequires: %{python_module Sphinx >= 1.7}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module typing_extensions}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
This is a Sphinx extension which allows to use Python 3 annotations for documenting acceptable argument types
and return value types of functions.
%prep
%setup -q -n sphinx-autodoc-typehints-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%{python_sitelib}/*
%license LICENSE
%doc README.rst CHANGELOG.rst
%changelog