From 638f41d85a86e94c975335a8a2397db40fba36845e6d24acc29377c74e57d110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:22:30 +0000 Subject: [PATCH] Accepting request 1277171 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277171 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asciitree?expand=0&rev=9 --- python-asciitree.changes | 5 +++++ python-asciitree.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-asciitree.changes b/python-asciitree.changes index 3848cad..dc9ec74 100644 --- a/python-asciitree.changes +++ b/python-asciitree.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 14:15:06 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Mar 29 14:18:47 UTC 2024 - ecsos diff --git a/python-asciitree.spec b/python-asciitree.spec index 20bfc3b..157c940 100644 --- a/python-asciitree.spec +++ b/python-asciitree.spec @@ -1,7 +1,7 @@ # # spec file for package python-asciitree # -# 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 @@ -26,8 +26,10 @@ Group: Development/Languages/Python URL: https://github.com/mbr/asciitree # https://github.com/mbr/asciitree/issues/16 -- no tests on PyPI Source: https://github.com/mbr/asciitree/archive/%{version}.tar.gz#/asciitree-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,10 +43,10 @@ ASCIItree draws tree structures using characters. sed -i '1{/env python/ d}' asciitree/__init__.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check