代码拉取完成,页面将自动刷新
%global _empty_manifest_terminate_build 0
Name: python-sphinx-argparse
Version: 0.5.2
Release: 1
Summary: A sphinx extension that automatically documents argparse commands and options
License: MIT
URL: https://github.com/ashb/sphinx-argparse
Source0: https://files.pythonhosted.org/packages/3b/21/a8c64e6633652111e6e4f89703182a53cbc3ed67233523e47472101358b6/sphinx_argparse-0.5.2.tar.gz
BuildArch: noarch
Requires: python3-sphinx
Requires: python3-CommonMark
%description
A sphinx extension that automatically documents argparse commands and options
%package -n python3-sphinx-argparse
Summary: A sphinx extension that automatically documents argparse commands and options
Provides: python-sphinx-argparse
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-flit-core
BuildRequires: python3-sphinx
BuildRequires: python3-docutils
%description -n python3-sphinx-argparse
A sphinx extension that automatically documents argparse commands and options
%package help
Summary: Development documents and examples for sphinx-argparse
Provides: python3-sphinx-argparse-doc
BuildRequires: python3-commonmark
%description help
A sphinx extension that automatically documents argparse commands and options
%prep
%autosetup -n sphinx_argparse-%{version}
%build
%pyproject_build
%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}
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}/doclist.lst .
%files -n python3-sphinx-argparse
%license LICENCE.rst
%doc README.rst
%{python3_sitelib}/sphinxarg
%{python3_sitelib}/sphinx_argparse-*.dist-info/
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Nov 5 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.5.2-1
- Update package with version 0.5.2
Fix formatting of empty-string default values. Patch by Adam Turner.
Fix autodoc_mock_imports support. Patch by Adam Turner.
Add HTML tests to avoid regressions.
Escape reStructuredText special characters in the default value.
Handle None return from shutil.which().
Make argument and option section IDs more unique.
* Mon Aug 28 2023 Ge Wang <wang__ge@126.com> - 0.4.0-3
- Generalize a common format for exclude file
* Mon Feb 27 2023 Ge Wang <wangge20@h-partners.com> - 0.4.0-2
- Remove reduncency cache file
* Wed Dec 07 2022 chendexi <chendexi@kylinos.cn> - 0.4.0-1
- Upgrade package to version 0.4.0
* Tue Sep 27 2022 guozhengxin <guozhengxin@kylinos.cn> - 0.3.1-1
- Upgrade package to version 0.3.1
* Mon Jun 28 2021 liufeng <liufeng@kylinos.cn> - 0.2.5-1
- Initial package.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。