commit 5ee444f032964759b4e95c48a07814f43ab42febdc80cb7d08a5d385009da3ef Author: Thomas Bechtold Date: Fri Mar 22 10:14:22 2019 +0000 Accepting request 687459 from home:sebix initial package can also maintain if you wish OBS-URL: https://build.opensuse.org/request/show/687459 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sphinx-autodoc-typehints.changes b/python-sphinx-autodoc-typehints.changes new file mode 100644 index 0000000..f7b30a1 --- /dev/null +++ b/python-sphinx-autodoc-typehints.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Mar 20 21:12:28 UTC 2019 - Sebastian Wagner + +- initial package for version 1.6.0 diff --git a/python-sphinx-autodoc-typehints.spec b/python-sphinx-autodoc-typehints.spec new file mode 100644 index 0000000..17011e0 --- /dev/null +++ b/python-sphinx-autodoc-typehints.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-sphinx-autodoc-typehints +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-sphinx-autodoc-typehints +Version: 1.6.0 +Release: 0 +License: MIT +Summary: Type hints (PEP 484) support for the Sphinx autodoc extension +Url: https://github.com/agronholm/sphinx-autodoc-typehints +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/s/sphinx-autodoc-typehints/sphinx-autodoc-typehints-%{version}.tar.gz +Requires: python-typing_extensions +Requires: python-Sphinx +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools >= 36.2.7} +BuildRequires: %{python_module setuptools_scm >= 1.7.0} +BuildRequires: fdupes +# SECTION tests +BuildRequires: %{python_module Sphinx >= 1.7} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pathlib} +BuildRequires: %{python_module typing_extensions} +# /SECTION +BuildArch: noarch + +%python_subpackages + +%description +This is a Sphinx extension which allows to use Python 3 annotations for documenting acceptable argument types +and return value types of functions. + +%prep +%setup -q -n sphinx-autodoc-typehints-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/* +%license LICENSE +%doc README.rst CHANGELOG.rst + +%changelog diff --git a/setup-tests.patch b/setup-tests.patch new file mode 100644 index 0000000..40b2d97 --- /dev/null +++ b/setup-tests.patch @@ -0,0 +1,14 @@ +--- sphinx-autodoc-typehints-1.6.0/setup.py 2018-01-01 02:48:40.000000000 +0100 ++++ sphinx-autodoc-typehints-1.6.0/setup.py 2019-03-20 22:30:36.262439430 +0100 +@@ -5,5 +5,6 @@ + setup_requires=[ + 'setuptools_scm >= 1.7.0', + 'setuptools >= 36.2.7' +- ] ++ ], ++ test_suite='tests', + ) +--- /dev/null 2019-03-17 09:10:37.176419428 +0100 ++++ sphinx-autodoc-typehints-1.6.0/tests/__init__.py 2019-03-20 22:36:39.207014883 +0100 +@@ -0,0 +1 @@ ++ diff --git a/sphinx-autodoc-typehints-1.6.0.tar.gz b/sphinx-autodoc-typehints-1.6.0.tar.gz new file mode 100644 index 0000000..f6adec1 --- /dev/null +++ b/sphinx-autodoc-typehints-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9c06acfec80766fe8f542a6d6a042e751fcf6ce2e2711a7dc00d8b6daf8aa36 +size 11752