From e7d3099977c1a8d0c3f8853a08c769559880a4dda2d08db97da4dbc2db23d04d Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 13 May 2025 08:49:25 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Wand?expand=0&rev=16 --- .gitattributes | 23 ++++++++ .gitignore | 1 + Wand-0.6.13.tar.gz | 3 + python-Wand.changes | 131 ++++++++++++++++++++++++++++++++++++++++++++ python-Wand.spec | 72 ++++++++++++++++++++++++ 5 files changed, 230 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Wand-0.6.13.tar.gz create mode 100644 python-Wand.changes create mode 100644 python-Wand.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Wand-0.6.13.tar.gz b/Wand-0.6.13.tar.gz new file mode 100644 index 0000000..b796751 --- /dev/null +++ b/Wand-0.6.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5013484eaf7a20eb22d1821aaefe60b50cc329722372b5f8565d46d4aaafcca +size 11883700 diff --git a/python-Wand.changes b/python-Wand.changes new file mode 100644 index 0000000..8d3728d --- /dev/null +++ b/python-Wand.changes @@ -0,0 +1,131 @@ +------------------------------------------------------------------- +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 + +- update to 0.6.13: + * Removed broken `pyproject.toml` file from source + distribution. + * Fixed behavior when passing zero to :meth:`Image.chop() + `. + * Fixed `libmagick` yield `MagickCore` library on Linux. + * Fixed removing mask when passing :const:`None` to + :meth:`Image.write_mask() ` + method. [:issue:`636`] + * Added new :const:`COMPOSITE_OPERATORS + ` operators. + * [DOC] Updated Sphinx version to 7.2.6 + +------------------------------------------------------------------- +Thu Aug 3 18:50:21 UTC 2023 - Greg Freemyer + +- use %{?sle15_python_module_pythons} to select python versions + +------------------------------------------------------------------- +Fri Jan 27 09:20:08 UTC 2023 - Daniel Garcia + +- Disable broken test in i586, test_histogram +- Update to 0.6.11 + * Fixed format issue when calling Image.convert(), and Image.make_blob() + methods. [#594] + * Fixed storage type size for “long” & “quantum” values in + Image.export_pixels() and Image.import_pixels() methods. [#596] + * Added filter parameter to Image.distort() method. + * [TEST] Added Python 3.11 to regression tests for github actions. + * [TEST] Replaced py.path fixtures with pythlib. [!607 & #608 by Louis + Sautier] + * [TEST] Retired Python2 support from regression testing. + * [TEST] Upgraded Travis CI + build environments. + +------------------------------------------------------------------- +Mon Aug 29 16:01:33 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.6.10 + * Fixed segmentation fault during resource allocation on M1 processor. [:issue:`587`] + * Fixed additional segmentation faults introduced with ImageMagick 7.1.0-45. + [:issue:`587` & :issue:`586`] + +- Update to 0.6.9 + * Updated :meth:`Image.fx() ` method to raise + :class:`~wand.exceptions.WandRuntimeError` if ImageMagick is unable to generate + an image. [:issue:`582`] + * Fixed :meth:`Image.from_array() ` classmethod to handle + Numpy's strided arrays. [:issue:`582`] + * Fixed segmentation fault introduced with ImageMagick 7.1.0-45. [:issue:`586`] + +------------------------------------------------------------------- +Mon Aug 29 04:12:11 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.6.8 + * Added :meth:`Image.label() ` method. + * Added :meth:`Image.region() ` method. + * Updated :meth:`Image.chop() ` method to support gravity keyword. + * Updated :meth:`Image.extent() ` method to support gravity + keyword. [:issue:`554`] + * Added .so.9 shared library suffix to :meth:`wand.api.library_paths()` generator when + searching :const:`MAGICK_HOME` path. + * Added :const:`QUANTUM_SCALE ` constant. + * Added :meth:`Image.montage() ` method. [:issue:`575`] + * Added :meth:`Image.roll() ` method. + * Fixed returned values for :meth:`Image.connected_components() + ` method for ImageMagick 7.1.1. [:issue:`574`] + * Fixed :c:func:`MagickSetImageDepth()` C-API method signature. [:issue:`577` by Pavel Borzenkov] + * Fixed :meth:`Image.encipher() ` method to call the + correct API. [:issue:`578` by Pavel Borzenkov] + * [DOC] Improved :class:`~wand.drawing.FontMetrics` documentation. [:issue:`566`] + * [TEST] Migrated CI from travis-ci.org to travis-ci.com. + * [TEST] Removed unneeded SVG dependency from regression test. + * [TEST] Suppressed :class:`~wand.exceptions.OptionWarning` when testing user errors. + * [TEST] Added Python 3.9 regression test for travis-ci.com. + * [TEST] Removed Python 3.7 & 3.8 regression test for travis-ci.com. + * [TEST] Added Python 3.10 regression tests for github actions. + +------------------------------------------------------------------- +Tue Aug 31 10:57:14 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 0.6.7 + * Added :meth:`Image.image_add() ` method. + * Added :meth:`Image.image_get() ` method. + * Added :meth:`Image.image_remove() ` method. + * Added :meth:`Image.image_set() ` method. + * Added :meth:`Image.image_swap() ` method. + * Fixed sub-image extraction on read. [:issue:`532`] + * Fixed :attr:`~wand.image.BaseImage.background_color` attribute + when image was not read. + * [DOC] Completed :doc:`Distortion <./guide/distortion>` guide. [:issue:`534`] + * [DOC] Added :doc:`Morphology <./guide/morphology>` guide. + +------------------------------------------------------------------- +Sat May 8 20:30:37 UTC 2021 - Matej Cepl + +- Skip tests using fftw library, we don't have the support built + in ImageMagick (see gh#emcconville/wand#476). + +------------------------------------------------------------------- +Fri May 7 23:47:46 UTC 2021 - Benjamin Greiner + +- Fix numpy test BuildRequires for flavors beyond python38 + +------------------------------------------------------------------- +Mon Mar 1 01:50:31 UTC 2021 - John Vandenberg + +- Update to v0.6.6 + +------------------------------------------------------------------- +Mon Feb 8 11:49:19 UTC 2021 - John Vandenberg + +- Update to v0.6.5 + +------------------------------------------------------------------- +Sun Jun 7 16:30:40 UTC 2020 - John Vandenberg + +- Update to v0.6.1 + +------------------------------------------------------------------- +Tue Mar 31 11:55:15 PM UTC 2020 - John Vandenberg + +- Initial spec for v0.5.9 diff --git a/python-Wand.spec b/python-Wand.spec new file mode 100644 index 0000000..5fe5b02 --- /dev/null +++ b/python-Wand.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-Wand +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-Wand +Version: 0.6.13 +Release: 0 +Summary: Ctypes-based simple MagickWand API binding for Python +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} +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} +# /SECTION +%python_subpackages + +%description +Ctypes-based simple MagickWand API binding for Python. + +%prep +%setup -q -n Wand-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Our ImageMagick is build without support of fftw library +# see identify -version and gh#emcconville/wand#476 +export PYTEST_ADDOPTS="--skip-fft" +# Three tests failing with +# wand.exceptions.PolicyError: attempt to perform an operation not allowed by the security policy `PDF' +# due to https://build.opensuse.org/package/view_file/graphics/ImageMagick/ImageMagick-configuration-SUSE.patch +%pytest -rs -k 'not (test_resolution_set_03 or test_resolution_set_04 or test_read_with_colorspace or test_histogram)' + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/wand +%{python_sitelib}/[Ww]and-%{version}*-info + +%changelog