From 74b2bea910908c4553431920e9fe34690d9e9d4a0fe3e61505b9908c44d5ba63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 3 Sep 2019 05:35:01 +0000 Subject: [PATCH] Accepting request 727845 from home:dancermak:branches:devel:languages:python Drop dependency on backports.lru_cache for the python3 subpackage OBS-URL: https://build.opensuse.org/request/show/727845 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=13 --- python-cheroot.changes | 6 ++++++ python-cheroot.spec | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/python-cheroot.changes b/python-cheroot.changes index b811649..31db1eb 100644 --- a/python-cheroot.changes +++ b/python-cheroot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 2 18:49:49 UTC 2019 - Dan Čermák + +- Drop dependency on backports.functools_lru_cache for the python3 subpackage + This fixes bsc#1149124 + ------------------------------------------------------------------- Sun Jun 2 21:15:22 UTC 2019 - Jan Engelhardt diff --git a/python-cheroot.spec b/python-cheroot.spec index c074ca9..510b54f 100644 --- a/python-cheroot.spec +++ b/python-cheroot.spec @@ -17,14 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-cheroot +%define pypi_name cheroot +Name: python-%{pypi_name} Version: 6.5.5 Release: 0 Summary: Pure-python HTTP server License: BSD-3-Clause Group: Development/Languages/Python -URL: https://github.com/cherrypy/cheroot -Source: https://files.pythonhosted.org/packages/source/c/cheroot/cheroot-%{version}.tar.gz +URL: https://github.com/cherrypy/%{pypi_name} +Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: %{python_module more-itertools >= 2.6} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest >= 2.8} @@ -55,9 +56,13 @@ Requires: python-backports.functools_lru_cache Cheroot is the pure-Python HTTP server used by CherryPy. %prep -%setup -q -n cheroot-%{version} +%autosetup -n cheroot-%{version} # do not require cov/xdist/etc sed -i -e '/addopts/d' pytest.ini +for file in "%{pypi_name}.egg-info/requires.txt" "setup.cfg"; do + sed -i "s/backports.functools_lru_cache$/backports.functools_lru_cache ; python_version < '3.3'/" \ + "${file}" +done %build %python_build