From f4573f44c4155dc44fae7a5b0572a4ddb66d50fc0cead2c91e171354fc4586c5 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 27 May 2025 13:01:04 +0000 Subject: [PATCH] Accepting request 1280528 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280528 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fb-re2?expand=0&rev=13 --- python-fb-re2.changes | 5 +++++ python-fb-re2.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-fb-re2.changes b/python-fb-re2.changes index a5b25b4..0f20718 100644 --- a/python-fb-re2.changes +++ b/python-fb-re2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 11:38:59 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Mar 28 12:31:02 UTC 2024 - ecsos diff --git a/python-fb-re2.spec b/python-fb-re2.spec index 8be0fcb..4895053 100644 --- a/python-fb-re2.spec +++ b/python-fb-re2.spec @@ -1,7 +1,7 @@ # # spec file for package python-fb-re2 # -# 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 @@ -28,8 +28,10 @@ Source: https://github.com/facebook/pyre2/archive/v%{version}.tar.gz # PATCH-FIX-UPSTREAM cpp17.patch gh#facebook/pyre2#25 Patch0: cpp17.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros @@ -46,10 +48,10 @@ sed -i 's/assertRaisesRegexp/assertRaisesRegex/g' tests/test_match.py %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check