From bef65e8fe9ab530e9c11853c4d72d332da4f83b6d65b9740edad1f842c410ed3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 8 Sep 2024 16:20:00 +0000 Subject: [PATCH] - update to 0.5.2: * Fix formatting of empty-string default values. Turner. * Fix autodoc_mock_imports support. * Properly declare supported Sphinx and Docutils versions. * Fix tests and ensure tests run in CI. * Add HTML tests to avoid regressions. * Escape reStructuredText special characters in the default value. * Fix the options formatter for manpages. * Handle None return from :py:func:`shutil.which`. * Drop support for Python 3.7, 3.8, and 3.9. * Adopt Flit for packaging. * Make argument and option section IDs more unique. * Fix cases where a suppressed default was visible. * Support autodoc_mock_imports. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-argparse?expand=0&rev=11 --- python-sphinx-argparse.changes | 20 ++++++++++++++++++++ python-sphinx-argparse.spec | 24 +++++++++++++----------- sphinx_argparse-0.4.0.tar.gz | 3 --- sphinx_argparse-0.5.2.tar.gz | 3 +++ 4 files changed, 36 insertions(+), 14 deletions(-) delete mode 100644 sphinx_argparse-0.4.0.tar.gz create mode 100644 sphinx_argparse-0.5.2.tar.gz diff --git a/python-sphinx-argparse.changes b/python-sphinx-argparse.changes index bf89a70..42f8559 100644 --- a/python-sphinx-argparse.changes +++ b/python-sphinx-argparse.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sun Sep 8 16:18:38 UTC 2024 - Dirk Müller + +- update to 0.5.2: + * Fix formatting of empty-string default values. + Turner. + * Fix autodoc_mock_imports support. + * Properly declare supported Sphinx and Docutils versions. + * Fix tests and ensure tests run in CI. + * Add HTML tests to avoid regressions. + * Escape reStructuredText special characters in the default + value. + * Fix the options formatter for manpages. + * Handle None return from :py:func:`shutil.which`. + * Drop support for Python 3.7, 3.8, and 3.9. + * Adopt Flit for packaging. + * Make argument and option section IDs more unique. + * Fix cases where a suppressed default was visible. + * Support autodoc_mock_imports. + ------------------------------------------------------------------- Sun May 14 18:40:55 UTC 2023 - Dirk Müller diff --git a/python-sphinx-argparse.spec b/python-sphinx-argparse.spec index 0b4dc1c..5a9cd97 100644 --- a/python-sphinx-argparse.spec +++ b/python-sphinx-argparse.spec @@ -1,7 +1,7 @@ # # spec file for package python-sphinx-argparse # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,21 @@ # -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-sphinx-argparse -Version: 0.4.0 +Version: 0.5.2 Release: 0 Summary: Sphinx extension to document argparse commands and options License: MIT URL: https://github.com/ashb/sphinx-argparse Source0: https://files.pythonhosted.org/packages/source/s/sphinx-argparse/sphinx_argparse-%{version}.tar.gz BuildRequires: %{python_module CommonMark} -BuildRequires: %{python_module Sphinx >= 1.2.0} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,19 +43,18 @@ Sphinx extension that automatically documents argparse commands and options. %autosetup -p1 -n sphinx_argparse-%{version} %build -%python_build +%pyproject_wheel %install -%python_install -# Remove test files, they are in a seperate 'test' module. -%python_expand rm -r %{buildroot}%{$python_sitelib}/test +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} -%license LICENSE -%{python_sitelib}/* +%license LICENCE.rst +%{python_sitelib}/sphinxarg +%{python_sitelib}/sphinx_argparse-%{version}.dist-info %changelog diff --git a/sphinx_argparse-0.4.0.tar.gz b/sphinx_argparse-0.4.0.tar.gz deleted file mode 100644 index 5f44976..0000000 --- a/sphinx_argparse-0.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0f34184eb56f12face774fbc87b880abdb9017a0998d1ec559b267e9697e449 -size 15020 diff --git a/sphinx_argparse-0.5.2.tar.gz b/sphinx_argparse-0.5.2.tar.gz new file mode 100644 index 0000000..7e9b58c --- /dev/null +++ b/sphinx_argparse-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5352f8fa894b6fb6fda0498ba28a9f8d435971ef4bbc1a6c9c6414e7644f032 +size 27838