[packages/python3-sphinx_argparse_cli] Initial
arekm
arekm at pld-linux.org
Sat Feb 8 16:51:51 CET 2025
commit a07ec98c9c16477d19dccae61efa684079769eae
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 8 16:17:53 2025 +0100
Initial
python3-sphinx_argparse_cli.spec | 55 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
---
diff --git a/python3-sphinx_argparse_cli.spec b/python3-sphinx_argparse_cli.spec
new file mode 100644
index 0000000..dfe32a5
--- /dev/null
+++ b/python3-sphinx_argparse_cli.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Render CLI arguments (sub-commands friendly) defined by argparse module
+Name: python3-sphinx_argparse_cli
+Version: 1.19.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://files.pythonhosted.org/packages/source/s/sphinx-argparse-cli/sphinx_argparse_cli-%{version}.tar.gz
+# Source0-md5: c7c642b6e709d25b376773903d0df71a
+URL: https://pypi.org/project/sphinx-argparse-cli/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.7
+%if %{with tests}
+BuildRequires: python3-Sphinx >= 1.2.0
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.7
+Conflicts: python3-commonmark < 0.5.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Render CLI arguments (sub-commands friendly) defined by the argparse
+module. For live demo checkout the documentation of tox, pypa-build
+and mdpo.
+
+%prep
+%setup -q -n sphinx_argparse_cli-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%{py3_sitescriptdir}/sphinx_argparse_cli
+%{py3_sitescriptdir}/sphinx_argparse_cli-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_argparse_cli.git/commitdiff/a07ec98c9c16477d19dccae61efa684079769eae
More information about the pld-cvs-commit
mailing list