Blame SPECS/python-sh.spec

c53138
%global common_description %{expand:
c53138
sh is a full-fledged subprocess replacement for Python that allows you to call
c53138
any program as if it were a function.  sh is not a collection of system
c53138
commands implemented in Python.}
c53138
c53138
Name:           python-sh
c53138
Version:        2.1.0
c53138
Release:        3%{?dist}
c53138
Summary:        Python subprocess replacement
c53138
License:        MIT
c53138
URL:            https://sh.readthedocs.io/
c53138
Source:         %{pypi_source sh}
c53138
BuildArch:      noarch
c53138
BuildRequires:  python3-devel
c53138
# Several tests run the python command.
c53138
BuildRequires:  python-unversioned-command
c53138
c53138
# Python 3.14 test fix.
c53138
# https://github.com/amoffat/sh/issues/741
c53138
# https://github.com/amoffat/sh/pull/742
c53138
Patch:          0001-Avoid-manual-async-loop-management.patch
c53138
c53138
c53138
%description %{common_description}
c53138
c53138
c53138
%package -n python3-sh
c53138
Summary:        %{summary}
c53138
c53138
c53138
%description -n python3-sh %{common_description}
c53138
c53138
c53138
%prep
c53138
%autosetup -p 1 -n sh-%{version}
c53138
c53138
c53138
%generate_buildrequires
c53138
%pyproject_buildrequires
c53138
c53138
c53138
%build
c53138
%pyproject_wheel
c53138
c53138
c53138
%install
c53138
%pyproject_install
c53138
%pyproject_save_files -L sh
c53138
c53138
c53138
%check
c53138
# The tests expect sh.py and sh_test.py to be in the same directory.
c53138
# https://github.com/amoffat/sh/blob/2.0.6/tests/Dockerfile#L47
c53138
# https://github.com/amoffat/sh/blob/2.0.6/tox.ini#L14
c53138
mv tests/sh_test.py .
c53138
c53138
# https://github.com/amoffat/sh/commit/bfb2bc97635f694de3e5234dcec08d604f0d880f
c53138
export SH_TESTS_RUNNING=1
c53138
c53138
# Normally we should run the tests with %%{py3_test_envvars}, but some tests
c53138
# fail if we modify PYTHONPATH.
c53138
# https://github.com/amoffat/sh/issues/692
c53138
c53138
# Run tests with both poll and select.
c53138
# https://github.com/amoffat/sh/commit/e8737f82585bc39a3bc079c5fa7054c973148e3d
c53138
SH_TESTS_USE_SELECT=0 %{python3} sh_test.py
c53138
SH_TESTS_USE_SELECT=1 %{python3} sh_test.py
c53138
c53138
c53138
%files -n python3-sh -f %{pyproject_files}
c53138
%license %{python3_sitelib}/sh-%{version}.dist-info/LICENSE.txt
c53138
%doc README.rst CHANGELOG.md MIGRATION.md
c53138
c53138
c53138
%changelog
c53138
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
c53138
c53138
* Sun Dec 08 2024 Carl George <carlwgeorge@fedoraproject.org> - 2.1.0-2
c53138
- Fix tests on Python 3.14
c53138
c53138
* Sat Dec 07 2024 Carl George <carlwgeorge@fedoraproject.org> - 2.1.0-1
c53138
- Update to version 2.1.0 rhbz#2284214
c53138
c53138
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-6
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
c53138
c53138
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.0.6-5
c53138
- Rebuilt for Python 3.13
c53138
c53138
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-4
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c53138
c53138
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c53138
c53138
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c53138
c53138
* Thu Aug 10 2023 Carl George <carlwgeorge@fedoraproject.org> - 2.0.6-1
c53138
- Update to version 2.0.6, resolves rhbz#2169128
c53138
c53138
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-4
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c53138
c53138
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.14.3-3
c53138
- Rebuilt for Python 3.12
c53138
c53138
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c53138
c53138
* Sun Sep 18 2022 Kevin Fenzi <kevin@scrye.com> - 1.14.3-1
c53138
- Update to 1.14.3. Fixes rhbz#2108380
c53138
c53138
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-7
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c53138
c53138
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.14.2-6
c53138
- Rebuilt for Python 3.11
c53138
c53138
* Sat Mar 19 2022 Carl George <carl@george.computer> - 1.14.2-5
c53138
- Convert to pyproject macros
c53138
- Skip test_no_fd_leak test by removing lsof build requirement rhbz#2033204
c53138
c53138
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-4
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c53138
c53138
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-3
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c53138
c53138
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.14.2-2
c53138
- Rebuilt for Python 3.10
c53138
c53138
* Sat May 22 2021 Kevin Fenzi <kevin@scrye.com> - 1.14.2-1
c53138
- Update to 1.14.2. Fixes rhbz#1960814
c53138
c53138
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c53138
c53138
* Thu Dec 31 2020 Kevin Fenzi <kevin@scrye.com> - 1.14.1-1
c53138
- Update to 1.14.1. Fixes rhbz#1891289
c53138
c53138
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c53138
c53138
* Fri Jun 26 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.13.1-1
c53138
- Update to 1.13.1 (#1828679)
c53138
c53138
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.12.14-17
c53138
- Rebuilt for Python 3.9
c53138
c53138
* Fri Feb 07 2020 Carl George <carl@george.computer> - 1.12.14-16
c53138
- Always apply patch3 (el8 fix)
c53138
c53138
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.14-15
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c53138
c53138
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.14-14
c53138
- Rebuilt for Python 3.8.0rc1 (#1748018)
c53138
c53138
* Thu Aug 22 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.14-13
c53138
- Subpackage python2-sh has been removed
c53138
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
c53138
c53138
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.14-12
c53138
- Rebuilt for Python 3.8
c53138
c53138
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.14-11
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c53138
c53138
* Tue Feb 12 2019 Carl George <carl@george.computer> - 1.12.14-10
c53138
- Refresh patch4, which also obsoletes patch5
c53138
c53138
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.14-9
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c53138
c53138
* Tue Jul 24 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.12.14-8
c53138
- Fix tests for the drop of the unversioned python interpreter
c53138
c53138
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.14-7
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c53138
c53138
* Wed Jun 20 2018 Carl George <carl@george.computer> - 1.12.14-6
c53138
- Add patch4 to always use fully versioned python command in tests
c53138
c53138
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.12.14-5
c53138
- Rebuilt for Python 3.7
c53138
c53138
* Thu Mar 08 2018 Carl George <carl@george.computer> - 1.12.14-4
c53138
- Use common license and documentation directory
c53138
- Enable EPEL python3 subpackage
c53138
c53138
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.14-3
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c53138
c53138
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.14-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c53138
c53138
* Wed Jun 07 2017 Carl George <carl.george@rackspace.com> - 1.12.14-1
c53138
- Latest upstream
c53138
- Update patch0 to account for changes in PEP-0538
c53138
c53138
* Sun Apr 16 2017 Carl George <carl.george@rackspace.com> - 1.12.13-2
c53138
- Add patch2 to remove coverage (too old in EL6/7, doesn't add any value for packaging)
c53138
- Add patch3 to fix tests to work with PEP-0538 changes in F26+ (obsoletes patch1)
c53138
- Run tests via `sh.py travis` to only test with the called python version
c53138
- Properly install license
c53138
- Switch to PyPI tarball
c53138
- Update summary and description
c53138
c53138
* Sat Apr 15 2017 Kevin Fenzi <kevin@scrye.com> - 1.12.13-1
c53138
- Update to 1.12.13. Fixes bug #1442462
c53138
- Update to current python guidelines. Fixes bug #1442465
c53138
c53138
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-4
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c53138
c53138
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.11-3
c53138
- Rebuild for Python 3.6
c53138
c53138
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
c53138
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c53138
c53138
* Mon Feb 15 2016 Javier Peña <jpena@redhat.com> - 1.11-1
c53138
- Updated to upstream version 1.11
c53138
- Kill the entire process group when a command times out (bz#1306405)
c53138
c53138
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.08-7
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c53138
c53138
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-6
c53138
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
c53138
c53138
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-5
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c53138
c53138
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-4
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c53138
c53138
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.08-3
c53138
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
c53138
c53138
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c53138
c53138
* Sat Apr 13 2013 Ralph Bean <rbean@redhat.com> - 1.08-1
c53138
- Latest upstream version.
c53138
- More explicit directory ownership in files section.
c53138
- Added python3-sh subpackage.
c53138
c53138
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-3
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c53138
c53138
* Tue Sep 18 2012 Andy Grover <agrover@redhat.com> - 1.02-2
c53138
- Re-add check
c53138
c53138
* Mon Sep 17 2012 Andy Grover <agrover@redhat.com> - 1.02-1
c53138
- New upstream release
c53138
- New upstream download location
c53138
- Remove check, upstream unittest has been removed
c53138
c53138
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.107-2
c53138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c53138
c53138
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 0.107-1
c53138
- New upstream release
c53138
c53138
* Fri May 4 2012 Andy Grover <agrover@redhat.com> - 0.105-1
c53138
- New upstream release
c53138
c53138
* Thu Mar 22 2012 Andy Grover <agrover@redhat.com> - 0.95-2
c53138
- Initial packaging