forked from pool/python-pycairo
Compare commits
34 Commits
Author | SHA256 | Date | |
---|---|---|---|
d90f63cd69 | |||
e39fb1937f | |||
fdba165537 | |||
cf08ed4a51 | |||
f748f01486 | |||
d2c62818be | |||
0daada72fc | |||
470a031bfe | |||
a64f479cff | |||
62ccf79619 | |||
2ff381450f | |||
5d480057fd | |||
0cbcbd7100 | |||
4364f26194 | |||
5351e6371f | |||
a7dff60227 | |||
8c6a0f3b8d | |||
f6dcfc8e32 | |||
dea75cdaf6 | |||
|
ca656a7b6c | ||
96870147f6 | |||
7f48a8a8ed | |||
23b028738d | |||
84454b8e65 | |||
0001dfefce | |||
6f22ac5b5e | |||
|
88c288fb19 | ||
|
06d84c90f3 | ||
cd605b2380 | |||
|
765e3efbd8 | ||
539361c744 | |||
|
b012c10281 | ||
|
34c351d932 | ||
|
3a28e29992 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2dddd0a874fbddb21e14acd9b955881ee1dc6e63b9c549a192d613a907f9cbeb
|
|
||||||
size 346850
|
|
BIN
pycairo-1.26.1.tar.gz
(Stored with Git LFS)
BIN
pycairo-1.26.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
pycairo-1.28.0.tar.gz
Normal file
3
pycairo-1.28.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:26ec5c6126781eb167089a123919f87baa2740da2cca9098be8b3a6b91cc5fbc
|
||||||
|
size 662477
|
@@ -1,3 +1,27 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Mon Jul 29 14:49:40 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pycairo
|
# spec file for package python-pycairo
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,16 +19,16 @@
|
|||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
Name: python-pycairo
|
Name: python-pycairo
|
||||||
Version: 1.26.1
|
Version: 1.28.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Bindings for Cairo
|
Summary: Python Bindings for Cairo
|
||||||
License: LGPL-2.1-or-later OR MPL-1.1
|
License: LGPL-2.1-or-later OR MPL-1.1
|
||||||
URL: https://github.com/pygobject/pycairo
|
URL: https://github.com/pygobject/pycairo
|
||||||
Source: %{url}/releases/download/v%{version}/pycairo-%{version}.tar.gz
|
Source: %{url}/releases/download/v%{version}/pycairo-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module devel >= 3.9}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module meson-python}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: cairo-devel >= 1.15.10
|
BuildRequires: cairo-devel >= 1.15.10
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -74,28 +74,32 @@ packages that depend on Pycairo.
|
|||||||
%autosetup -n pycairo-%{version} -p1
|
%autosetup -n pycairo-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_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
|
||||||
|
}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_expand meson install -C build.$python --destdir %{buildroot}
|
||||||
# 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}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
|
mv cairo cairo-do-not-import-from
|
||||||
%python_exec setup.py test
|
%pytest_arch
|
||||||
|
mv cairo-do-not-import-from cairo
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc NEWS docs
|
%doc NEWS docs
|
||||||
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
||||||
%{python_sitearch}/cairo/
|
%{python_sitearch}/cairo/
|
||||||
%exclude %{python_sitearch}/cairo/include
|
%exclude %{python_sitearch}/cairo/include
|
||||||
%{python_sitearch}/pycairo-*.egg-info
|
%{python_sitearch}/pycairo-%{version}.dist-info
|
||||||
|
|
||||||
%files %{python_files devel}
|
%files %{python_files devel}
|
||||||
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
||||||
|
Reference in New Issue
Block a user