579608d
%{?python_enable_dependency_generator}
4e96942
844e9b9
%if 0%{?el8}
844e9b9
  # jaraco.collections not yet available in epel8
844e9b9
  %bcond_with tests
844e9b9
%else
844e9b9
  %bcond_without tests
844e9b9
%endif
eca6bf2
7ecea40
Name:           python-cherrypy
bafa2e3
%global         camelname CherryPy
c556e0f
Version:        18.9.0
35d7e61
Release:        3%{?dist}
3c99ba5
Summary:        Pythonic, object-oriented web development framework
7ecea40
License:        BSD
8210d00
URL:            https://cherrypy.dev/
2ac0610
Source0:        https://files.pythonhosted.org/packages/source/C/%{camelname}/%{camelname}-%{version}.tar.gz
bafa2e3
429bffd
# Ignore cgi-related DeprecationWarnings new in Python 3.11
e13f371
Patch1:         pytest-ignore-cgi-DeprecationWarnings.patch
429bffd
892bca9
# Ignore urllib3.contrib.pyopenssl DeprecationWarnings
892bca9
Patch2:         pytest-ignore-urllib3-pyopenssl-DeprecationWarnings.patch
892bca9
e291dac
# replace pkg_resources with importlib
e291dac
# github issue #1973 https://github.com/cherrypy/cherrypy/issues/1973
e291dac
# github pr https://github.com/cherrypy/cherrypy/pull/1993
e291dac
Patch3:         0001-GitHub-Issue-1973-RFE-Replace-use-of-pkg_resources-w.patch
e291dac
c556e0f
# replace utcnow with datetime.UTC
c556e0f
# github pr https://github.com/cherrypy/cherrypy/pull/2007
c556e0f
Patch4:         0001-Replace-deprecated-utcnow-datetime-function.patch
c556e0f
7ecea40
BuildArch:      noarch
7ecea40
bafa2e3
BuildRequires:  python3-devel
bafa2e3
BuildRequires:  python3dist(setuptools)
5b3dce2
BuildRequires:  python3dist(setuptools-scm)
eca6bf2
%if %{with tests}
bafa2e3
# Test dependencies
bafa2e3
BuildRequires:  python3dist(cheroot)
7ce8746
BuildRequires:  python3dist(jaraco-collections)
5dae80f
BuildRequires:  python3dist(path)
bafa2e3
BuildRequires:  python3dist(portend)
bafa2e3
BuildRequires:  python3dist(pytest)
bafa2e3
BuildRequires:  python3dist(pytest-cov)
bafa2e3
BuildRequires:  python3dist(requests-toolbelt)
579608d
BuildRequires:  python3dist(more-itertools)
bafa2e3
BuildRequires:  python3dist(coverage)
448da73
BuildRequires:  python3dist(pytest)
bafa2e3
BuildRequires:  python3-zc-lockfile
eca6bf2
%endif
d023a63
9e70cad
%global _description\
bafa2e3
%{camelname} allows developers to build web applications in much the same way\
9e70cad
they would build any other object-oriented Python program. This usually\
7ecea40
results in smaller source code developed in less time.
7ecea40
9e70cad
%description %_description
9e70cad
bafa2e3
%package -n python3-cherrypy
9e70cad
Summary: %summary
bafa2e3
%{?python_provide:%python_provide python3-cherrypy}
9e70cad
6eb255b
%package -n python3-cherrypy-devel
6eb255b
Summary: Test and Tutorial files excluded from main package
6eb255b
ef27ac7
# Remove after F32.
ef27ac7
Obsoletes: python2-cherrypy < 3.5.1
ef27ac7
bafa2e3
%description -n python3-cherrypy %_description
6eb255b
%description -n python3-cherrypy-devel %_description
9e70cad
7ecea40
%prep
ec7af5c
%autosetup -p1 -n %{camelname}-%{version}
7ecea40
75d500b
# These tests still fail (reason unknown):
bafa2e3
rm cherrypy/test/test_session.py
5dae80f
7ecea40
%build
bafa2e3
%py3_build
7ecea40
7ecea40
%install
bafa2e3
%py3_install
7ecea40
eca6bf2
%if %{with tests}
8d018c6
%check
844e9b9
# https://github.com/cherrypy/cherrypy/commit/5d3c86eb36dfdf972a1d3c8d69cf8be2050eb99c
844e9b9
export WEBTEST_INTERACTIVE=false
ec7af5c
%pytest cherrypy/test \
ec7af5c
  --deselect=cherrypy/test/test_tools.py::ToolTests::testCombinedTools \
