From c7abda6f3c3f3f02d699699a0f311c7d9ffd89221d1f4be863e1abcacc15a2d6 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 16:04:18 +0000 Subject: [PATCH] Accepting request 1276916 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276916 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-URLObject?expand=0&rev=14 --- python-URLObject.changes | 5 +++++ python-URLObject.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-URLObject.changes b/python-URLObject.changes index 84cbb65..90f95d9 100644 --- a/python-URLObject.changes +++ b/python-URLObject.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:44:38 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Jun 5 14:37:28 UTC 2020 - Matej Cepl diff --git a/python-URLObject.spec b/python-URLObject.spec index b5bcd0c..b5a07ea 100644 --- a/python-URLObject.spec +++ b/python-URLObject.spec @@ -1,7 +1,7 @@ # # spec file for package python-URLObject # -# Copyright (c) 2020 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-URLObject Version: 2.4.3 Release: 0 @@ -27,7 +26,9 @@ Source: https://files.pythonhosted.org/packages/source/U/URLObject/URLOb # patch-feature-upstream remove_nose.patch gh#zacharyvoase/urlobject#42 mcepl@suse.com # Remove the need for nose and use the standard library. Patch0: remove_nose.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -48,10 +49,10 @@ test-driven manner, and has full Sphinx documentation. %autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +61,7 @@ test-driven manner, and has full Sphinx documentation. %files %{python_files} %doc README.rst %license UNLICENSE -%{python_sitelib}/* +%{python_sitelib}/[Uu][Rr][Ll][Oo]bject +%{python_sitelib}/[Uu][Rr][Ll][Oo]bject-%{version}*-info %changelog