diff --git a/python-sphinx-autodoc-typehints.spec b/python-sphinx-autodoc-typehints.spec index c6f48f8..f4d929b 100644 --- a/python-sphinx-autodoc-typehints.spec +++ b/python-sphinx-autodoc-typehints.spec @@ -1,11 +1,13 @@ %global _empty_manifest_terminate_build 0 -Name: python-sphinx-autodoc-typehints -Version: 1.12.0 +%global pypi_name sphinx-autodoc-typehints +%global source_name sphinx_autodoc_typehints +Name: python-%{pypi_name} +Version: 1.23.0 Release: 1 Summary: Type hints (PEP 484) support for the Sphinx autodoc extension License: MIT URL: None -Source0: https://files.pythonhosted.org/packages/54/69/efa0dd8ab4daa4faf4ba166b52c1cbc991b5c510d01183fe93895cacd678/sphinx-autodoc-typehints-1.12.0.tar.gz +Source0: https://files.pythonhosted.org/packages/46/30/9764a2c735c655c3065f32072fb3d8c6fd5dda8df294d4e9f05670d60e31/sphinx_autodoc_typehints-1.23.0.tar.gz BuildArch: noarch %description sphinx-autodoc-typehints This extension allows you to use Python 3 annotations @@ -13,7 +15,7 @@ for documenting acceptable argument types and return value types of functions. This allows you to use type hints in a very natural fashion, allowing you to migrate. -%package -n python3-sphinx-autodoc-typehints +%package -n python3-%{pypi_name} Summary: Type hints (PEP 484) support for the Sphinx autodoc extension Provides: python-sphinx-autodoc-typehints # Base build requires @@ -23,67 +25,39 @@ BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-setuptools_scm +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv # General requires BuildRequires: python3-sphinx # General requires Requires: python3-sphinx -%description -n python3-sphinx-autodoc-typehints -sphinx-autodoc-typehints This extension allows you to use Python 3 annotations -for documenting acceptable argument types and return value types of functions. -This allows you to use type hints in a very natural fashion, allowing you to -migrate. - -%package help -Summary: Type hints (PEP 484) support for the Sphinx autodoc extension -Provides: python3-sphinx-autodoc-typehints-doc -%description help +%description -n python3-%{pypi_name} sphinx-autodoc-typehints This extension allows you to use Python 3 annotations for documenting acceptable argument types and return value types of functions. This allows you to use type hints in a very natural fashion, allowing you to migrate. %prep -%autosetup -n sphinx-autodoc-typehints-%{version} +%autosetup -p1 -n %{source_name}-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%files -n python3-sphinx-autodoc-typehints -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/%{source_name} +%{python3_sitelib}/%{source_name}-*.dist-info/ %changelog +* Tue Jun 20 2023 Dongxing Wang - 1.23.0-1 +- Upgrade to version 1.23.0 + * Tue Jul 26 2022 renliang16 - 1.12.0-1 - Init package python3-sphinx-autodoc-typehints of version 1.12.0 diff --git a/python-sphinx-autodoc-typehints.yaml b/python-sphinx-autodoc-typehints.yaml new file mode 100644 index 0000000..4f02678 --- /dev/null +++ b/python-sphinx-autodoc-typehints.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: sphinx-autodoc-typehints +tag_prefix: ^v +seperator: "." diff --git a/sphinx-autodoc-typehints-1.12.0.tar.gz b/sphinx-autodoc-typehints-1.12.0.tar.gz deleted file mode 100644 index 81f0ea2..0000000 Binary files a/sphinx-autodoc-typehints-1.12.0.tar.gz and /dev/null differ diff --git a/sphinx_autodoc_typehints-1.23.0.tar.gz b/sphinx_autodoc_typehints-1.23.0.tar.gz new file mode 100644 index 0000000..c962833 Binary files /dev/null and b/sphinx_autodoc_typehints-1.23.0.tar.gz differ