From e37ee0af4fb66cdc551c7a8cab46a54b9bba53e519efce743fe104737fdbd990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 08:57:55 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=21 --- python-parted.changes | 5 +++++ python-parted.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-parted.changes b/python-parted.changes index 34e5a96..ce24bab 100644 --- a/python-parted.changes +++ b/python-parted.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 08:57:34 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Mar 16 17:37:54 UTC 2024 - Matej Cepl diff --git a/python-parted.spec b/python-parted.spec index 93f6947..e9f86a5 100644 --- a/python-parted.spec +++ b/python-parted.spec @@ -1,7 +1,7 @@ # # spec file for package python-parted # -# 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,16 +28,18 @@ Source0: https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz Patch0: pyparted-3.10.patch Patch1: python-parted-parted-binary.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} # tests requires BuildRequires: e2fsprogs -BuildRequires: parted -Requires: parted BuildRequires: fdupes +BuildRequires: parted BuildRequires: parted-devel BuildRequires: pkgconfig BuildRequires: python-rpm-macros +Requires: parted %python_subpackages %description @@ -48,14 +50,14 @@ partition tables. %autosetup -p1 -n %{srcname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v +%pyunittest_arch -v %files %{python_files} %license LICENSE