From f97956158ad50b4b4e10b0d8070008aa0941146d3e98a4ed9619f580a427fa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:11:21 +0000 Subject: [PATCH] Accepting request 1277147 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277147 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-altgraph?expand=0&rev=25 --- python-altgraph.changes | 5 +++++ python-altgraph.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-altgraph.changes b/python-altgraph.changes index 192342f..a3f721b 100644 --- a/python-altgraph.changes +++ b/python-altgraph.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 13:08:39 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Oct 4 09:51:15 UTC 2023 - Dirk Müller diff --git a/python-altgraph.spec b/python-altgraph.spec index ce8d483..3ee468d 100644 --- a/python-altgraph.spec +++ b/python-altgraph.spec @@ -1,7 +1,7 @@ # # spec file for package python-altgraph # -# 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 @@ -25,8 +25,10 @@ License: MIT URL: https://github.com/ronaldoussoren/altgraph/ Source: https://files.pythonhosted.org/packages/source/a/altgraph/altgraph-%{version}.tar.gz BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -50,11 +52,11 @@ graphviz output. %setup -q -n altgraph-%{version} %build -%python_build +%pyproject_wheel cd doc && make html %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,7 +65,8 @@ cd doc && make html %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/altgraph +%{python_sitelib}/altgraph-%{version}*-info %files -n %{name}-doc %doc doc/_build/html/