diff --git a/cairocffi-1.5.1.tar.gz b/cairocffi-1.5.1.tar.gz deleted file mode 100644 index 5d95060..0000000 --- a/cairocffi-1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:071ab7b72e3533300b0bfd55a52056b4ffdc1ed6e656779e2aced9b709b8a295 -size 86924 diff --git a/cairocffi-1.7.1.tar.gz b/cairocffi-1.7.1.tar.gz new file mode 100644 index 0000000..d224437 --- /dev/null +++ b/cairocffi-1.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e48ee864884ec4a3a34bfa8c9ab9999f688286eb714a15a43ec9d068c36557b +size 88096 diff --git a/python-cairocffi.changes b/python-cairocffi.changes index 9de9538..0516ce1 100644 --- a/python-cairocffi.changes +++ b/python-cairocffi.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Wed Oct 2 08:12:05 UTC 2024 - Matej Cepl + +- Readd disabling test_xcb tests. Please, don’t reenable until + gh#Kozea/cairocffi#203 is fixed. + +------------------------------------------------------------------- +Wed Jun 19 07:38:34 UTC 2024 - Michael Vetter + +- Update to 1.7.0: + * #227: Add get_hairline() and set_hairline() functions + +------------------------------------------------------------------- +Mon Apr 29 06:52:06 UTC 2024 - Michael Vetter + +- Update to 1.7.0: + * Drop Python 3.7 support, add Python 3.12 support + * #221: Add environment variable to set folder where DLLs are + installed on Windows + * #225: Use Ruff instead of Flake8 and isort +- Refresh skip-pikepdf.patch + +------------------------------------------------------------------- +Thu Oct 19 13:30:28 UTC 2023 - Soc Virnyl Estela + +- update to version 1.6.1 + * use in-line ABI mode + * use in-line mode for xcffib + * require xcffib 0.4.0+ + * update docs + * build requires flit-core +- remove disabling of text_xcb_window + ------------------------------------------------------------------- Fri May 5 09:45:47 UTC 2023 - Dirk Müller diff --git a/python-cairocffi.spec b/python-cairocffi.spec index 44a30d0..a8c3c9e 100644 --- a/python-cairocffi.spec +++ b/python-cairocffi.spec @@ -1,7 +1,7 @@ # # spec file for package python-cairocffi # -# 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 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-cairocffi -Version: 1.5.1 +Version: 1.7.1 Release: 0 Summary: Python cairo bindings based on cffi License: BSD-3-Clause @@ -27,11 +27,12 @@ URL: https://github.com/Kozea/cairocffi Source: https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz # avoid pikepdf in Ring1, skipping the pikepdf related tests Patch1: skip-pikepdf.patch -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module cffi >= 1.1.0} +BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} -BuildRequires: %{python_module xcffib >= 0.3.2} +BuildRequires: %{python_module xcffib >= 0.4.0} BuildRequires: cairo Requires: cairo Requires: python-cffi >= 1.1.0 @@ -80,7 +81,7 @@ This package provides the optional gdk-pixbuf image loader module. %check # 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" +%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" xvfb-run --server-args="-screen 0 1280x1024x16" $python -m pytest --ignore cairocffi/test_xcb.py %files %{python_files} %license LICENSE diff --git a/skip-pikepdf.patch b/skip-pikepdf.patch index 2c04755..4d03508 100644 --- a/skip-pikepdf.patch +++ b/skip-pikepdf.patch @@ -1,16 +1,16 @@ -Index: cairocffi-1.5.1/cairocffi/test_cairo.py +Index: cairocffi-1.7.0/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 +--- cairocffi-1.7.0.orig/cairocffi/test_cairo.py ++++ cairocffi-1.7.0/cairocffi/test_cairo.py +@@ -20,7 +20,6 @@ import shutil + import sys import tempfile - import cairocffi -import pikepdf import pytest - from . import ( -@@ -239,6 +238,7 @@ def test_device_scale(): + import cairocffi +@@ -240,6 +239,7 @@ def test_device_scale(): @pytest.mark.xfail(cairo_version() < 11504, reason='Cairo version too low') @@ -18,7 +18,7 @@ Index: cairocffi-1.5.1/cairocffi/test_cairo.py def test_metadata(): file_obj = io.BytesIO() surface = PDFSurface(file_obj, 1, 1) -@@ -264,6 +264,7 @@ def test_metadata(): +@@ -265,6 +265,7 @@ def test_metadata(): @pytest.mark.xfail(cairo_version() < 11504, reason='Cairo version too low') @@ -26,7 +26,7 @@ Index: cairocffi-1.5.1/cairocffi/test_cairo.py def test_outline(): file_obj = io.BytesIO() surface = PDFSurface(file_obj, 1, 1) -@@ -280,6 +281,7 @@ def test_outline(): +@@ -281,6 +282,7 @@ def test_outline(): @pytest.mark.xfail(cairo_version() < 11504, reason='Cairo version too low') @@ -34,7 +34,7 @@ Index: cairocffi-1.5.1/cairocffi/test_cairo.py def test_page_label(): file_obj = io.BytesIO() surface = PDFSurface(file_obj, 1, 1) -@@ -291,6 +293,7 @@ def test_page_label(): +@@ -292,6 +294,7 @@ def test_page_label(): @pytest.mark.xfail(cairo_version() < 11504, reason='Cairo version too low') @@ -42,7 +42,7 @@ Index: cairocffi-1.5.1/cairocffi/test_cairo.py def test_tag(): file_obj = io.BytesIO() surface = PDFSurface(file_obj, 10, 10) -@@ -419,6 +422,7 @@ def test_pdf_versions(): +@@ -420,6 +423,7 @@ def test_pdf_versions(): assert file_obj.getvalue().startswith(b'%PDF-1.4')