Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37765866
en ru br
ALT Linux repos
S:1.11.1-alt1

Group :: Development/Python3
RPM: python3-module-sphinx-argparse-cli

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot
%define modname sphinx-argparse-cli
%define pypi_name sphinx_argparse_cli
%def_enable check

Name: python3-module-%modname
Version: 1.11.1
Release: alt1

Summary: CLI arguments renderer for Sphinx
Group: Development/Python3
License: MIT
Url: https://pypi.org/project/%modname

%if_disabled snapshot
Source: https://pypi.io/packages/source/s/%pypi_name/%pypi_name-%version.tar.gz
# tar -cf sphinx_argparse_cli-1.11.0-roots.tar roots/
Source1: %pypi_name-%version-roots.tar
%else
Vcs: https://github.com/tox-dev/sphinx-argparse-cli.git
Source: %pypi_name-%version.tar
%endif

BuildArch: noarch
Provides: python3-module-%pypi_name = %EVR

%define sphinx_ver 6.1.3

BuildRequires(pre): rpm-build-python3 >= 0.1.19
BuildRequires: python3-module-hatchling python3-module-hatch-vcs python3-module-wheel
%{?_enable_check:BuildRequires: python3-module-sphinx-tests >= %sphinx_ver python3-module-pytest-cov
BuildRequires: python3-module-covdefaults}

%description
Render CLI arguments (sub-commands friendly) defined by the argparse module.

%prep
%setup -n %pypi_name-%version -a1

%build
%pyproject_build

%install
%pyproject_install

%check
export PYTHONPATH=%buildroot%python3_sitelibdir_noarch
py.test3

%files
%python3_sitelibdir_noarch/%pypi_name
%python3_sitelibdir_noarch/%{pyproject_distinfo %pypi_name}
%doc README*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin