15
0

- Update to 4.3:

* The pyproject.toml parsing feature now depends on tomli
  * Support for pyproject.toml specification of manpages added.
  * Support for pre-written man pages (the --manfile option)
  * Incorrect dict access for --include support fixed.
- Add patch skip-pip-install.patch:
  * Skip pip install tests for now.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=28
This commit is contained in:
2023-06-15 09:43:05 +00:00
committed by Git OBS Bridge
parent e710866176
commit 4fdae1f2e3
5 changed files with 36 additions and 8 deletions

View File

@@ -17,22 +17,24 @@
%define mod_name argparse-manpage
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-argparse-manpage
Version: 4.1
Version: 4.3
Release: 0
Summary: Tool for automatic manual page building from a Python ArgumentParser object
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/praiskup/argparse-manpage
Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz
# PATCH-FIX-OPENSUSE Skip pip install tests until pip can behave better
Patch0: skip-pip-install.patch
BuildArch: noarch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: ca-certificates
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires: python-tomli
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
@@ -47,7 +49,7 @@ or the function name which returns the object. There's a limited
support for (deprecated) optparse objects, too.
%prep
%setup -q -n %{mod_name}-%{version}
%autosetup -p1 -n %{mod_name}-%{version}
%build
%python_build
@@ -70,7 +72,9 @@ support for (deprecated) optparse objects, too.
%files %{python_files}
%doc README*
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/argparse_manpage
%{python_sitelib}/build_manpages
%{python_sitelib}/argparse_manpage-%{version}*info
%python_alternative %{_bindir}/argparse-manpage
%python_alternative %{_mandir}/man1/argparse-manpage.1%{?ext_man}