[packages/python-chardet] - disable pytest plugins
qboosh
qboosh at pld-linux.org
Sun Dec 14 21:51:56 CET 2025
commit 44eb1d831bda8e9882170e22da257a7874234a8b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 14 21:52:16 2025 +0100
- disable pytest plugins
python-chardet.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/python-chardet.spec b/python-chardet.spec
index ef2f3b4..a17b71d 100644
--- a/python-chardet.spec
+++ b/python-chardet.spec
@@ -58,6 +58,7 @@ Dokumentacja API modułu Pythona chardet.
%py_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python} -m pytest test.py
%endif
@@ -71,9 +72,10 @@ PYTHONPATH=$(pwd) \
rm -rf $RPM_BUILD_ROOT
%py_install
+
%py_postclean
-mv $RPM_BUILD_ROOT%{_bindir}/chardetect{,-2}
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/chardetect{,-2}
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-chardet.git/commitdiff/44eb1d831bda8e9882170e22da257a7874234a8b
More information about the pld-cvs-commit
mailing list