Pycairo

Latest version: v1.27.0

Safety actively analyzes 688823 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 11

1.15.4

-------------------

Fixes:
* Fix some enum conversation errors with (unused) large and negative values.
:pr:`81`

Tests:
* Fix a rare test error :pr:`80` (:user:`Sergei Trofimovich <trofi>`)

1.15.3

-------------------

Fixes:
* setup.py: Install pkgconfig file into /usr/share/pkgconfig to work around
JHBuild on Fedora not picking it up.
* Fix tests on big endian machines. :bug:`75`
* Support building with MSVC :pr:`72` (:user:`Chun-wei Fan <fanc999>`)

Tests:
* Test MSVC builds on appveyor

1.15.2

-------------------

Fixes:
* setup.py: Install pkgconfig file to the same library prefix that Python
uses. (/usr/lib64 instead of /usr/lib under Fedora for example) :bug:`70`
:pr:`71` (:user:`Sander Sweers <infirit>`)

1.15.1

-------------------

Fixes:
* Improved support for Python filesystem paths including
:class:`os.PathLike`. See :class:`_PathLike` for details.
* Various minor fixes

Changes:
* Expose :class:`cairo.Path`

Tests:
* Improved test coverage from ~70% to ~90%

1.15.0

-------------------

New Features:
* Add :meth:`Surface.map_to_image` and :meth:`Surface.unmap_image` :bug:`51`
* Add :class:`RasterSourcePattern` :bug:`48`
* Add :class:`Glyph` :bug:`53`
* Add :class:`Rectangle` :bug:`54`
* Add :class:`TextCluster` :bug:`61`
* Add :meth:`ScaledFont.text_to_glyphs` and :meth:`ScaledFont.glyph_extents`
* Add :meth:`Context.show_text_glyphs`
* Add :class:`TextExtents` :bug:`62`

Changes:
* Pycairo instances wrapping the same underlying cairo object now hash and
compare equally e.g. ``context.get_target() == context.get_target()``
* Functions which returned a cairo error with :attr:`Status.NO_MEMORY` no
longer raise :exc:`python3:MemoryError`, but a subclass of :exc:`Error`
and :exc:`python3:MemoryError`. Similarly errors with
:attr:`Status.READ_ERROR` and :attr:`Status.WRITE_ERROR` no longer raise
:exc:`python3:IOError`, but a subclass of :exc:`Error` and
:exc:`python3:IOError`. :bug:`55`
* Some functions which previously returned a tuple now return a tuple
subclass like :class:`Rectangle`, :class:`Glyph`, :class:`TextCluster` and
:class:`TextExtents`

1.14.1

-------------------

Fixes:
* Fix a crash with :meth:`Surface.get_device` :bug:`57`

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.