diff --git a/python-sphinx-argparse.spec b/python-sphinx-argparse.spec index 6c110c996d66bde4f396c92250d9d0f00ce7989c..a938c49cdd10a72d7e2a5eda2de12bb4f7c67c3f 100644 --- a/python-sphinx-argparse.spec +++ b/python-sphinx-argparse.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-sphinx-argparse -Version: 0.4.0 -Release: 3 +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/82/0b/d98f799d4283e8b6c403fd8102acf2b552ad78e947b6899a1344521e9d86/sphinx_argparse-0.4.0.tar.gz +Source0: https://files.pythonhosted.org/packages/3b/21/a8c64e6633652111e6e4f89703182a53cbc3ed67233523e47472101358b6/sphinx_argparse-0.5.2.tar.gz BuildArch: noarch Requires: python3-sphinx @@ -20,12 +20,20 @@ Summary: A sphinx extension that automatically documents argparse commands and o 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 @@ -33,45 +41,42 @@ A sphinx extension that automatically documents argparse commands and options %autosetup -n sphinx_argparse-%{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-argparse -f filelist.lst -%dir %{python3_sitelib}/* -%exclude %{python3_sitelib}/test/__pycache__/__init__.cpython-*.opt-1.pyc -%exclude %{python3_sitelib}/test/__pycache__/__init__.cpython-*.pyc +%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 - 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 - 0.4.0-3 - Generalize a common format for exclude file diff --git a/sphinx_argparse-0.4.0.tar.gz b/sphinx_argparse-0.4.0.tar.gz deleted file mode 100644 index 326ab51bbf68a5fbb0ee10263b5e137a7b028ba6..0000000000000000000000000000000000000000 Binary files a/sphinx_argparse-0.4.0.tar.gz and /dev/null differ diff --git a/sphinx_argparse-0.5.2.tar.gz b/sphinx_argparse-0.5.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0168452e0d1f2f7e401ce7b6b3a3dab3df22d197 Binary files /dev/null and b/sphinx_argparse-0.5.2.tar.gz differ