1
0

34 Commits

Author SHA256 Message Date
d90f63cd69 Accepting request 1284631 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1284631
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=16
2025-06-11 14:19:03 +00:00
e39fb1937f - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=32
2025-06-11 06:17:26 +00:00
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
cf08ed4a51 Accepting request 1160840 from devel:languages:python
- update to 1.26.0:
  * Bump minimum required meson version from 0.56.0 to 0.64.0
  * Various meson related cleanups :pr:`350`
  * Fix header file being installed to the wrong location with
    meson on some systems :pr:`350`
  * Adds a new ``wheel`` meson build option as preparation for
    meson-python support :pr:`350` :pr:`345`
  * Update dependencies (libpng, pixman, zlib) of the Windows
    wheels :pr:`358`
  * Various maintenance related updates :pr:`360` :pr:`359`
    :pr:`361` :pr:`362`

- Update to version 1.23.0
    - fdo#19221: restore cairo.Matrix '*' operator to the way it
  A new example to demonstrate pattern masks.

OBS-URL: https://build.opensuse.org/request/show/1160840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=14
2024-03-25 20:06:42 +00:00
f748f01486 - update to 1.26.0:
* Bump minimum required meson version from 0.56.0 to 0.64.0
  * Various meson related cleanups :pr:`350`
  * Fix header file being installed to the wrong location with
    meson on some systems :pr:`350`
  * Adds a new ``wheel`` meson build option as preparation for
    meson-python support :pr:`350` :pr:`345`
  * Update dependencies (libpng, pixman, zlib) of the Windows
    wheels :pr:`358`
  * Various maintenance related updates :pr:`360` :pr:`359`
    :pr:`361` :pr:`362`
- Update to version 1.23.0
    - fdo#19221: restore cairo.Matrix '*' operator to the way it
  A new example to demonstrate pattern masks.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=28
2024-03-22 21:01:17 +00:00
d2c62818be Accepting request 1120301 from devel:languages:python
- update to 1.25.1:
  * fix a crash in pypy3.10
  * Fix the build with CPython 3.13.0a1
- introduced from 1.25.0:
  * update to cairo 1.18.0 (for windows only)
  * new apis:
    - Status.SVG_FONT_ERROR
    - FontOptions.get_color_mode(), FontOptions.set_color_mode(), ColorMode
    - FontOptions.set_color_palette(), FontOptions.get_color_palette(), COLOR_PALETTE_DEFAULT
    - FontOptions.set_custom_palette_color(), FontOptions.get_custom_palette_color()
    - TAG_CONTENT, TAG_CONTENT_REF
    - Pattern.get_dither(), Pattern.set_dither(), Dither

OBS-URL: https://build.opensuse.org/request/show/1120301
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=13
2023-10-26 15:11:49 +00:00
0daada72fc Accepting request 1119760 from home:uncomfyhalomacro:branches:devel:languages:python
- update to 1.25.1:
  * fix a crash in pypy3.10
  * Fix the build with CPython 3.13.0a1
- introduced from 1.25.0:
  * update to cairo 1.18.0 (for windows only)
  * new apis:
    - Status.SVG_FONT_ERROR
    - FontOptions.get_color_mode(), FontOptions.set_color_mode(), ColorMode
    - FontOptions.set_color_palette(), FontOptions.get_color_palette(), COLOR_PALETTE_DEFAULT
    - FontOptions.set_custom_palette_color(), FontOptions.get_custom_palette_color()
    - TAG_CONTENT, TAG_CONTENT_REF
    - Pattern.get_dither(), Pattern.set_dither(), Dither

OBS-URL: https://build.opensuse.org/request/show/1119760
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=26
2023-10-25 13:49:54 +00:00
470a031bfe Accepting request 1100692 from devel:languages:python
- update to 1.24.0:
  * Dropped Python 3.7 support
  * Bumped meson version requirement from 0.53.0 to 0.56.0
  * Various cairo dependency updates for the Windows wheel build
  * Various code cleanups :pr:`306`
  * Added Python 3.12 Windows wheels

OBS-URL: https://build.opensuse.org/request/show/1100692
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=12
2023-07-26 11:22:17 +00:00
a64f479cff - update to 1.24.0:
* Dropped Python 3.7 support
  * Bumped meson version requirement from 0.53.0 to 0.56.0
  * Various cairo dependency updates for the Windows wheel build
  * Various code cleanups :pr:`306`
  * Added Python 3.12 Windows wheels

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=24
2023-07-25 18:30:53 +00:00
62ccf79619 Accepting request 1084408 from devel:languages:python
Forwarded request #1084387 from dirkmueller

- Switch to single spec version build for PSP

