Skip to content

Commit 17799d4

Browse files
committed
release
1 parent daaf3ce commit 17799d4

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

NEWS

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
Since version 1.11.0 Pycairo uses `Semantic Versioning <http://semver.org/>`__
22

3+
.. _v1.28.0:
4+
5+
1.28.0 - 2025-04-14
6+
-------------------
7+
8+
* Changes:
9+
* Remove hypothesis test dependency :pr:`398`
10+
* Updated cairo in Windows wheels from 1.18.2 to 1.18.4 :pr:`393`
11+
* Release the input buffer passed to :meth:`ImageSurface.create_for_data`
12+
when calling :meth:`Surface.finish` already, not just when the underlying
13+
surface is destroyed :pr:`405` :bug:`392`
14+
* Return a :class:`PathDataType` (:class:`int` subtype) instead of
15+
:class:`int` with :meth:`Path.__iter__` :pr:`410`. This was missed in the
16+
1.13.0 enum change.
17+
* Emit a :class:`DeprecationWarning` in case :meth:`ImageSurface.get_data`
18+
is called on an already finished surface :pr:`400` :pr:`412`. In a future
19+
version this will raise an exception instead.
20+
* Emit a :class:`DeprecationWarning` for the undocumented ``num_glyphs``
21+
parameter in :meth:`Context.glyph_extents`, :meth:`Context.glyph_path`,
22+
:meth:`Context.show_glyphs`, :meth:`ScaledFont.glyph_extents` :pr:`409`
23+
* Fixes:
24+
* Remove the executable bit from `cairo/__init__.py` :pr:`383`
25+
* Remove usage of removed ``typing.ByteString`` to fix compatibility with
26+
Python 3.14.0a1 :pr:`389`
27+
* docs: Fix pygame integration example using the wrong format :pr:`411`
28+
* Typing fixes (no API changes, just type annotations):
29+
* Include `os.PathLike` for parameters accepting file paths :pr:`401`
30+
* For :meth:`ImageSurface.create_for_data` include all writable buffer types
31+
and not just :class:`memoryview` :pr:`402`
32+
* Add missing `Optional` for :meth:`Surface.set_mime_data`,
33+
:meth:`SVGSurface.__init__` :meth:`PDFSurface.__init__`,
34+
:meth:`PSSurface.__init__`, :meth:`RecordingSurface.__init__` :pr:`404`
35+
* Add various missing :class:`Path` dunder methods like `__iter__`,
36+
`__eq__`, `__lt__`, etc. :pr:`408`
37+
* Add missing `__getitem__` and `__mul__` for :class:`Matrix` :pr:`408`
38+
339
.. _v1.27.0:
440

541
1.27.0 - 2024-09-06

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project(
22
'pycairo', 'c',
3-
version: '1.27.1',
3+
version: '1.28.0',
44
meson_version: '>= 0.64.0',
55
license: 'LGPL-2.1-only OR MPL-1.1',
66
default_options: [

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pycairo"
3-
version = "1.27.1"
3+
version = "1.28.0"
44
description = "Python interface for cairo"
55
readme = "README.rst"
66
requires-python = ">=3.9"

0 commit comments

Comments
 (0)