0f6dc19
# Created by pyp2rpm-3.2.2
0f6dc19
%global pypi_name cheroot
104edfe
# sphinx-tabs not available in fedora for docs build
104edfe
%bcond_with docs
0f6dc19
0f6dc19
Name:           python-%{pypi_name}
Ken Dreyer 250e7a0
Version:        10.0.1
d29775d
Release:        2%{?dist}
0f6dc19
Summary:        Highly-optimized, pure-python HTTP server
0f6dc19
0f6dc19
License:        BSD
0f6dc19
URL:            https://github.com/cherrypy/cheroot
0f6dc19
Source0:        %{pypi_source}
0f6dc19
BuildArch:      noarch
0f6dc19
82410db
# https://github.com/cherrypy/cheroot/issues/645
82410db
# https://github.com/cherrypy/cheroot/pull/655
82410db
Patch0:		 0001-handle-openssl3-error-in-ssl-tests.patch
82410db
0f6dc19
%description
ff06b53
Cheroot is the high-performance, pure-Python HTTP server used by CherryPy.
0f6dc19
0f6dc19
%package -n python3-%{pypi_name}
0f6dc19
Summary:        %{summary}
b282c6b
Requires:       python3dist(six) >= 1.11
0f6dc19
Requires:       python3dist(more-itertools) >= 2.6
0f6dc19
Requires:       python3-pyOpenSSL
b90953e
Requires:       python3dist(jaraco-functools)
0f6dc19
0f6dc19
BuildRequires:  python3-devel
0f6dc19
BuildRequires:  python3-pyOpenSSL
b5f1340
BuildRequires:  python3dist(jaraco-functools)
4b40066
BuildRequires:  python3dist(jaraco-text)
b5f1340
BuildRequires:  python3dist(portend)
0f6dc19
BuildRequires:  python3dist(pytest)
0f6dc19
BuildRequires:  python3dist(pytest-mock)
0764ab9
BuildRequires:  python3dist(pytest-forked)
f61840c
BuildRequires:  python3dist(pytest-rerunfailures)
b5f1340
BuildRequires:  python3dist(requests-toolbelt)
0fe1c71
0fe1c71
%if 0%{?el8}
0fe1c71
BuildRequires:  python3dist(more-itertools) >= 2.6
0fe1c71
%endif
0fe1c71
0f6dc19
BuildRequires:  python3dist(requests)
33f0662
BuildRequires:  python3dist(requests-unixsocket)
0f6dc19
BuildRequires:  python3dist(setuptools)
51db9e7
BuildRequires:  python3dist(setuptools-scm)
0f6dc19
BuildRequires:  python3dist(trustme)
0f6dc19
%{?python_provide:%python_provide python3-%{pypi_name}}
0f6dc19
0f6dc19
%description -n python3-%{pypi_name}
ff06b53
Cheroot is the high-performance, pure-Python HTTP server used by CherryPy.
0f6dc19
0f6dc19
%if %{with docs}
fff6539
%package -n python-%{pypi_name}-doc
fff6539
Summary:        cheroot documentation
fff6539
0f6dc19
BuildRequires:  python3dist(sphinx)
104edfe
BuildRequires:  python3-sphinx-theme-alabaster
fff6539
BuildRequires:  python3dist(rst-linker)
fff6539
BuildRequires:  python3dist(jaraco-packaging)
0f6dc19
BuildRequires:  python3dist(docutils)
0f6dc19
0f6dc19
%description -n python-%{pypi_name}-doc
0f6dc19
Documentation for cheroot
0f6dc19
%endif
0f6dc19
0f6dc19
%prep
82410db
%autosetup -p1 -n %{pypi_name}-%{version}
82410db
b5f1340
# Remove pytest processes directive
b5f1340
sed -i 's/ --numprocesses=auto//' pytest.ini
f96a09b
# Remove optional pytest-cov dependency
f96a09b
sed -i -e /--cov=/d -e '/--cov-report /d' pytest.ini
0fe1c71
# drop setuptools_scm_git_archive
0fe1c71
sed -i '/setuptools_scm_git_archive/d' setup.cfg
Ken Dreyer 7f7a66e
# RHEL 9 has setuptools_scm 6
Ken Dreyer 7f7a66e
sed -i 's/setuptools_scm >= 7.0.0/setuptools_scm >= 6.0.0/' setup.cfg
0764ab9
0764ab9
# doctor a few tests because of unpackaged deps in fedora
0764ab9
# pypytools
0764ab9
sed -i '/pypytools/d' cheroot/test/test_server.py
0764ab9
sed -i "/getfixturevalue('_garbage_bin')/d" cheroot/test/test_server.py
0764ab9
# jaraco.context
0764ab9
sed -i '/jaraco.context/d' cheroot/test/test_wsgi.py
0764ab9
sed -i '39 i @pytest.mark.skip()' cheroot/test/test_wsgi.py
33f0662
0f6dc19
%build
0f6dc19
%py3_build
0f6dc19
%if %{with docs}
0f6dc19
sphinx-build -vvv docs html
0f6dc19
# remove the sphinx-build leftovers
0f6dc19
rm -rf html/.{doctrees,buildinfo}
0f6dc19
%endif
0f6dc19
0f6dc19
%install
0f6dc19
%py3_install
0f6dc19
0f6dc19
%check
3b1aa07
LANG=C.utf-8 %{__python3} -m pytest --ignore=build -W ignore::DeprecationWarning -p no:unraisableexception
0f6dc19
0f6dc19
%files -n python3-%{pypi_name}
0f6dc19
%license LICENSE.md
0f6dc19
%doc README.rst
0f6dc19
%{_bindir}/cheroot
0f6dc19
%{python3_sitelib}/%{pypi_name}
5e46570
%{python3_sitelib}/%{pypi_name}*egg-info
0f6dc19
0f6dc19
%if %{with docs}
0f6dc19
%files -n python-%{pypi_name}-doc
0f6dc19
%license LICENSE.md
0f6dc19
%doc html
0f6dc19
%endif
0f6dc19
0f6dc19
%changelog
d29775d
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 10.0.1-2
d29775d
- Rebuilt for Python 3.13
d29775d
Ken Dreyer 250e7a0
* Mon Apr 22 2024 Ken Dreyer <kdreyer@ibm.com> 10.0.1-1
Ken Dreyer 250e7a0
- Update to 10.0.1
Ken Dreyer 250e7a0
82410db
* Tue Apr 02 2024 Dan Radez <dradez@redhat.com> - 10.0.0-6
82410db
- adding patch to fix ssl unit tests rhbz#2270931
82410db
49eb129
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-5
49eb129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
49eb129
8cd5c02
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-4
8cd5c02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8cd5c02
632dad4
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-3
632dad4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
632dad4
0b62fd0
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 10.0.0-2
0b62fd0
- Rebuilt for Python 3.12
0b62fd0
16fe96d
* Mon Jun 19 2023 Dan Radez <dradez@redhat.com> - 10.0.0-1
16fe96d
- update to 10.0.0 (rhbz#2208818)
16fe96d
398a0af
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.0-2
398a0af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
398a0af
f61840c
* Wed Nov 23 2022 Dan Radez <dradez@redhat.com> - 9.0.0-1
f61840c
- update to 9.0.0 (rhbz#2144238)
f61840c
79c3934
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8.6.0-8
79c3934
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
79c3934
89a9e4e
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 8.6.0-7
89a9e4e
- Rebuilt for Python 3.11
89a9e4e
d832ada
* Thu Mar 24 2022 Dan Radez <dradez@redhat.com> - 8.6.0-6
d832ada
- skipping a test for pytest 7 compatibility
d832ada
d832ada
* Thu Feb 10 2022 Dan Radez <dradez@redhat.com> - 8.6.0-5
4b40066
- jaraco.text is packaged, removing provisions to skip it
4b40066
51db9e7
* Fri Jan 28 2022 Miro Hrončok <mhroncok@redhat.com> - 8.6.0-4
51db9e7
- Provide python3dist(cheroot) = 8.6
51db9e7
- Provide python3.Xdist(cheroot) = 8.6
51db9e7
0764ab9
* Wed Jan 19 2022 Dan Radez <dradez@redhat.com> - 8.6.0-2
f421abc
- BZ#2042509
f421abc
f421abc
* Wed Jan 19 2022 Dan Radez <dradez@redhat.com> - 8.6.0-2
0764ab9
- Attempting to enable tests
0764ab9
- had to manually disable a couple due to missing deps
0764ab9
b5f1340
* Tue Jan 04 2022 Dan Radez <dradez@redhat.com> - 8.6.0-1
b5f1340
- update to 8.6.0
b5f1340
c7379f7
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.5.2-4
c7379f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c7379f7
9eb170d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 8.5.2-3
9eb170d
- Rebuilt for Python 3.10
9eb170d
41b5bb0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.5.2-2
41b5bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
41b5bb0
1175321
* Tue Jan 19 2021 Dan Radez <dradez@redhat.com> - 8.5.2-1
1175321
- update to 8.5.2
1175321
c7d46d6
* Sat Dec 12 2020 Dan Radez <dradez@redhat.com> - 8.5.1-1
c7d46d6
- update to 8.5.1
c7d46d6
530efd5
* Mon Dec 07 2020 Ken Dreyer <kdreyer@redhat.com> 8.5.0-1
530efd5
- Update to 8.5.0 (rhbz#1868629)
530efd5
3965387
* Tue Aug 04 2020 Fabien Boucher <fboucher@redhat.com> - 8.4.2-1
3965387
- update to 8.4.2
3965387
6a7e036
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.2.1-4
6a7e036
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6a7e036
72722f3
* Wed Jun 03 2020 Matthias Runge <mrunge@redhat.com> - 8.2.1-3
72722f3
- skip test and rebuild to fix fail to install for cherrypy
72722f3
b70f3cd
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 8.2.1-3
b70f3cd
- Rebuilt for Python 3.9
b70f3cd
088b9a3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.2.1-2
088b9a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
088b9a3
9eac27a
* Fri Oct 18 2019 Dan Radez <dradez@redhat.com> - 8.2.1-1
9eac27a
- update to 8.2.1
9eac27a
673c89b
* Thu Oct 17 2019 Dan Radez <dradez@redhat.com> - 8.2.0-1
673c89b
- update to 8.2.0
673c89b
65caab2
* Fri Oct 11 2019 Dan Radez <dradez@redhat.com> - 8.1.0-1
65caab2
- update to 8.1.0
65caab2
3171302
* Fri Sep 27 2019 Dan Radez <dradez@redhat.com> - 7.0.0-2
3171302
- fixing dep naming issues
3171302
8db29af
* Thu Sep 26 2019 Dan Radez <dradez@redhat.com> - 7.0.0-1
8db29af
- update to 7.0.0
8db29af
ae6d3ff
* Tue Sep 24 2019 Dan Radez <dradez@redhat.com> - 6.5.8-1
ae6d3ff
- update to 6.5.8
ae6d3ff
171441a
* Wed Aug 21 2019 Miro Hrončok <mhroncok@redhat.com> - 6.5.6-2
171441a
- Rebuilt for Python 3.8
171441a
cec4283
* Mon Aug 19 2019 Dan Radez <dradez@redhat.com> - 6.5.6-1
cec4283
- update to 6.5.6
cec4283
c6eab5e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 6.5.5-3
c6eab5e
- Rebuilt for Python 3.8
c6eab5e
fd27997
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.5-2
fd27997
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fd27997
104edfe
* Tue Apr 30 2019 Dan Radez <dradez@redhat.com> - 6.5.5-1
104edfe
- update to 6.5.5
104edfe
- disable docs build, new dep sphinx-tabs was introduced.
104edfe
fff6539
* Tue Apr 09 2019 Dan Radez <dradez@redhat.com> - 6.5.4-2
fff6539
- enabling docs
104edfe
0f6dc19
* Wed May 02 2018 Dan Radez <dradez@redhat.com> - 6.5.4-1
0f6dc19
- Initial package.