From 5a1ec36786d3b1e4b47a8ac6cc2f0aa6d47087f78aa002f40a59bca507bd78e3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 6 Jun 2022 23:04:29 +0000 Subject: [PATCH 1/4] - Update to 1.18.2: - [pre-commit.ci] pre-commit autoupdate - Support and require nptyping 2.1.1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=31 --- python-sphinx-autodoc-typehints.changes | 7 +++++++ python-sphinx-autodoc-typehints.spec | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/python-sphinx-autodoc-typehints.changes b/python-sphinx-autodoc-typehints.changes index de17502..5feeee2 100644 --- a/python-sphinx-autodoc-typehints.changes +++ b/python-sphinx-autodoc-typehints.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jun 6 23:01:55 UTC 2022 - Matej Cepl + +- Update to 1.18.2: + - [pre-commit.ci] pre-commit autoupdate + - Support and require nptyping 2.1.1 + ------------------------------------------------------------------- Wed May 11 10:08:38 UTC 2022 - Matej Cepl diff --git a/python-sphinx-autodoc-typehints.spec b/python-sphinx-autodoc-typehints.spec index 4543240..a51ce6b 100644 --- a/python-sphinx-autodoc-typehints.spec +++ b/python-sphinx-autodoc-typehints.spec @@ -38,8 +38,10 @@ 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 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 Requires: python-Sphinx >= 1.7 @@ -65,12 +67,12 @@ and return value types of functions. %autosetup -p1 -n sphinx_autodoc_typehints-%{version} %build -%python_build +%pyproject_wheel %python_expand sed -i -e 's/@PYTHON_VERSION@/%{$python_version}/' tests/conftest.py %install %if %{without test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif From 2311043acefe8bcab2f930a887e147274709e15e0b59ade34b14db45ed8006cb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 6 Jun 2022 23:04:59 +0000 Subject: [PATCH 2/4] Adjust SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=32 --- python-sphinx-autodoc-typehints.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-sphinx-autodoc-typehints.spec b/python-sphinx-autodoc-typehints.spec index a51ce6b..611be71 100644 --- a/python-sphinx-autodoc-typehints.spec +++ b/python-sphinx-autodoc-typehints.spec @@ -34,7 +34,7 @@ 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 +Source: https://files.pythonhosted.org/packages/source/s/sphinx_autodoc_typehints/sphinx_autodoc_typehints-%{version}.tar.gz # 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 From 43e903f39e15b41bd06b016c83c3b895d3d3ac6eccd31c7ea8c88128b0ac5ca7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 6 Jun 2022 23:11:04 +0000 Subject: [PATCH 3/4] Adjust SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=33 --- python-sphinx-autodoc-typehints.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-sphinx-autodoc-typehints.spec b/python-sphinx-autodoc-typehints.spec index 611be71..508c488 100644 --- a/python-sphinx-autodoc-typehints.spec +++ b/python-sphinx-autodoc-typehints.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define skip_python36 1 %define modname sphinx_autodoc_typehints %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" From 42fab2d8e3cfa81ee8d6df0bb42bfed4a2cc9fbefdda13a35f2105abbd3fd262 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 6 Jun 2022 23:19:48 +0000 Subject: [PATCH 4/4] Adjust SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=34 --- python-sphinx-autodoc-typehints.spec | 2 +- sphinx_autodoc_typehints-1.18.1.tar.gz | 3 --- sphinx_autodoc_typehints-1.18.2.tar.gz | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 sphinx_autodoc_typehints-1.18.1.tar.gz create mode 100644 sphinx_autodoc_typehints-1.18.2.tar.gz diff --git a/python-sphinx-autodoc-typehints.spec b/python-sphinx-autodoc-typehints.spec index 508c488..28a351f 100644 --- a/python-sphinx-autodoc-typehints.spec +++ b/python-sphinx-autodoc-typehints.spec @@ -29,7 +29,7 @@ %bcond_with test %endif Name: python-sphinx-autodoc-typehints%{psuffix} -Version: 1.18.1 +Version: 1.18.2 Release: 0 Summary: Type hints (PEP 484) support for the Sphinx autodoc extension License: MIT diff --git a/sphinx_autodoc_typehints-1.18.1.tar.gz b/sphinx_autodoc_typehints-1.18.1.tar.gz deleted file mode 100644 index 2c3d9ec..0000000 --- a/sphinx_autodoc_typehints-1.18.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07631c5f0c6641e5ba27143494aefc657e029bed3982138d659250e617f6f929 -size 31198 diff --git a/sphinx_autodoc_typehints-1.18.2.tar.gz b/sphinx_autodoc_typehints-1.18.2.tar.gz new file mode 100644 index 0000000..a28b5bf --- /dev/null +++ b/sphinx_autodoc_typehints-1.18.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ba02ecced60ba640f891301c863097468560d23df80afbd69b2ddcde261be2d +size 31191