[packages/python3-sh] - updated to 2.4.0 (fixes CVE-2026-54552); src layout, run tests via pytest (sh_test.py alone ran no
adamg
adamg at pld-linux.org
Sat Nov 21 03:16:20 CET 2026
commit 473025d84753b867bfd02b91411b95030964aa02
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Sat Nov 21 03:16:18 2026 +0100
- updated to 2.4.0 (fixes CVE-2026-54552); src layout, run tests via pytest (sh_test.py alone ran nothing)
- release 1
python3-sh.spec | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/python3-sh.spec b/python3-sh.spec
index d9a3361..3ede94c 100644
--- a/python3-sh.spec
+++ b/python3-sh.spec
@@ -6,12 +6,12 @@
Summary: Python subprocess replacement
Summary(pl.UTF-8): Zamiennik modułu subprocess dla Pythona
Name: python3-%{module}
-Version: 2.2.2
+Version: 2.4.0
Release: 1
License: MIT
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/s/sh/%{module}-%{version}.tar.gz
-# Source0-md5: 961d38de16f88556bd70381eddd7f415
+# Source0-md5: 3c11c9c853bf3d326dab0167e9610187
Patch0: sh-udev.patch
Patch1: sh-tests.patch
URL: https://pypi.org/project/sh/
@@ -47,8 +47,9 @@ funkcją.
%py3_build_pyproject
%if %{with tests}
-PYTHONPATH=$(pwd) \
-%{__python3} tests/sh_test.py
+PYTHONPATH=$(pwd)/src \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests/sh_test.py
%endif
%install
@@ -61,7 +62,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGELOG.md LICENSE.txt MIGRATION.md README.rst
-%{py3_sitescriptdir}/sh.py
-%{py3_sitescriptdir}/__pycache__/sh.cpython-*.pyc
+%doc CHANGELOG.md LICENSE.txt README.rst
+%{py3_sitescriptdir}/sh
%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sh.git/commitdiff/473025d84753b867bfd02b91411b95030964aa02
More information about the pld-cvs-commit
mailing list