[packages/python3-click-repl] Up to 0.4.1

arekm arekm at pld-linux.org
Thu Nov 12 08:49:23 CET 2026


commit aabf5fcf4cc0ff84dd3e27a985b899983ec4d494
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 01:22:49 2026 +0100

    Up to 0.4.1
    
    Enable tests

 python3-click-repl.spec | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/python3-click-repl.spec b/python3-click-repl.spec
index 8ec83e9..44bda13 100644
--- a/python3-click-repl.spec
+++ b/python3-click-repl.spec
@@ -1,29 +1,34 @@
 #
 # Conditional build:
-%bcond_with	tests	# unit tests (not included in sdist)
+%bcond_without	tests	# unit tests
 
 Summary:	REPL plugin for Click
 Summary(pl.UTF-8):	Wtyczka REPL dla Clicka
 Name:		python3-click-repl
-Version:	0.3.0
-Release:	3
+Version:	0.4.1
+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
+Source0:	https://files.pythonhosted.org/packages/source/c/click-repl/click_repl-%{version}.tar.gz
+# Source0-md5:	6bf41793093fe8ae608e30eb2885a868
+# sdist ships tests/ without __init__.py, which provides mock_stdin
+Source1:	https://raw.githubusercontent.com/click-contrib/click-repl/%{version}/tests/__init__.py?/click-repl-tests-init-%{version}.py
+# Source1-md5:	e26547a7e6f42eb34b43d04a7462814d
 URL:		https://pypi.org/project/click-repl/
-BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-modules >= 1:3.9
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-click >= 7.0
+BuildRequires:	python3-click < 9
 BuildRequires:	python3-prompt_toolkit >= 3.0.36
 BuildRequires:	python3-pytest >= 7.2.1
 BuildRequires:	python3-pytest-cov >= 4.0.0
+BuildRequires:	python3-typing_extensions >= 4.7.0
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-modules >= 1:3.6
+Requires:	python3-modules >= 1:3.9
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,7 +39,9 @@ REPL plugin for Click.
 Wtyczka REPL dla Clicka.
 
 %prep
-%setup -q -n click-repl-%{version}
+%setup -q -n click_repl-%{version}
+
+cp -p %{SOURCE1} tests/__init__.py
 
 %build
 %py3_build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-click-repl.git/commitdiff/aabf5fcf4cc0ff84dd3e27a985b899983ec4d494



More information about the pld-cvs-commit mailing list