1
0

Accepting request 1140272 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1140272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinx-autodoc-typehints?expand=0&rev=15
This commit is contained in:
Ana Guerrero 2024-01-21 22:09:57 +00:00 committed by Git OBS Bridge
commit c802b7a700
5 changed files with 45 additions and 15 deletions

View File

@ -2,9 +2,11 @@
tests/conftest.py | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -18,17 +18,8 @@ collect_ignore = ["roots"]
Index: sphinx_autodoc_typehints-1.25.2/tests/conftest.py
===================================================================
--- sphinx_autodoc_typehints-1.25.2.orig/tests/conftest.py
+++ sphinx_autodoc_typehints-1.25.2/tests/conftest.py
@@ -19,16 +19,8 @@ collect_ignore = ["roots"]
@pytest.fixture(scope="session")
def inv(pytestconfig: Config) -> Inventory:
@ -14,8 +16,7 @@
- if inv_dict is not None:
- return Inventory(inv_dict)
-
- print("Downloading objects.inv")
- url = "https://docs.python.org/{v.major}.{v.minor}/objects.inv".format(v=sys.version_info)
- url = f"https://docs.python.org/{sys.version_info.major}.{sys.version_info.minor}/objects.inv"
- inv = Inventory(url=url)
- pytestconfig.cache.set(cache_path, inv.json_dict())
- return inv

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Sun Jan 14 10:21:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.25.2:
* Allow Sphinx explicitly to write in parallel.
* Fixed crash when documenting ParamSpecArgs
* Fixed a bug where if a class has an attribute and a constructor
argument with the same name, the constructor argument
type would be rendered incorrectly (issue 308)
* Fixed napoleon handling of numpy docstrings with no specified
return type.
* Fix a `Field list ends without a blank line` warning (issue 305).
* More robust determination of rtype location / fix issue 302
* Improvements to the location of the return type
* Use format_annotation to render class attribute type annotations
* Fix overloads support
* Fix spacing between `:rtype:` and directives
* Handle types from types module
* If module is \_io, use io instead
* Put rtype before examples or usage section
* Remove redundant return type for attributes
* Handle collections.abc.Callable as well as typing.Callable
* Put Literal args in code blocks
* Fix Optional role to be data.
* Fixed default options not displaying for parameters without
type hints.
* Use hatchling instead of setuptools
* Add support for typing.ParamSpec
* Allow star prefixes for parameter names in docstring
-------------------------------------------------------------------
Fri Jul 21 12:06:28 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
@ -6,10 +36,10 @@ Fri Jul 21 12:06:28 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
-------------------------------------------------------------------
Fri Oct 7 16:20:26 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 1.19.2
- Update to version 1.19.2
* Fix incorrect domain used for collections.abc.Callable.
* Support for CPython 3.11, no longer adds Optional when the argument is default
-------------------------------------------------------------------
Thu Jul 14 16:34:24 UTC 2022 - Ben Greiner <code@bnavigator.de>
@ -100,7 +130,7 @@ Tue Aug 3 09:42:00 UTC 2021 - Matej Cepl <mcepl@suse.com>
Sat Apr 24 14:11:17 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Remove no-net-tests.patch as adding the fixed
python-sphinx-autodoc-typehints-system-object.inv.patch
python-sphinx-autodoc-typehints-system-object.inv.patch
makes tests requiring network working
(gh#agronholm/sphinx-autodoc-typehints#174).

View File

@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,7 +28,7 @@
%{?sle15_python_module_pythons}
Name: python-sphinx-autodoc-typehints%{psuffix}
Version: 1.19.2
Version: 1.25.2
Release: 0
Summary: Type hints (PEP 484) support for the Sphinx autodoc extension
License: MIT
@ -38,9 +38,8 @@ Source: https://files.pythonhosted.org/packages/source/s/sphinx_autodoc_
# PATCH-FIX-OPENSUSE python-sphinx-autodoc-typehints-system-object.inv.patch gh#agronholm/sphinx-autodoc-typehints#174 mcepl@suse.com
# Don't download inventory from the Internet, but use the local one.
Patch0: python-sphinx-autodoc-typehints-system-object.inv.patch
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 36.2.7}
BuildRequires: %{python_module setuptools_scm >= 1.7.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:872fb2d7b3d794826c28e36edf6739e93549491447dcabeb07c58855e9f914de
size 31801

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3cabc2537e17989b2f92e64a399425c4c8bf561ed73f087bc7414a5003616a50
size 37173