forked from pool/python-sphinx-autodoc-typehints
- Switch to multibuild to break build cycles.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=28
This commit is contained in:
parent
aa4b62857e
commit
fe370c2707
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
<package>wheel</package>
|
||||
</multibuild>
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 11 10:08:38 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Switch to multibuild to break build cycles.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 5 05:35:05 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-sphinx-autodoc-typehints
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
@ -19,8 +19,15 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define modname sphinx_autodoc_typehints
|
||||
|
||||
Name: python-sphinx-autodoc-typehints
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-sphinx-autodoc-typehints%{psuffix}
|
||||
Version: 1.18.1
|
||||
Release: 0
|
||||
Summary: Type hints (PEP 484) support for the Sphinx autodoc extension
|
||||
@ -36,8 +43,8 @@ BuildRequires: %{python_module setuptools_scm >= 1.7.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Sphinx >= 1.7
|
||||
Requires: python-typing_extensions
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
# SECTION tests
|
||||
BuildRequires: %{python_module Sphinx >= 1.7}
|
||||
BuildRequires: %{python_module doc}
|
||||
@ -46,6 +53,7 @@ BuildRequires: %{python_module pathlib}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sphobjinv}
|
||||
BuildRequires: %{python_module typing_extensions}
|
||||
%endif
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@ -61,18 +69,25 @@ and return value types of functions.
|
||||
%python_expand sed -i -e 's/@PYTHON_VERSION@/%{$python_version}/' tests/conftest.py
|
||||
|
||||
%install
|
||||
%if %{without test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
export PYTHONPATH=./src
|
||||
%if %{with test}
|
||||
# test_sphinx_output -- too depenedent on sphinx version available
|
||||
# gh#tox-dev/sphinx-autodoc-typehints#229
|
||||
%pytest -k 'not (test_sphinx_output or test_format_annotation)'
|
||||
%endif
|
||||
|
||||
%if %{without test}
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md CHANGELOG.md
|
||||
%{python_sitelib}/%{modname}-%{version}*-info
|
||||
%{python_sitelib}/%{modname}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user