|
1 | 1 | Since version 1.11.0 Pycairo uses `Semantic Versioning <http://semver.org/>`__ |
2 | 2 |
|
| 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 | + |
3 | 39 | .. _v1.27.0: |
4 | 40 |
|
5 | 41 | 1.27.0 - 2024-09-06 |
|
0 commit comments