OBS-URL: https://build.opensuse.org/request/show/1084408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=11
2023-05-04 15:09:05 +00:00
2ff381450f Accepting request 1084387 from home:dirkmueller:acdc:as_python3_module
- Switch to single spec version build for PSP

OBS-URL: https://build.opensuse.org/request/show/1084387
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=22
2023-05-03 14:42:41 +00:00
5d480057fd Accepting request 1041746 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1041746
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=10
2022-12-10 20:17:26 +00:00
0cbcbd7100 Accepting request 1041225 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.23.0 
  * Reminder to distro packagers: Building/installing pycairo using setup.py is deprecated, please use meson instead.
  * git: changed default branch from “master” to “main”
  * Windows: Update the cairo version included in the wheels from 1.17.2 to 1.17.6 #pr-243
  * docs: Document how to look up pycairo headers without loading the module #pr-300
  * tests: don’t error out if cairo wasn’t built with all features #pr-293
  New APIs:
  * Status.DWRITE_ERROR #pr-294
  * Format.RGB96F, Format.RGBA128F #pr-295
  * PDFVersion.VERSION_1_6, PDFVersion.VERSION_1_7 #pr-296
  * HAS_DWRITE_FONT #pr-297
  * Context.set_hairline(), Context.get_hairline() #pr-298
  * PDFSurface.set_custom_metadata() #pr-299

OBS-URL: https://build.opensuse.org/request/show/1041225
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=20
2022-12-09 00:19:14 +00:00
4364f26194 Accepting request 1038683 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1038683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=9
2022-11-29 09:52:26 +00:00
5351e6371f Accepting request 1038671 from home:dimstar:Factory
- Updtae to version 1.22.0:
  * Officially support Python 3.11.
  * PDFSurface.version_to_string(): Fix crash with negative
    versions.
  * typing: ImageSurface.get_stride() returns an int.
  * typing: Fix incorrect interface for Matrix constructor.
  * typing: Use Generic for Context.
  * docs: some cairo.Context fixes.
  * docs: try to make create_from_png/write_to_png more clear.
  * docs: add an example for how to convert a surface to pillow.
  * docs: cairo.Format.RGB24: document that unused bytes may be
    overwritten.
  * tests: don’t depend on specific ref counts.
  * tests: compatibility fixes for cairo 1.17.6.
- Drop f5a795ea.patch: fixed upstream.

OBS-URL: https://build.opensuse.org/request/show/1038671
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=18
2022-11-28 13:34:19 +00:00
a7dff60227 Accepting request 1003719 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1003719
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=8
2022-09-21 12:39:57 +00:00
8c6a0f3b8d Accepting request 1003355 from home:iznogood:factory
- Update to version 1.21.0:
  * Require Python 3.7+
  * Require meson 0.53+
  * Using setup.py directly to build/install pycairo is deprecated.
    Use meson instead.
  * setup.py now requires setuptools. Previously it was optional.
  * The complete API reference is now included in the typing stubs,
    so it can be consumed/shown by IDEs.
- Add f5a795ea.patch: Some test improvements for cairo 1.17.6

OBS-URL: https://build.opensuse.org/request/show/1003355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=16
2022-09-15 07:47:38 +00:00
f6dcfc8e32 Accepting request 989819 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/989819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=7
2022-08-04 11:23:08 +00:00
dea75cdaf6 Accepting request 989741 from home:bnavigator:branches:devel:languages:python
- Work around vendored distutils in setuptools >= 60 incorrectly
  installing pkgconfig files into the wrong libdir
- Deduplicate files in python_sitearch

OBS-URL: https://build.opensuse.org/request/show/989741
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=14
2022-07-18 08:27:27 +00:00
Richard Brown
ca656a7b6c Accepting request 911580 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/911580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=6
2021-08-16 08:08:33 +00:00
96870147f6 Accepting request 911556 from home:fcrozat:branches:devel:languages:python
- Add Obsoletes/Provides for python3-cairo-devel.

OBS-URL: https://build.opensuse.org/request/show/911556
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=13
2021-08-12 11:49:08 +00:00
7f48a8a8ed Accepting request 906780 from devel:languages:python
- update to 1.20.1
  * setup.py: Respect the PKG_CONFIG environment variable
  * Make import_cairo inline in addition to static
  * docs: Fix example in Pattern.set_filter() docs _pr_`221`
  * docs: Fix build with newer sphinx
  * docs: Fix NumPy width, height-conventions in examples
  * docs: Last parameter of rel_curve_to should be dy3, not dy4
  * mypy: Fixes for mypy 0.800+
  * mypy: Don't run mypy via pytest

