From 1a072e308ee42b316badf071dc11ecea7eb5bc50add9026c1a823311eaf5af4c Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 13 May 2025 08:48:53 +0000 Subject: [PATCH] Accepting request 1277026 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277026 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-adapt-parser?expand=0&rev=21 --- python-adapt-parser.changes | 5 +++++ python-adapt-parser.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-adapt-parser.changes b/python-adapt-parser.changes index 239443a..c27a237 100644 --- a/python-adapt-parser.changes +++ b/python-adapt-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 06:53:02 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Nov 7 09:58:56 UTC 2023 - Dominique Leuenberger diff --git a/python-adapt-parser.spec b/python-adapt-parser.spec index f515aea..8fc01cc 100644 --- a/python-adapt-parser.spec +++ b/python-adapt-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-adapt-parser # -# 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 @@ -27,8 +27,10 @@ URL: https://github.com/MycroftAI/adapt Source: https://github.com/MycroftAI/adapt/archive/refs/tags/release/v%{version}.tar.gz # PATCH-FIX-OPENSUSE remove-python-six.patch Patch0: remove-python-six.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -44,10 +46,10 @@ a structured intent that can then be invoked programatically. sed -i -s "s/==/>=/" requirements.txt %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check