From 59e94f87cc90769709d5012647b6f05863774d1e0ef3220580caf130287e3e79 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 13 May 2025 08:49:25 +0000 Subject: [PATCH] Accepting request 1277031 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277031 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Wand?expand=0&rev=16 --- python-Wand.changes | 5 +++++ python-Wand.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-Wand.changes b/python-Wand.changes index 69ba94f..8d3728d 100644 --- a/python-Wand.changes +++ b/python-Wand.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:54:40 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Dec 15 21:56:24 UTC 2023 - Dirk Müller diff --git a/python-Wand.spec b/python-Wand.spec index 9f04117..5fe5b02 100644 --- a/python-Wand.spec +++ b/python-Wand.spec @@ -1,7 +1,7 @@ # # spec file for package python-Wand # -# 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 @@ -17,7 +17,6 @@ %{?sle15_python_module_pythons} - Name: python-Wand Version: 0.6.13 Release: 0 @@ -26,17 +25,19 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/emcconville/wand Source: https://files.pythonhosted.org/packages/source/W/Wand/Wand-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -Requires: ImageMagick +BuildRequires: %{python_module wheel} BuildRequires: ImageMagick-devel BuildRequires: fdupes BuildRequires: fftw3-devel BuildRequires: python-rpm-macros +Requires: ImageMagick BuildArch: noarch # SECTION test requirements +BuildRequires: %{python_module numpy} BuildRequires: %{python_module psutil >= 1.0.1} BuildRequires: %{python_module pytest >= 7.2.0} -BuildRequires: %{python_module numpy if (%python-base without python36-base)} # /SECTION %python_subpackages @@ -47,10 +48,10 @@ Ctypes-based simple MagickWand API binding for Python. %setup -q -n Wand-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -66,6 +67,6 @@ export PYTEST_ADDOPTS="--skip-fft" %doc README.rst %license LICENSE %{python_sitelib}/wand -%{python_sitelib}/Wand-%{version}*-info +%{python_sitelib}/[Ww]and-%{version}*-info %changelog