Compare commits

...

No commits in common. 'i9ce' and 'i10fe' have entirely different histories.
i9ce ... i10fe

2
.gitignore vendored

@ -1 +1 @@
SOURCES/sh-1.14.2.tar.gz SOURCES/sh-2.0.6.tar.gz

@ -1 +1 @@
4dd45f1754b3486fde50b4031f32163e26bdf931 SOURCES/sh-1.14.2.tar.gz b4dc3d4b851451f533209c77c8fd6a304c33eb97 SOURCES/sh-2.0.6.tar.gz

@ -1,38 +1,43 @@
%global srcname sh ## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 6;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global common_description %{expand: %global common_description %{expand:
sh is a full-fledged subprocess replacement for Python that allows you to call sh is a full-fledged subprocess replacement for Python that allows you to call
any program as if it were a function. sh is not a collection of system any program as if it were a function. sh is not a collection of system
commands implemented in Python.} commands implemented in Python.}
Name: python-%{srcname} Name: python-sh
License: MIT Version: 2.0.6
Release: %autorelease
Summary: Python subprocess replacement Summary: Python subprocess replacement
Version: 1.14.2 License: MIT
Release: 5%{?dist} URL: https://sh.readthedocs.io/
URL: https://github.com/amoffat/sh Source: %{pypi_source sh}
Source0: %pypi_source
BuildArch: noarch BuildArch: noarch
# MiscTests.test_no_fd_leak needs lsof, but it is a "flaky test by nature", and BuildRequires: python3-devel
# sometimes fails the package build. Without lsof installed, the test is # Several tests run the python command.
# skipped. Let's leave it out for now. BuildRequires: python-unversioned-command
# https://github.com/amoffat/sh/issues/600
#BuildRequires: lsof
%description %{common_description} %description %{common_description}
%package -n python3-%{srcname} %package -n python3-sh
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel
%description -n python3-%{srcname} %{common_description} %description -n python3-sh %{common_description}
%prep %prep
%autosetup -n %{srcname}-%{version} -p1 %autosetup -p 1 -n sh-%{version}
%generate_buildrequires %generate_buildrequires
@ -45,20 +50,73 @@ BuildRequires: python3-devel
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files %{srcname} %pyproject_save_files sh
%check %check
%{python3} sh.py travis # The tests expect sh.py and sh_test.py to be in the same directory.
# https://github.com/amoffat/sh/blob/2.0.6/tests/Dockerfile#L47
# https://github.com/amoffat/sh/blob/2.0.6/tox.ini#L14
mv tests/sh_test.py .
# https://github.com/amoffat/sh/commit/bfb2bc97635f694de3e5234dcec08d604f0d880f
export SH_TESTS_RUNNING=1
# Normally we should run the tests with %%{py3_test_envvars}, but some tests
# fail if we modify PYTHONPATH.
# https://github.com/amoffat/sh/issues/692
%files -n python3-%{srcname} -f %{pyproject_files} # Run tests with both poll and select.
%doc CHANGELOG.md README.rst # https://github.com/amoffat/sh/commit/e8737f82585bc39a3bc079c5fa7054c973148e3d
SH_TESTS_USE_SELECT=0 %{python3} sh_test.py
SH_TESTS_USE_SELECT=1 %{python3} sh_test.py
%files -n python3-sh -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst CHANGELOG.md MIGRATION.md
%changelog %changelog
* Sun Jul 28 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.14.2-5 * Thu Dec 26 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 2.0.6-6
- Rebuilt for MSVSphere 9.4 - Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.0.6-5
- Rebuilt for Python 3.13
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Aug 10 2023 Carl George <carlwgeorge@fedoraproject.org> - 2.0.6-1
- Update to version 2.0.6, resolves rhbz#2169128
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.14.3-3
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Sep 18 2022 Kevin Fenzi <kevin@scrye.com> - 1.14.3-1
- Update to 1.14.3. Fixes rhbz#2108380
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.14.2-6
- Rebuilt for Python 3.11
* Sat Mar 19 2022 Carl George <carl@george.computer> - 1.14.2-5 * Sat Mar 19 2022 Carl George <carl@george.computer> - 1.14.2-5
- Convert to pyproject macros - Convert to pyproject macros
@ -212,3 +270,5 @@ BuildRequires: python3-devel
* Thu Mar 22 2012 Andy Grover <agrover@redhat.com> - 0.95-2 * Thu Mar 22 2012 Andy Grover <agrover@redhat.com> - 0.95-2
- Initial packaging - Initial packaging
## END: Generated by rpmautospec

Loading…
Cancel
Save