forked from pool/python-sphinx-autodoc-typehints
- Update to 1.7.0:
* Fixed unwrapped local functions causing errors (PR by Kimiyuki Onaka) * Fixed AttributeError when documenting the __init__() method of a data class * Added support for type hint comments (PR by Markus Unterwaditzer) * Added flag for rendering classes with their fully qualified names (PR by Holly Becker) - Remove merged patch sphinx21.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=8
This commit is contained in:
parent
7f7d27d3b7
commit
052fcc22a2
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 10 10:03:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 1.7.0:
|
||||
* Fixed unwrapped local functions causing errors (PR by Kimiyuki Onaka)
|
||||
* Fixed AttributeError when documenting the __init__() method of a data class
|
||||
* Added support for type hint comments (PR by Markus Unterwaditzer)
|
||||
* Added flag for rendering classes with their fully qualified names (PR by Holly Becker)
|
||||
- Remove merged patch sphinx21.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 09:13:37 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -19,14 +19,13 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-sphinx-autodoc-typehints
|
||||
Version: 1.6.0
|
||||
Version: 1.7.0
|
||||
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
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sphinx-autodoc-typehints/sphinx-autodoc-typehints-%{version}.tar.gz
|
||||
Patch0: sphinx21.patch
|
||||
BuildRequires: %{python_module setuptools >= 36.2.7}
|
||||
BuildRequires: %{python_module setuptools_scm >= 1.7.0}
|
||||
BuildRequires: fdupes
|
||||
@ -48,7 +47,6 @@ and return value types of functions.
|
||||
|
||||
%prep
|
||||
%setup -q -n sphinx-autodoc-typehints-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -58,7 +56,8 @@ and return value types of functions.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
# test_sphinx_output -- too depenedent on sphinx version available
|
||||
%pytest -k 'not test_sphinx_output'
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/*
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f9c06acfec80766fe8f542a6d6a042e751fcf6ce2e2711a7dc00d8b6daf8aa36
|
||||
size 11752
|
3
sphinx-autodoc-typehints-1.7.0.tar.gz
Normal file
3
sphinx-autodoc-typehints-1.7.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8eb1e2bc248d316a9faeca086c6133623f6d45770e342738158249356989b95c
|
||||
size 13078
|
@ -1,22 +0,0 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user