From 20f5c49b513f6623ed51c38838654fdc5098e1659e525ffa9d2034d612f2f17b Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 16:11:20 +0000 Subject: [PATCH] Accepting request 1276920 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276920 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSGIProxy2?expand=0&rev=29 --- python-WSGIProxy2.changes | 5 +++++ python-WSGIProxy2.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-WSGIProxy2.changes b/python-WSGIProxy2.changes index aad9bf5..21db08b 100644 --- a/python-WSGIProxy2.changes +++ b/python-WSGIProxy2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:51:26 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue May 9 13:49:43 UTC 2023 - Johannes Kastl diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec index 1424259..8f740f1 100644 --- a/python-WSGIProxy2.spec +++ b/python-WSGIProxy2.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-WSGIProxy2 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,6 @@ %define psuffix %{nil} %bcond_with test %endif - %{?sle15_python_module_pythons} Name: python-WSGIProxy2%{psuffix} Version: 0.5.1 @@ -33,7 +32,9 @@ Summary: WSGI Proxy Implementation License: MIT URL: https://github.com/gawel/WSGIProxy2/ Source: https://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-WebOb @@ -57,11 +58,11 @@ Proxy support for WebOb or classic WSGI applications %setup -q -n WSGIProxy2-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -75,7 +76,8 @@ Proxy support for WebOb or classic WSGI applications %files %{python_files} %license COPYING %doc CHANGES.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/wsgiproxy +%{python_sitelib}/[Ww][Ss][Gg][Ii][Pp]roxy2-%{version}*-info %endif %changelog