1
0

Accepting request 713192 from devel:languages:python

- Add patch to fix build with new sphinx:
  * sphinx21.patch

- Drop not really needed devel dependency

OBS-URL: https://build.opensuse.org/request/show/713192
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinx-autodoc-typehints?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-07-04 13:43:28 +00:00 committed by Git OBS Bridge
commit c5758390b2
3 changed files with 39 additions and 6 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Jul 3 09:13:37 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to fix build with new sphinx:
* sphinx21.patch
-------------------------------------------------------------------
Thu Jun 6 13:41:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Drop not really needed devel dependency
-------------------------------------------------------------------
Sat Mar 23 14:37:28 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@ -24,23 +24,22 @@ Release: 0
Summary: Type hints (PEP 484) support for the Sphinx autodoc extension
License: MIT
Group: Development/Languages/Python
Url: https://github.com/agronholm/sphinx-autodoc-typehints
URL: https://github.com/agronholm/sphinx-autodoc-typehints
Source: https://files.pythonhosted.org/packages/source/s/sphinx-autodoc-typehints/sphinx-autodoc-typehints-%{version}.tar.gz
Requires: python-Sphinx
Requires: python-typing_extensions
BuildRequires: %{python_module devel}
Patch0: sphinx21.patch
BuildRequires: %{python_module setuptools >= 36.2.7}
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
# SECTION tests
BuildRequires: %{python_module Sphinx >= 1.7}
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typing_extensions}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
@ -49,6 +48,7 @@ and return value types of functions.
%prep
%setup -q -n sphinx-autodoc-typehints-%{version}
%patch0 -p1
%build
%python_build

22
sphinx21.patch Normal file
View File

@ -0,0 +1,22 @@
From 367e32cea5218af9d8df9800bde395cc285e0fad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
Date: Mon, 3 Jun 2019 00:11:22 +0300
Subject: [PATCH] Fixed tests failing on Sphinx 2.1+
---
tests/test_sphinx_autodoc_typehints.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_sphinx_autodoc_typehints.py b/tests/test_sphinx_autodoc_typehints.py
index b751176..d83f484 100644
--- a/tests/test_sphinx_autodoc_typehints.py
+++ b/tests/test_sphinx_autodoc_typehints.py
@@ -231,7 +231,7 @@ class InnerClass
Return type:
"str"
- a_property
+ property a_property
Property docstring