diff --git a/python-sh.spec b/python-sh.spec index cd63847693f1a52e121c644597e698e5a5b0fd85..473bbeefd8f2c1a5e0dc378373ddf505a6ce77eb 100644 --- a/python-sh.spec +++ b/python-sh.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-sh -Version: 1.14.3 +Version: 2.0.5 Release: 1 Summary: Python subprocess replacement License: MIT URL: https://github.com/amoffat/sh -Source0: https://files.pythonhosted.org/packages/b7/09/89c28aaf2a49f226fef8587c90c6386bd2cc03a0295bc4ff7fc6ee43c01d/sh-1.14.3.tar.gz +Source0: https://files.pythonhosted.org/packages/37/86/ece11098f49068b8e77a46b83bce8e539b9416cfc03f2fab287f92d7230f/sh-2.0.5.tar.gz BuildArch: noarch %description @@ -16,6 +16,9 @@ Summary: Python subprocess replacement Provides: python-sh BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-poetry-core %description -n python3-sh sh is a full-fledged subprocess replacement for Python2,Python3,PyPy and PyPy3 that allows you to call any program as if it were a function @@ -26,13 +29,13 @@ Provides: python3-sh-doc sh is a full-fledged subprocess replacement for Python2,Python3,PyPy and PyPy3 that allows you to call any program as if it were a function %prep -%autosetup -n sh-1.14.3 +%autosetup -n sh-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -61,11 +64,15 @@ mv %{buildroot}/doclist.lst . %files -n python3-sh -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/__pycache__/* %files help -f doclist.lst %{_docdir}/* %changelog +* Wed Aug 9 2023 zhangchenglin - 2.0.5-1 +- upgrade version to 2.0.5 + * Thu Aug 04 2022 liukuo - 1.14.3-1 - upgrade version to 1.14.3 diff --git a/sh-1.14.3.tar.gz b/sh-1.14.3.tar.gz deleted file mode 100644 index 4995bd5b16b13a305781f3e31986af215090ef2b..0000000000000000000000000000000000000000 Binary files a/sh-1.14.3.tar.gz and /dev/null differ diff --git a/sh-2.0.5.tar.gz b/sh-2.0.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4093ab3ba1cd3c73bd9dfaf2b44210f628dfe1a2 Binary files /dev/null and b/sh-2.0.5.tar.gz differ