ec7af5c
  -p no:unraisableexception
eca6bf2
%endif
bafa2e3
bafa2e3
%files -n python3-cherrypy
bafa2e3
%doc README.rst
bafa2e3
%license LICENSE.md
7ecea40
%doc cherrypy/tutorial
ab776b6
%{_bindir}/cherryd
bafa2e3
%{python3_sitelib}/*
bafa2e3
%exclude %{python3_sitelib}/cherrypy/test
bafa2e3
%exclude %{python3_sitelib}/cherrypy/tutorial
7ecea40
6eb255b
%files -n python3-cherrypy-devel
6eb255b
%{python3_sitelib}/cherrypy/test
6eb255b
%{python3_sitelib}/cherrypy/tutorial
6eb255b
7ecea40
%changelog
35d7e61
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 18.9.0-3
35d7e61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
35d7e61
d54a23b
* Fri Dec 22 2023 Dan Radez <dradez@redhat.com> - 18.9.0-2
d54a23b
- reenabled static tests
d54a23b
- removed dos2unix fix
d54a23b
- removed readfp with read_file fix, it's upstream
d54a23b
c556e0f
* Thu Dec 14 2023 Dan Radez <dradez@redhat.com> - 18.9.0-1
c556e0f
- updating to upsteam 18.9.0 rhbz#2254371
c556e0f
6eb255b
* Tue Oct 10 2023 Dan Radez <dradez@redhat.com> - 18.8.0-8
6eb255b
- adding -devel package to provide test and tutorial modules
6eb255b
20e10bf
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 18.8.0-7
20e10bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
20e10bf
85cd59b
* Sat Jul 01 2023 Python Maint <python-maint@redhat.com> - 18.8.0-6
85cd59b
- Rebuilt for Python 3.12
85cd59b
0f0c3b7
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 18.8.0-5
0f0c3b7
- Bootstrap for Python 3.12
0f0c3b7
e291dac
* Tue Apr 04 2023 Dan Radez <dradez@redhat.com> - 18.8.0-4
e291dac
- rhbz#2183388 submitting upstream patch to resolve pkg_resources dep warning
e291dac
029c13c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 18.8.0-3
029c13c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
029c13c
892bca9
* Mon Sep 19 2022 Dan Radez <dradez@redhat.com> - 18.8.0-2
892bca9
- Ignore urllib3.contrib.pyopenssl DeprecationWarnings to fix FTBFS
892bca9
e13f371
* Mon Aug 29 2022 Dan Radez <dradez@redhat.com> - 18.8.0-1
e13f371
- updating to 18.8.0 (rhbz#2105856)
e13f371
21cd0fb
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.1-7
21cd0fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
21cd0fb
b30ec47
* Fri Jul 15 2022 Miro Hrončok <mhroncok@redhat.com> - 18.6.1-6
b30ec47
- Adjust tests for a last minute Python 3.11 change in the traceback format
b30ec47
76b4bb9
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 18.6.1-5
76b4bb9
- Rebuilt for Python 3.11
76b4bb9
dc0ba78
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 18.6.1-4
dc0ba78
- Bootstrap for Python 3.11
dc0ba78
5dae80f
* Tue Apr 12 2022 Dan Radez <dradez@redhat.com> - 18.6.1-3
5dae80f
- updating python-path-py to python-path
5dae80f
1df830b
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.1-2
1df830b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1df830b
4f064c9
* Mon Aug 09 2021 Matthias Runge <mrunge@redhat.com> - 18.6.1-1
4f064c9
- rebase to 18.6.1 (rhbz#1978987)
4f064c9
242131a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.0-6
242131a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
242131a
e394d96
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 18.6.0-5
e394d96
- Rebuilt for Python 3.10
e394d96
c4769f5
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 18.6.0-4
c4769f5
- Bootstrap for Python 3.10
c4769f5
ec7af5c
* Wed May 26 2021 Miro Hrončok <mhroncok@redhat.com> - 18.6.0-3
ec7af5c
- Fix/workaround build failures with pytest 6.2 and/or Python 3.10
ec7af5c
f1348ce
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.0-2
f1348ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f1348ce
844e9b9
* Mon Jan 25 2021 Ken Dreyer <kdreyer@redhat.com> - 18.6.0-1
844e9b9
- Update to 18.6.0 (rhbz#1777494)
844e9b9
- Re-enable tests on non-EPEL8
844e9b9
c9cc119
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.4.0-6
c9cc119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c9cc119
0c1d853
* Sat Jun 20 2020 Miro Hrončok <mhroncok@redhat.com> - 18.4.0-5
0c1d853
- Disable unused automagic Python bytecompilation
0c1d853
e960bb4
* Fri Jun 05 2020 Matthias Runge <mrunge@redhat.com> - 18.4.0-4
e960bb4
- skip tests to fix FTBFS (rhbz#1810313)
e960bb4
3375d57
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 18.4.0-4
3375d57
- Rebuilt for Python 3.9
3375d57
ef27ac7
* Sat Feb 15 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 18.4.0-3
ef27ac7
- Fix Obsoletes for python2-cherrypy
ef27ac7
b8d9f3e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.4.0-2
b8d9f3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b8d9f3e
75d500b
* Wed Nov 06 2019 Ken Dreyer <kdreyer@redhat.com> - 18.4.0-1
75d500b
- Update to 18.4.0 (rhbz#1748716)
75d500b
- Update comments about current test failures
75d500b
b4b7a3b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.2-5
b4b7a3b
- Rebuilt for Python 3.8.0rc1 (#1748018)
b4b7a3b
fc3abfb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.2-4
fc3abfb
- Rebuilt for Python 3.8
fc3abfb
bafa2e3
* Thu Aug 08 2019 Dan Radez <dradez@redhat.com> - 18.1.2-3
bafa2e3
- Update to 18.1.2
bafa2e3
- Replaced Python2 package with Python 3 package
bafa2e3
- python3-cherrypy-18.1.2-2 is already built by package python3-cherrypy
bafa2e3
  this release is to migrate python3-cherrypy into python-cherrypy
bafa2e3
c2deec2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-12
c2deec2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c2deec2
586e31b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-11
586e31b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
586e31b
c87bd51
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-10
c87bd51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c87bd51
6996086
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.5.0-9
6996086
- Update Python 2 dependency declarations to new packaging standards
6996086
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
6996086
cfbb71f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-8
cfbb71f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cfbb71f
9e70cad
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.0-7
9e70cad
- Python 2 binary package renamed to python2-cherrypy
9e70cad
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
9e70cad
f3650fe
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
f3650fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3650fe
a0e5ad2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-5
a0e5ad2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a0e5ad2
49aeaac
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-4
49aeaac
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
49aeaac
7753384
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
7753384
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7753384
c23d02c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-2
c23d02c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c23d02c
Luke Macken be01e90
* Wed Aug 27 2014 Luke Macken <lmacken@redhat.com> - 3.5.0-1
Luke Macken be01e90
- Update to 3.5.0 (#1104560)
Luke Macken be01e90
5f5fb61
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-6
5f5fb61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5f5fb61
bb1233a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-5
bb1233a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bb1233a
56ed677
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
56ed677
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
56ed677
2e42e45
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-3
2e42e45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e42e45
fe7919c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
fe7919c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fe7919c
Conrad Meyer f14fb5a
* Thu Oct 27 2011 Conrad Meyer <konrad@tylerc.org> - 3.2.2-1
Conrad Meyer f14fb5a
- Update to 3.2.2
Conrad Meyer f14fb5a
c0f96a6
* Sat Jul 16 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.1-1
c0f96a6
- Update to 3.2.1
c0f96a6
863c691
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-6
863c691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
863c691
1cb4842
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
1cb4842
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1cb4842
db088ed
* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-4
db088ed
- Fix a failing unittest with newer python
db088ed
812c7dc
* Sat Apr 24 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-3
812c7dc
- Revert a try at 3.2.x-rc1 as the tests won't pass without some work.
3c99ba5
620ea18
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-2
620ea18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
620ea18
ab776b6
* Tue Jun 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
ab776b6
- New upstream with python-2.6 fixes.
ab776b6
- BR tidy for tests.
ab776b6
6e5f561
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
6e5f561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6e5f561
2913c4e
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.1-1
2913c4e
- Update to 3.1.1
2913c4e
- Fix python-2.6 build errors
2913c4e
- Make test code non-interactive via cmdline switch
2913c4e
- Refresh the no test and tutorial patch
2913c4e
f95d875
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.3-3
f95d875
- Rebuild for Python 2.6
f95d875
0a5f2f9
* Tue Jan 22 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-2
0a5f2f9
- Forgot to upload the tarball.
0a5f2f9
76cb752
* Mon Jan 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-1
76cb752
- Upgrade to 3.0.3.
76cb752
bfbbaee
* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-2
bfbbaee
- EINTR Patch needed to be forwarded ported as well as it is only applied to
bfbbaee
  CP trunk (3.x).
bfbbaee
8d018c6
* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-1
bfbbaee
- Update to new upstream which rolls in the backported security fix.
8d018c6
- Refresh other patches to apply against new version.
8d018c6
- Change to new canonical source URL.
8d018c6
- Reenable tests.
8d018c6
d6211ac
* Sun Jan  6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.2.1-8
d6211ac
- Fix a security bug with a backport of http://www.cherrypy.org/changeset/1775
d6211ac
- Include the egginfo files as well as the python files.
d6211ac
ab8ae76
* Sat Nov  3 2007 Luke Macken <lmacken@redhat.com> 2.2.1-7
ab8ae76
- Apply backported fix from http://www.cherrypy.org/changeset/1766
ab8ae76
  to improve CherryPy's SIGSTOP/SIGCONT handling (Bug #364911).
ab8ae76
  Thanks to Nils Philippsen for the patch.
ab8ae76
7b6e263
* Mon Feb 19 2007 Luke Macken <lmacken@redhat.com> 2.2.1-6
7b6e263
- Disable regression tests until we can figure out why they
7b6e263
  are dying in mock.
7b6e263
d023a63
* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-5
d023a63
- Add python-devel to BuildRequires
d023a63
2d503de
* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-4
2d503de
- Rebuild for python 2.5
2d503de
dcc8b10
* Mon Sep 18 2006 Luke Macken <lmacken@redhat.com> 2.2.1-3
dcc8b10
- Rebuild for FC6
dcc8b10
- Include pyo files instead of ghosting them
dcc8b10
cdbe452
* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-2
cdbe452
- Rebuild
cdbe452
51ab428
* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-1
51ab428
- Update to 2.2.1
51ab428
- Remove unnecessary python-abi requirement
51ab428
gijs 5804793
* Sat Apr 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.2.0-1
gijs 5804793
- Update to 2.2.0
gijs 5804793
gijs 46ca0a3
* Wed Feb 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.1.1-1
gijs 46ca0a3
- Update to 2.1.1 (Security fix)
gijs 46ca0a3
gijs 3f6a5bb
* Tue Nov  1 2005 Gijs Hollestelle <gijs@gewis.nl> 2.1.0-1
gijs 3f6a5bb
- Updated to 2.1.0
gijs 3f6a5bb
gijs 03c3ce1
* Sat May 14 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-2
gijs 03c3ce1
- Added dist tag
gijs 03c3ce1
gijs 494eb7a
* Sun May  8 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-1
gijs 494eb7a
- Updated to 2.0.0 final
gijs 494eb7a
- Updated python-cherrypy-tutorial-doc.patch to match new version
gijs 494eb7a
696d48f
* Wed Apr  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.0.0-0.2.b
696d48f
- Removed CFLAGS
696d48f
7ecea40
* Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 2.0.0-0.1.b
7ecea40
- Initial Fedora Package