From d8b15de45635934850844170c19f91d1ca802ff54240234dda7dd96dd1ecd3d2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:56:31 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=70 --- python-WebTest.changes | 5 +++++ python-WebTest.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-WebTest.changes b/python-WebTest.changes index 6786ebf..085e042 100644 --- a/python-WebTest.changes +++ b/python-WebTest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 02:42:45 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon Jan 27 12:27:49 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-WebTest.spec b/python-WebTest.spec index e948046..29ae97a 100644 --- a/python-WebTest.spec +++ b/python-WebTest.spec @@ -22,7 +22,6 @@ Version: 3.0.3 Release: 0 Summary: Helper to test WSGI applications License: MIT -Group: Development/Languages/Python URL: https://docs.pylonsproject.org/projects/webtest/ Source: https://files.pythonhosted.org/packages/source/w/webtest/webtest-%{version}.tar.gz Patch0: sphinx-7-fix.patch @@ -31,10 +30,12 @@ BuildRequires: %{python_module WSGIProxy2} BuildRequires: %{python_module WebOb >= 1.2} BuildRequires: %{python_module beautifulsoup4} BuildRequires: %{python_module cssselect} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyquery} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module waitress >= 3.0.2} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # Documentation build requirements: @@ -70,11 +71,11 @@ This package contains documentation files for %{name}. %autosetup -p1 -n webtest-%{version} %build -%python_build +%pyproject_wheel sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees} %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -84,7 +85,7 @@ sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildin %license license.rst %doc CHANGELOG.rst README.rst %{python_sitelib}/webtest/ -%{python_sitelib}/WebTest-%{version}*-info +%{python_sitelib}/[Ww]eb[Tt]est-%{version}.dist-info %files -n %{name}-doc %doc build/sphinx/html