Ai
5 Star 0 Fork 7

src-openEuler/python-sphinx-argparse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python-sphinx-argparse.spec 2.99 KB
一键复制 编辑 原始数据 按行查看 历史
大漠行舟 提交于 2024-11-05 10:00 +08:00 . Update package with version 0.5.2
%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.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-sphinx-argparse.git
git@gitee.com:src-openeuler/python-sphinx-argparse.git
src-openeuler
python-sphinx-argparse
python-sphinx-argparse
master

搜索帮助