14
0

2 Commits

Author SHA256 Message Date
fdba165537 Accepting request 1190484 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=15
2024-07-31 11:28:52 +00:00
dfa1b78b9f - Update to 1.26.1
* Fix Surface.set_mime_data() with Python 3.13 :pr:`366`
    This also fixes the test suite with Python 3.13b2.
  * Update vendored Windows wheel dependencies :pr:`370`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=30
2024-07-30 12:42:18 +00:00
4 changed files with 19 additions and 47 deletions

BIN
pycairo-1.26.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:26ec5c6126781eb167089a123919f87baa2740da2cca9098be8b3a6b91cc5fbc
size 662477

View File

@@ -1,27 +1,3 @@
-------------------------------------------------------------------
Wed Jun 11 05:52:55 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.28.0:
* Changes:
+ Remove hypothesis test dependency
+ Release the input buffer passed to ImageSurface.create_for_data() when
calling Surface.finish() already, not just when the underlying surface
is destroyed
+ Return a PathDataType (int subtype) instead of int with Path.__iter__()
+ Emit a DeprecationWarning in case ImageSurface.get_data() is called on
an already finished surface.
+ Emit a DeprecationWarning for the undocumented num_glyphs parameter in
Context.glyph_extents(), Context.glyph_path(), Context.show_glyphs(),
ScaledFont.glyph_extents()
* Fixes:
+ Remove the executable bit from cairo/__init__.py
+ Remove usage of removed typing.ByteString to fix compatibility with
Python 3.14.0a1
+ Drop support for Python 3.8
+ Port PEP517/wheel build from setuptools to meson-python.
+ meson: install the package metadata to .dist-info/METADATA instead
of .egg-info
-------------------------------------------------------------------
Mon Jul 29 14:49:40 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pycairo
#
# Copyright (c) 2025 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
@@ -19,16 +19,16 @@
%{?sle15_python_module_pythons}
%define oldpython python
Name: python-pycairo
Version: 1.28.0
Version: 1.26.1
Release: 0
Summary: Python Bindings for Cairo
License: LGPL-2.1-or-later OR MPL-1.1
URL: https://github.com/pygobject/pycairo
Source: %{url}/releases/download/v%{version}/pycairo-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module meson-python}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: cairo-devel >= 1.15.10
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -74,32 +74,28 @@ packages that depend on Pycairo.
%autosetup -n pycairo-%{version} -p1
%build
%{python_expand \
dir="build.$python"
mkdir $dir
cat << EOF > $dir/native-file.ini
[binaries]
python = '$python'
EOF
meson setup . $dir -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dtests=false -Dwheel=false --prefix=/usr --native-file=$dir/native-file.ini
ninja -C $dir
}
%python_build
%install
%python_expand meson install -C build.$python --destdir %{buildroot}
%python_install
# Incorrectly installed by a python38-setuptools vendored distutils
# which does not play well with the distro patched python38.
# Later flavors installed the correct files into lib64 as well
if [ "%{_libdir}" != "%{_prefix}/lib" -a -d %{buildroot}%{_prefix}/lib/pkgconfig ]; then
rm -r %{buildroot}%{_prefix}/lib/pkgconfig
fi
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
mv cairo cairo-do-not-import-from
%pytest_arch
mv cairo-do-not-import-from cairo
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
%python_exec setup.py test
%files %{python_files}
%doc NEWS docs
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
%{python_sitearch}/cairo/
%exclude %{python_sitearch}/cairo/include
%{python_sitearch}/pycairo-%{version}.dist-info
%{python_sitearch}/pycairo-*.egg-info
%files %{python_files devel}
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1