Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cairocffi for 
openSUSE:Factory checked in at 2023-05-09 13:06:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cairocffi (Old)
 and      /work/SRC/openSUSE:Factory/.python-cairocffi.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cairocffi"

Tue May  9 13:06:40 2023 rev:25 rq:1085021 version:1.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cairocffi/python-cairocffi.changes        
2023-04-22 22:02:44.542035019 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-cairocffi.new.1533/python-cairocffi.changes  
    2023-05-09 13:06:47.748827413 +0200
@@ -1,0 +2,15 @@
+Fri May  5 09:45:47 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.5.1:
+  * move to pyproject.toml
+  * Try to support and test more Python versions
+  * Catch more errors when creating PNG files
+  * Include utils and docs in the source package
+  * Include all Setuptool’s building functions in custom 
+    building script
+  * Build generated files manually when building wheels
+  * Install xcffib if possible during the wheel generation
+- add skip-pikepdf.patch to skip pikepdf from tests
+- use LICENSE from package
+
+-------------------------------------------------------------------

Old:
----
  LICENSE
  cairocffi-1.4.0.tar.gz

New:
----
  cairocffi-1.5.1.tar.gz
  skip-pikepdf.patch

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

Other differences:
------------------
++++++ python-cairocffi.spec ++++++
--- /var/tmp/diff_new_pack.Sc4F3p/_old  2023-05-09 13:06:48.364831080 +0200
+++ /var/tmp/diff_new_pack.Sc4F3p/_new  2023-05-09 13:06:48.372831127 +0200
@@ -18,20 +18,19 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-cairocffi
-Version:        1.4.0
+Version:        1.5.1
 Release:        0
 Summary:        Python cairo bindings based on cffi
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/Kozea/cairocffi
 Source:         
https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz
-# https://github.com/Kozea/cairocffi/issues/208
-Source1:        
https://raw.githubusercontent.com/Kozea/cairocffi/master/LICENSE
+# avoid pikepdf in Ring1, skipping the pikepdf related tests
+Patch1:         skip-pikepdf.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module cffi >= 1.1.0}
-# we don't want pikepdf in Ring1 stagings
-#BuildRequires:  %{python_module pikepdf}
-BuildRequires:  %{python_module setuptools >= 39.2.0}
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  %{python_module xcffib >= 0.3.2}
 BuildRequires:  cairo
 Requires:       cairo
@@ -70,33 +69,18 @@
 This package provides the optional gdk-pixbuf image loader module.
 
 %prep
-%autosetup -n cairocffi-%{version} -p1
-cp %{SOURCE1} .
-# disable development tools for unit tests. Remove deprecated pytest-runner
-sed -i -e 's/pytest-runner$/pytest/' \
-       -e '/pytest-flake8$/ d' \
-       -e '/pytest-isort$/ d' \
-       -e '/pytest-cov$/ d' \
-       -e '/^addopts.*flake8.*isort$/ d' setup.cfg
-
-mkdir tests
-mv cairocffi/test_*.py tests/
-sed -i 's/^from \. /from cairocffi /' tests/*.py
-sed -i 's/^from \./from cairocffi./' tests/*.py
+%autosetup -p1 -n cairocffi-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-cd tests/
-# test_cairo.py needs pikepdf, remove it
-rm test_cairo.py
 # Switch off test_xcb_window (gh#Kozea/cairocffi#203)
-%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" xvfb-run 
--server-args="-screen 0 1280x1024x16" $python -m pytest -k "not 
test_xcb_window" *.py
+%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" xvfb-run 
--server-args="-screen 0 1280x1024x16" $python -m pytest -k "not 
test_xcb_window"
 
 %files %{python_files}
 %license LICENSE

++++++ cairocffi-1.4.0.tar.gz -> cairocffi-1.5.1.tar.gz ++++++
++++ 2298 lines of diff (skipped)

++++++ skip-pikepdf.patch ++++++
Index: cairocffi-1.5.1/cairocffi/test_cairo.py
===================================================================
--- cairocffi-1.5.1.orig/cairocffi/test_cairo.py
+++ cairocffi-1.5.1/cairocffi/test_cairo.py
@@ -21,7 +21,6 @@ import sys
 import tempfile
 
 import cairocffi
-import pikepdf
 import pytest
 
 from . import (
@@ -239,6 +238,7 @@ def test_device_scale():
 
 @pytest.mark.xfail(cairo_version() < 11504,
                    reason='Cairo version too low')
+@pytest.mark.skip(reason="No pikepdf")
 def test_metadata():
     file_obj = io.BytesIO()
     surface = PDFSurface(file_obj, 1, 1)
@@ -264,6 +264,7 @@ def test_metadata():
 
 @pytest.mark.xfail(cairo_version() < 11504,
                    reason='Cairo version too low')
+@pytest.mark.skip(reason="No pikepdf")
 def test_outline():
     file_obj = io.BytesIO()
     surface = PDFSurface(file_obj, 1, 1)
@@ -280,6 +281,7 @@ def test_outline():
 
 @pytest.mark.xfail(cairo_version() < 11504,
                    reason='Cairo version too low')
+@pytest.mark.skip(reason="No pikepdf")
 def test_page_label():
     file_obj = io.BytesIO()
     surface = PDFSurface(file_obj, 1, 1)
@@ -291,6 +293,7 @@ def test_page_label():
 
 @pytest.mark.xfail(cairo_version() < 11504,
                    reason='Cairo version too low')
+@pytest.mark.skip(reason="No pikepdf")
 def test_tag():
     file_obj = io.BytesIO()
     surface = PDFSurface(file_obj, 10, 10)
@@ -419,6 +422,7 @@ def test_pdf_versions():
     assert file_obj.getvalue().startswith(b'%PDF-1.4')
 
 
+@pytest.mark.skip(reason="No pikepdf")
 def test_pdf_surface():
     with temp_directory() as tempdir:
         filename = os.path.join(tempdir, 'foo.pdf')

Reply via email to