Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pgmagick for openSUSE:Factory 
checked in at 2024-03-21 17:00:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pgmagick (Old)
 and      /work/SRC/openSUSE:Factory/.python-pgmagick.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pgmagick"

Thu Mar 21 17:00:47 2024 rev:5 rq:1159955 version:0.7.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pgmagick/python-pgmagick.changes  
2023-12-28 23:03:56.895891393 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pgmagick.new.1905/python-pgmagick.changes    
    2024-03-21 17:01:13.706145017 +0100
@@ -1,0 +2,7 @@
+Thu Mar 21 05:54:25 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Rewrite the check section completly, making use of upstream's Makefile.
+- Also copy in a missing utils with a constant when we require it.
+- Switch to pyproject macros.
+
+-------------------------------------------------------------------

New:
----
  Makefile
  utils.py

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pgmagick.spec ++++++
--- /var/tmp/diff_new_pack.JtCQBE/_old  2024-03-21 17:01:14.254165586 +0100
+++ /var/tmp/diff_new_pack.JtCQBE/_new  2024-03-21 17:01:14.254165586 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pgmagick
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,11 +22,14 @@
 Release:        0
 Summary:        Yet Another Python wrapper for GraphicsMagick
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/hhatto/pgmagick/
 Source:         
https://files.pythonhosted.org/packages/source/p/pgmagick/pgmagick-%{version}.tar.gz
+Source1:        
https://raw.githubusercontent.com/hhatto/pgmagick/master/test/Makefile
+Source2:        
https://raw.githubusercontent.com/hhatto/pgmagick/master/test/utils.py
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  ghostscript-fonts-std
 BuildRequires:  pkgconfig
@@ -48,26 +51,27 @@
 
 %prep
 %autosetup -p1 -n pgmagick-%{version}
+cp %{SOURCE1} test
 
 %build
 export CFLAGS="%{optflags} -fno-strict-aliasing"
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
-mkdir tester
-pushd tester
-cp -r ../test .
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest 
discover -v
-popd
-rm -r tester
+export PYTHONDONTWRITEBYTECODE=1
+%python_expand cp -v %{SOURCE2} %{buildroot}%{$python_sitearch}
+mv pgmagick do-not-use-pgmagick
+%python_expand PYTHON=$python PYTHONPATH=%{buildroot}%{$python_sitearch} make 
-C test all clean
+mv do-not-use-pgmagick pgmagick
+%python_expand rm -v %{buildroot}%{$python_sitearch}/utils.py
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitearch}/pgmagick/
-%{python_sitearch}/pgmagick-%{version}-py*.egg-info/
+%{python_sitearch}/pgmagick
+%{python_sitearch}/pgmagick-%{version}.dist-info
 

++++++ Makefile ++++++
all: cookbook blob color image geometry montage api

PYTHON?=python

cookbook:
        @${PYTHON} test_cookbook.py ${TEST_OPTIONS}

blob:
        @${PYTHON} test_pgmagick_blob.py ${TEST_OPTIONS}

color:
        @${PYTHON} test_pgmagick_color.py ${TEST_OPTIONS}

image:
        @${PYTHON} test_pgmagick_image.py ${TEST_OPTIONS}

geometry:
        @${PYTHON} test_pgmagick_geometry.py ${TEST_OPTIONS}

montage:
        @${PYTHON} test_pgmagick_montage.py ${TEST_OPTIONS}

api:
        @${PYTHON} test_pgmagick_api.py ${TEST_OPTIONS}

clean:
        rm *.png *.jpg

++++++ utils.py ++++++
MACOSX_FONT = "/System/Library/Fonts/Keyboard.ttf"

Reply via email to