From 6c9cc173a3e6b578932bd8367e8772aa8086ce898cd2ba33e6314aa26a7f115c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:53:34 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. - Ship the README as docs. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-web.py?expand=0&rev=30 --- python-web.py.changes | 7 +++++++ python-web.py.spec | 15 ++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/python-web.py.changes b/python-web.py.changes index df38792..0c0c605 100644 --- a/python-web.py.changes +++ b/python-web.py.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 13 02:43:42 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. +- Ship the README as docs. + ------------------------------------------------------------------- Thu Nov 21 15:54:33 UTC 2024 - Dirk Müller diff --git a/python-web.py.spec b/python-web.py.spec index 643bbaf..f12bbc6 100644 --- a/python-web.py.spec +++ b/python-web.py.spec @@ -1,7 +1,7 @@ # # spec file for package python-web.py # -# Copyright (c) 2024 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 @@ -16,9 +16,6 @@ # -%define skip_python2 1 - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-web.py Version: 0.62 Release: 0 @@ -27,7 +24,9 @@ License: BSD-3-Clause AND SUSE-Public-Domain URL: https://webpy.org/ Source: https://files.pythonhosted.org/packages/source/w/web.py/web.py-%{version}.tar.gz BuildRequires: %{python_module legacy-cgi if %python-base >= 3.13} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cheroot @@ -49,10 +48,10 @@ Think about the ideal way to write a web app. Write the code to make it happen. %setup -q -n web.py-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +59,8 @@ Think about the ideal way to write a web app. Write the code to make it happen. %pytest -k 'not test_routing' %files %{python_files} -%{python_sitelib}/* +%doc README.md +%{python_sitelib}/web +%{python_sitelib}/web[_.]py-%{version}.dist-info %changelog