From 28ab2c7e408b9bb98979ce28c25bfc5182fcba0f Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Jan 28 2022 10:02:11 +0000 Subject: Avoid requiring python3.10dist cheroot Upstream cheroot software has a packaging issue leading to a .egg-info equals to 0.0.0 (i.e cheroot-0.0.0-py3.10.egg-info/*) So an automatic Provides is added as "python3.10dist(cheroot) = 0" [1] for python-chroot. The automatic Requires which parses the conf.py adds the python3.10dist(cheroot) >= 8.2.1 but as we have 0, we're hitting the issue "nothing provides python3.10dist(cheroot) >= 8.2.1" when using python-cherrypy. So we remove the automatic requires and add explicit requires for cheroot as python3-cheroot w/o use of dist. [1] rpm -q --provides https://kojipkgs.fedoraproject.org//packages/python-cheroot/8.6.0/3.fc36/noarch/python3-cheroot-8.6.0-3.fc36.noarch.rpm --- diff --git a/0002-Remove-cheroot-dep-from-setup.py.patch b/0002-Remove-cheroot-dep-from-setup.py.patch new file mode 100644 index 0000000..80273d2 --- /dev/null +++ b/0002-Remove-cheroot-dep-from-setup.py.patch @@ -0,0 +1,24 @@ +From de4373bc4a119df9c00fffef7f94f0aa88b14011 Mon Sep 17 00:00:00 2001 +From: Joel Capitao +Date: Fri, 28 Jan 2022 10:06:29 +0100 +Subject: [PATCH] Remove cheroot dep from setup.py + +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index c617526c..07e44cd6 100644 +--- a/setup.py ++++ b/setup.py +@@ -61,7 +61,6 @@ params = dict( + entry_points={'console_scripts': ['cherryd = cherrypy.__main__:run']}, + include_package_data=True, + install_requires=[ +- 'cheroot>=8.2.1', + 'portend>=2.1.1', + 'more_itertools', + 'zc.lockfile', +-- +2.32.0 + diff --git a/python-cherrypy.spec b/python-cherrypy.spec index 79634e8..1aaa5f4 100644 --- a/python-cherrypy.spec +++ b/python-cherrypy.spec @@ -10,7 +10,7 @@ Name: python-cherrypy %global camelname CherryPy Version: 18.6.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Pythonic, object-oriented web development framework License: BSD URL: https://cherrypy.dev/ @@ -19,6 +19,7 @@ Source0: https://files.pythonhosted.org/packages/source/C/%{camelname}/%{ # Ignore thread-related DeprecationWarnings new in Python 3.10 # Temporary workaround for https://github.com/cherrypy/cherrypy/issues/1914 Patch1: pytest-ignore-thread-DeprecationWarnings.patch +Patch2: 0002-Remove-cheroot-dep-from-setup.py.patch BuildArch: noarch @@ -53,6 +54,8 @@ results in smaller source code developed in less time. Summary: %summary %{?python_provide:%python_provide python3-cherrypy} +Requires: python3-cheroot >= 8.2.1 + # Remove after F32. Obsoletes: python2-cherrypy < 3.5.1 @@ -93,6 +96,9 @@ export WEBTEST_INTERACTIVE=false %exclude %{python3_sitelib}/cherrypy/tutorial %changelog +* Fri Jan 28 2022 Joel Capitao - 18.6.1-3 +- Add explicit cheroot requires + * Fri Jan 21 2022 Fedora Release Engineering - 18.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild