[packages/python-sh] - updated to 1.14.3 (the last version with python2 support)

qboosh qboosh at pld-linux.org
Sun Jan 11 08:07:41 CET 2026


commit 1add3f7163d953de6c181aa50f47e22eacbf0b95
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 11 08:07:33 2026 +0100

    - updated to 1.14.3 (the last version with python2 support)

 python-sh.spec | 75 ++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 49 insertions(+), 26 deletions(-)
---
diff --git a/python-sh.spec b/python-sh.spec
index a323647..1d66860 100644
--- a/python-sh.spec
+++ b/python-sh.spec
@@ -1,47 +1,60 @@
 #
 # Conditional build:
+%bcond_without	tests	# functional tests
 %bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-sh.spec)
 
 %define 	module		sh
-%define 	egg_name	sh
-%define		pypi_name	sh
-Summary:	Python subprocess interface
+Summary:	Python 2 subprocess replacement
+Summary(pl.UTF-8):	Zamiennik modułu subprocess dla Pythona 2
 Name:		python-%{module}
-Version:	1.11
-Release:	10
+# keep 1.x here for python2 support
+Version:	1.14.3
+Release:	1
 License:	MIT
 Group:		Libraries/Python
-Source0:	https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	7af8df6c92d29ff927b6db0146bddec3
-URL:		https://amoffat.github.io/sh/
+Source0:	https://files.pythonhosted.org/packages/source/s/sh/%{module}-%{version}.tar.gz
+# Source0-md5:	d60498172876f35aef6303a9cbb8eb11
+URL:		https://pypi.org/project/sh/
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.6
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules
+BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	python3-setuptools
 %endif
+Requires:	python-modules >= 1:2.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-sh (previously pbs) is a full-fledged subprocess replacement for
-Python 2.6 - 3.4 that allows you to call any program as if it were a
-function
+sh is a full-fledged subprocess replacement for Python 2, Python 3,
+PyPy and PyPy3 that allows you to call any program as if it were a
+function.
+
+%description -l pl.UTF-8
+sh to w pełni rozwinięty zamiennik modułu subprocess dla Pythona 2,
+Pythona 3, PyPy i PyPy3, pozwalający na wywołanie dowolnego programu
+tak, jakby był funkcją.
 
 %package -n python3-%{module}
-Summary:	SH module for python 3
-Summary(pl.UTF-8):	Moduł sh dla pythona 3
+Summary:	Python 3 subprocess replacement
+Summary(pl.UTF-8):	Zamiennik modułu subprocess dla Pythona 3
 Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
 
 %description -n python3-%{module}
-sh (previously pbs) is a full-fledged subprocess replacement for
-Python 2.6 - 3.4 that allows you to call any program as if it were a
-function
+sh is a full-fledged subprocess replacement for Python 2, Python 3,
+PyPy and PyPy3 that allows you to call any program as if it were a
+function.
+
+%description -n python3-%{module} -l pl.UTF-8
+sh to w pełni rozwinięty zamiennik modułu subprocess dla Pythona 2,
+Pythona 3, PyPy i PyPy3, pozwalający na wywołanie dowolnego programu
+tak, jakby był funkcją.
 
 %prep
 %setup -q -n %{module}-%{version}
@@ -49,16 +62,26 @@ function
 %build
 %if %{with python2}
 %py_build
+
+%if %{with tests}
+%{__python} test.py
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
+
+%if %{with tests}
+%{__python3} test.py
+%endif
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %if %{with python2}
 %py_install
+
 %py_postclean
 %endif
 
@@ -72,16 +95,16 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS.md CHANGELOG.md README.md
-%{py_sitescriptdir}/%{module}.py[co]
-%{py_sitescriptdir}/%{egg_name}-*-py*.egg-info
+%doc CHANGELOG.md LICENSE.txt README.rst
+%{py_sitescriptdir}/sh.py[co]
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc AUTHORS.md CHANGELOG.md README.md
-%{py3_sitescriptdir}/__pycache__/%{module}.*.pyc
-%{py3_sitescriptdir}/%{module}.py
-%{py3_sitescriptdir}/%{egg_name}-*-py*.egg-info
+%doc CHANGELOG.md LICENSE.txt README.rst
+%{py3_sitescriptdir}/sh.py
+%{py3_sitescriptdir}/__pycache__/sh.cpython-*.pyc
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sh.git/commitdiff/1add3f7163d953de6c181aa50f47e22eacbf0b95



More information about the pld-cvs-commit mailing list