From: Jakub Bogusz Date: Fri, 8 Dec 2023 20:26:10 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/python3-click-repl-0.3.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=87d888e204b351d5002952d6ee06ad18f74c2fa2;p=packages%2Fpython3-click-repl.git - new --- 87d888e204b351d5002952d6ee06ad18f74c2fa2 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