14
0
forked from pool/python-web.py

- 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
This commit is contained in:
2025-06-13 02:53:34 +00:00
committed by Git OBS Bridge
parent 7210ff13de
commit 6c9cc173a3
2 changed files with 15 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jun 13 02:43:42 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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