CVS commit: pkgsrc/graphics/py-svglib
"Adam Ciarcinski" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: pkgsrc Committed By: adam Date: Thu Aug 20 05:40:44 UTC 2026 Modified Files: pkgsrc/graphics/py-svglib: Makefile distinfo Log Message: py-svglib: updated to 2.2.0 2.2.0 (2026-08-14) Tooling and housekeeping - Modernized type annotations across `src/svglib/` and `tests/` to use PEP 585 builtin generics (`list[...]`, `dict[...]`, `tuple[...]`, `set[...]`) instead of `typing.List`/`Dict`/`Tuple`/`Set`, and simplified a few emptiness/membership checks (`not points` instead of `len(points) == 0`, a set literal instead of a list for `in` checks). No behavior change. - Silenced a `UserWarning` from `test_convert_pdf_png` that came from ReportLab's own `renderPM.drawImage`, not from svglib: it reopens a `<image>` file referenced by path and converts it straight to RGB without normalizing palette-with-transparency PNGs first, unlike svglib's own handling of base64-embedded images. The referenced PNG (a dedicated tRNS-chunk test fixture) still renders correctly; there was nothing to fix in svglib's output. Fixed - `font-size` no longer has `PX_TO_PT` applied twice. The viewport group already carries the conversion, but `String.fontSize` and the advance widths used to position text fragments were converted to points as well. Text therefore rendered at 0.75x the size of the geometry in the same document, and multi-`tspan` runs were laid out in the wrong unit. Both now stay in user units, like every other coordinate below the transform. `String.fontSize` in the shape tree is in user units accordingly; multiply by the enclosing group's transform to get the rendered size. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 pkgsrc/graphics/py-svglib/Makefile cvs rdiff -u -r1.3 -r1.4 pkgsrc/graphics/py-svglib/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
(unnamed)
(text/x-diff, 1.5 KB)
Modified files:
Index: pkgsrc/graphics/py-svglib/Makefile
diff -u pkgsrc/graphics/py-svglib/Makefile:1.4 pkgsrc/graphics/py-svglib/Makefile:1.5
--- pkgsrc/graphics/py-svglib/Makefile:1.4 Sun Aug 9 11:04:40 2026
+++ pkgsrc/graphics/py-svglib/Makefile Thu Aug 20 05:40:44 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2026/08/09 11:04:40 adam Exp $
+# $NetBSD: Makefile,v 1.5 2026/08/20 05:40:44 adam Exp $
-DISTNAME= svglib-2.1.0
+DISTNAME= svglib-2.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/svglib/}
Index: pkgsrc/graphics/py-svglib/distinfo
diff -u pkgsrc/graphics/py-svglib/distinfo:1.3 pkgsrc/graphics/py-svglib/distinfo:1.4
--- pkgsrc/graphics/py-svglib/distinfo:1.3 Sun Aug 9 11:04:40 2026
+++ pkgsrc/graphics/py-svglib/distinfo Thu Aug 20 05:40:44 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2026/08/09 11:04:40 adam Exp $
+$NetBSD: distinfo,v 1.4 2026/08/20 05:40:44 adam Exp $
-BLAKE2s (svglib-2.1.0.tar.gz) = 8bf9f864acd79b4968beb3faeae1f33223e44de7adf6c1f4c8627791bf0bb3b6
-SHA512 (svglib-2.1.0.tar.gz) = c2b06501e8d70ce840d9390f71ed5676eb12e5ba6619b5eeb76db00f047cb16493c2e7cc36d98db9463dcd8289c797be181cca9c46ae6c52aff49b27c2b12d03
-Size (svglib-2.1.0.tar.gz) = 1371234 bytes
+BLAKE2s (svglib-2.2.0.tar.gz) = 7d982f30c746e4bd4cf40ad338eb2a6bd07a58dc90255d6d3437589427aae121
+SHA512 (svglib-2.2.0.tar.gz) = b5c3927e25e7d21700b159acfa1ae34a211682d4eebf153886691eef353f30c51e63f1fd7d6103c542f7ffa8e8e5ea9d9bdb99caeb59003534ab550c1935ff1b
+Size (svglib-2.2.0.tar.gz) = 1373629 bytes