From ad63387ed18c82d0ece1df86262ebacdc7903952c53fc31c08484e6d354e0ee9 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 13 May 2025 08:46:41 +0000 Subject: [PATCH] Accepting request 1276932 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276932 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-XStatic?expand=0&rev=10 --- python-XStatic.changes | 5 +++++ python-XStatic.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-XStatic.changes b/python-XStatic.changes index a5e13f3..0f340ab 100644 --- a/python-XStatic.changes +++ b/python-XStatic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:58:46 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun May 14 18:52:18 UTC 2023 - Dirk Müller diff --git a/python-XStatic.spec b/python-XStatic.spec index 17281e5..74fbf0a 100644 --- a/python-XStatic.spec +++ b/python-XStatic.spec @@ -1,7 +1,7 @@ # # spec file for package python-XStatic # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-XStatic Version: 1.0.3 Release: 0 @@ -24,7 +23,9 @@ Summary: XStatic base package with minimal support code License: MIT URL: https://github.com/xstatic-py/xstatic Source: https://files.pythonhosted.org/packages/source/X/XStatic/XStatic-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -37,14 +38,16 @@ static files as a Python package. %setup -q -n XStatic-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %files %{python_files} %doc README.txt %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/[Xx][Ss]tatic +%{python_sitelib}/[Xx][Ss]tatic-%{version}*-info +%{python_sitelib}/[Xx][Ss]tatic-%{version}*nspkg.pth %changelog