OBS-URL: https://build.opensuse.org/request/show/906780
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=5
2021-07-21 17:05:31 +00:00
23b028738d - update to 1.20.1
* setup.py: Respect the PKG_CONFIG environment variable
  * Make import_cairo inline in addition to static
  * docs: Fix example in Pattern.set_filter() docs _pr_`221`
  * docs: Fix build with newer sphinx
  * docs: Fix NumPy width, height-conventions in examples
  * docs: Last parameter of rel_curve_to should be dy3, not dy4
  * mypy: Fixes for mypy 0.800+
  * mypy: Don't run mypy via pytest

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=12
2021-07-17 07:01:29 +00:00
84454b8e65 Accepting request 852941 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/852941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=4
2020-12-05 19:35:07 +00:00
0001dfefce Accepting request 852937 from home:bnavigator:branches:devel:languages:python
- Update to 1.20.0
  * Require Python 3.6+ #pr-201
  * Require cairo 1.15.10+ #pr-204
  * docs: support Sphinx 3.0 #pr-207
  * meson: add ‘tests’ option to skip tests #pr-188
  * Windows: build wheels #pr-197
  * Add support for Python 3.9 and 3.10 #pr-198 #pr-202
  * examples: add a Jupyter Notebook example #pr-181
  * Raise an error early when being passed a file object not opened
    in binary mode #pr-205
  * Add a pyproject.toml file #pr-206
- move header file in sitearch to devel package (rpmlint error)
  header is packaged twice: gh#pygobject/pycairo#98
- Move the pkgconfig file to the common package
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/852937
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=10
2020-12-03 16:51:03 +00:00
6f22ac5b5e Accepting request 785536 from devel:languages:python
- Add missing dep on setuptools

- Update to 1.19.1:
  * support for new python
  * remove support for python 2.x
- Remove patch python38.patch

OBS-URL: https://build.opensuse.org/request/show/785536
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=3
2020-04-19 19:40:52 +00:00
Tomáš Chvátal
88c288fb19 - Add missing dep on setuptools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=8
2020-03-16 09:47:23 +00:00
Tomáš Chvátal
06d84c90f3 - Update to 1.19.1:
* support for new python
  * remove support for python 2.x
- Remove patch python38.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=7
2020-03-16 09:37:19 +00:00
cd605b2380 Accepting request 735641 from devel:languages:python
- Add patch to fix build on python 3.8:
  * python38.patch

OBS-URL: https://build.opensuse.org/request/show/735641
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=2
2019-11-22 09:18:51 +00:00
Tomáš Chvátal
765e3efbd8 - Add patch to fix build on python 3.8:
* python38.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=5
2019-10-07 09:08:28 +00:00
539361c744 Accepting request 704551 from devel:languages:python
- Update to version 1.18.1
- Rename to python-pycario to conform to python package naming guidelines
- Expand summaries and descriptions.
- Fix typos
- Fixed conflicts with old python-cario-common-devel

OBS-URL: https://build.opensuse.org/request/show/704551
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=1
2019-06-18 12:42:39 +00:00
Todd R
b012c10281 Accepting request 704550 from home:TheBlackCat:branches:devel:languages:python
- Fixed conflicts with old python-cario-common-devel

OBS-URL: https://build.opensuse.org/request/show/704550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=3
2019-05-21 20:23:40 +00:00
Todd R
34c351d932 Accepting request 704525 from home:TheBlackCat:branches:devel:languages:python
- Fix typos

OBS-URL: https://build.opensuse.org/request/show/704525
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=2
2019-05-21 16:29:43 +00:00
Todd R
3a28e29992 Accepting request 704065 from home:TheBlackCat:branches:devel:languages:python
- Update to version 1.18.1- Rename to python-pycario to conform to python package naming guidelines
- Expand summaries and descriptions.

OBS-URL: https://build.opensuse.org/request/show/704065
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=1
2019-05-19 16:52:28 +00:00
5 changed files with 47 additions and 22 deletions

View File

@@ -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)

Binary file not shown.

3
pycairo-1.28.0.tar.gz Normal file
View File

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

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
#
# 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
# 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.26.1
Version: 1.28.0
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}
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module meson-python}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: cairo-devel >= 1.15.10
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -74,28 +74,32 @@ packages that depend on Pycairo.
%autosetup -n pycairo-%{version} -p1
%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
%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 meson install -C build.$python --destdir %{buildroot}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
%python_exec setup.py test
mv cairo cairo-do-not-import-from
%pytest_arch
mv cairo-do-not-import-from cairo
%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-*.egg-info
%{python_sitearch}/pycairo-%{version}.dist-info
%files %{python_files devel}
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1