forked from pool/python-sphinx-autodoc-typehints
Accepting request 782837 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/782837 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinx-autodoc-typehints?expand=0&rev=5
This commit is contained in:
commit
f12d1eaa03
17
python-sphinx-autodoc-typehints-system-object.inv.patch
Normal file
17
python-sphinx-autodoc-typehints-system-object.inv.patch
Normal file
@ -0,0 +1,17 @@
|
||||
Index: sphinx-autodoc-typehints-1.10.3/tests/conftest.py
|
||||
===================================================================
|
||||
--- sphinx-autodoc-typehints-1.10.3.orig/tests/conftest.py 2019-11-11 20:10:08.000000000 +0100
|
||||
+++ sphinx-autodoc-typehints-1.10.3/tests/conftest.py 2020-03-06 15:49:28.411760937 +0100
|
||||
@@ -13,10 +13,8 @@ collect_ignore = ['roots']
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def inv(pytestconfig):
|
||||
- cache_path = 'python{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
|
||||
- inv_dict = pytestconfig.cache.get(cache_path, None)
|
||||
- if inv_dict is not None:
|
||||
- return Inventory(inv_dict)
|
||||
+ inv_dict = '/usr/share/doc/packages/python3/html/objects.inv'
|
||||
+ return Inventory(inv_dict)
|
||||
|
||||
print("Downloading objects.inv")
|
||||
url = 'https://docs.python.org/{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
|
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 6 14:50:12 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
- version update to 1.10.3
|
||||
* Fixed ``TypeError`` (or wrong rendered class name) when an annotation is a generic class that has
|
||||
a ``name`` property
|
||||
* Fixed inner classes missing their parent class name(s) when rendered
|
||||
* Fixed ``KeyError`` when encountering mocked annotations (``autodoc_mock_imports``)
|
||||
* Rewrote the annotation formatting logic (fixes Python 3.5.2 compatibility regressions and an
|
||||
``AttributeError`` regression introduced in v1.9.0)
|
||||
* Fixed decorator classes not being processed as classes
|
||||
* Added support for typing_extensions_
|
||||
* Added the ``typehints_document_rtype`` option (PR by Simon-Martin Schröder)
|
||||
* Fixed metaclasses as annotations causing ``TypeError``
|
||||
* Fixed rendering of ``typing.Literal``
|
||||
* Fixed OSError when generating docs for SQLAlchemy mapped classes
|
||||
* Fixed unparametrized generic classes being rendered with their type parameters
|
||||
(e.g. ``Dict[~KT, ~VT]``)
|
||||
- added patches
|
||||
fix use object.inv which comes with python-doc
|
||||
+ python-sphinx-autodoc-typehints-system-object.inv.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 16 13:38:42 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sphinx-autodoc-typehints
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,13 +19,15 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-sphinx-autodoc-typehints
|
||||
Version: 1.8.0
|
||||
Version: 1.10.3
|
||||
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
|
||||
# use object.inv which comes with python-doc; TODO more elegant solution
|
||||
Patch0: python-sphinx-autodoc-typehints-system-object.inv.patch
|
||||
BuildRequires: %{python_module setuptools >= 36.2.7}
|
||||
BuildRequires: %{python_module setuptools_scm >= 1.7.0}
|
||||
BuildRequires: fdupes
|
||||
@ -35,8 +37,10 @@ Requires: python-typing_extensions
|
||||
BuildArch: noarch
|
||||
# SECTION tests
|
||||
BuildRequires: %{python_module Sphinx >= 1.7}
|
||||
BuildRequires: %{python_module doc}
|
||||
BuildRequires: %{python_module pathlib}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sphobjinv}
|
||||
BuildRequires: %{python_module typing_extensions}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@ -47,6 +51,7 @@ and return value types of functions.
|
||||
|
||||
%prep
|
||||
%setup -q -n sphinx-autodoc-typehints-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
3
sphinx-autodoc-typehints-1.10.3.tar.gz
Normal file
3
sphinx-autodoc-typehints-1.10.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6b3180167479aca2c4d1ed3b5cb044a70a76cccd6b38662d39288ebd9f0dff0
|
||||
size 16396
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d968ec3ee4f7fe7695ab6facf5cd2d74d3cea67584277458ad9b2788ebbcc3b
|
||||
size 14730
|
Loading…
Reference in New Issue
Block a user