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,3 +1,23 @@
-------------------------------------------------------------------
Sun Sep 8 16:18:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0f34184eb56f12face774fbc87b880abdb9017a0998d1ec559b267e9697e449
size 15020

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5352f8fa894b6fb6fda0498ba28a9f8d435971ef4bbc1a6c9c6414e7644f032
size 27838