[packages/python3-click-repl] - new
qboosh
qboosh at pld-linux.org
Fri Dec 8 21:36:28 CET 2023
commit 87d888e204b351d5002952d6ee06ad18f74c2fa2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Dec 8 21:26:10 2023 +0100
- new
python3-click-repl.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/python3-click-repl.spec b/python3-click-repl.spec
new file mode 100644
index 0000000..beb662c
--- /dev/null
+++ b/python3-click-repl.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (not included in sdist)
+
+Summary: REPL plugin for Click
+Summary(pl.UTF-8): Wtyczka REPL dla Clicka
+Name: python3-click-repl
+Version: 0.3.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/click-repl/
+Source0: https://files.pythonhosted.org/packages/source/c/click-repl/click-repl-%{version}.tar.gz
+# Source0-md5: 6f91210a103e1927be0c3fa26f9c4430
+URL: https://pypi.org/project/click-repl/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-click >= 7.0
+BuildRequires: python3-prompt_toolkit >= 3.0.36
+BuildRequires: python3-pytest >= 7.2.1
+BuildRequires: python3-pytest-cov >= 4.0.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+REPL plugin for Click.
+
+%description -l pl.UTF-8
+Wtyczka REPL dla Clicka.
+
+%prep
+%setup -q -n click-repl-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/click_repl
+%{py3_sitescriptdir}/click_repl-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-click-repl.git/commitdiff/87d888e204b351d5002952d6ee06ad18f74c2fa2
More information about the pld-cvs-commit
mailing list