14
0

- 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
This commit is contained in:
2024-09-08 16:20:00 +00:00
committed by Git OBS Bridge
parent d2c90e7480
commit bef65e8fe9
4 changed files with 36 additions and 14 deletions

View File

@@ -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