From 51ebb4e4eb019178cc6f4aeb5bf845338e0a932f51c5f1252e3e40d27c35eb4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 10:24:54 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=31 --- python-extras.changes | 5 +++++ python-extras.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-extras.changes b/python-extras.changes index f895d67..2b317c2 100644 --- a/python-extras.changes +++ b/python-extras.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 10:24:36 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Apr 21 12:24:52 UTC 2023 - Dirk Müller diff --git a/python-extras.spec b/python-extras.spec index 52bae0e..25b6e0b 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-extras # -# 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-%{**}} # A build cycle exists between python-extras and python-testtools. %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" @@ -34,7 +33,9 @@ Summary: Extra bits for Python License: MIT URL: https://github.com/testing-cabal/extras Source: https://files.pythonhosted.org/packages/source/e/extras/extras-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # Break cycle @@ -55,17 +56,17 @@ general use outside of a testing context. %setup -q -n extras-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check -%python_exec -m unittest discover +%pyunittest %endif %if !%{with test} @@ -73,7 +74,7 @@ general use outside of a testing context. %license LICENSE %doc NEWS README.rst %{python_sitelib}/extras -%{python_sitelib}/extras-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/extras-%{version}-py%{python_version}.egg[-_]info/ %endif %changelog From 26c54a415fc1d10e9d635ab62075388ab57f9a35c208b5c11736abe62e0a33c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 10:26:14 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=32 --- python-extras.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-extras.spec b/python-extras.spec index 25b6e0b..456aa9b 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -74,7 +74,7 @@ general use outside of a testing context. %license LICENSE %doc NEWS README.rst %{python_sitelib}/extras -%{python_sitelib}/extras-%{version}-py%{python_version}.egg[-_]info/ +%{python_sitelib}/extras-%{version}*-info/ %endif %changelog