1
0

27 Commits

Author SHA256 Message Date
082bb9b185 Accepting request 1328178 from devel:languages:python
Depends on:
 - New python-Pillow: sr#1328176
 - New python-tinycss2: sr#1328174

- Update to 68.0 (bsc#1256936, CVE-2025-68616):
  # Security
  * Always use URL fetcher for HTTP redirects
  # Python API
  * default_url_fetcher() is deprecated, use the new URLFetcher class
    instead, see URL Fetchers for more information about URL fetchers
  * DocumentMetadata.generate_rdf_metadata is now a method that can be
    overridden instead of a parameter, see Factur-X / ZUGFeRD
    (Electronic Invoices) for examples to create e-invoices
  # Features
  * #2609, #2603, #351: Refactor URL fetcher API
  * #2632: Support legacy 0 value for angles
  * #2627: Add font-face support to SVG
  * #2646, #2255: Add font shorthand support for SVG text elements
  * #2590, #1749: Honor language-specific rules for text-transform
  * #2645, #2613: Improve SVG and SVG emojis rendering
  * #2658, #2583: Add CLI for Factur-X / ZUGFeRD e-invoices
  # Bug fixes
  * #2649: Refactor URL fetcher API
  * #2643, #2628: Handle box-sizing: border-box in grid layout
  * #2641, #1875: Process whitespace after checking all pending targets
  * #2488, #2485: Preserve page groups during layout repagination
  * #2642, #2631: Don’t use isolated transparency groups
  * #2637: Fix repeating radial gradients rendering
  * #2622: Fix validation of colors
  * #2626: Share grid items rendering advancement between a box and its copies
  * #2621: Correctly handle fallback values of attr()
  * #2619: Fix SVG fonts
  * #2629: Always define extra skip height that may be used after
  * #2648: Fix numbers validation in font-feature-settings

OBS-URL: https://build.opensuse.org/request/show/1328178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=21
2026-01-21 13:15:11 +00:00
6286569ce7 - Update to 68.0 (bsc#1256936, CVE-2025-68616):
# Security
  * Always use URL fetcher for HTTP redirects
  # Python API
  * default_url_fetcher() is deprecated, use the new URLFetcher class
    instead, see URL Fetchers for more information about URL fetchers
  * DocumentMetadata.generate_rdf_metadata is now a method that can be
    overridden instead of a parameter, see Factur-X / ZUGFeRD
    (Electronic Invoices) for examples to create e-invoices
  # Features
  * #2609, #2603, #351: Refactor URL fetcher API
  * #2632: Support legacy 0 value for angles
  * #2627: Add font-face support to SVG
  * #2646, #2255: Add font shorthand support for SVG text elements
  * #2590, #1749: Honor language-specific rules for text-transform
  * #2645, #2613: Improve SVG and SVG emojis rendering
  * #2658, #2583: Add CLI for Factur-X / ZUGFeRD e-invoices
  # Bug fixes
  * #2649: Refactor URL fetcher API
  * #2643, #2628: Handle box-sizing: border-box in grid layout
  * #2641, #1875: Process whitespace after checking all pending targets
  * #2488, #2485: Preserve page groups during layout repagination
  * #2642, #2631: Don’t use isolated transparency groups
  * #2637: Fix repeating radial gradients rendering
  * #2622: Fix validation of colors
  * #2626: Share grid items rendering advancement between a box and its copies
  * #2621: Correctly handle fallback values of attr()
  * #2619: Fix SVG fonts
  * #2629: Always define extra skip height that may be used after
  * #2648: Fix numbers validation in font-feature-settings

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=46
2026-01-20 07:15:19 +00:00
d10e43d83a Accepting request 1304340 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1304340
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=20
2025-09-12 19:10:48 +00:00
de0b258201 - Update to 66.0
* #2475: Add support for 'lh' and 'rlh' units
  * #2432, #2437: Report footnotes when text overflows because of orphans,
    with financial support from Code & Co.
  * #2256, #2466: Handle transform-origin in SVG
  * #2445: Add parameter to have additional HTTP headers for url_fetcher
  * #2471, #2506, #2500, #2460, #2363, #2470, #1872, #2153, #1838, #1837,
    #1784, #1835, #2444, #2497, #2505, #2503, #1836, #2467: Improve PDF/UA
    support, with financial support from NLnet
  * #2425, #1557: Improve position of outside markers
  * #2409, #2265: Draw circles instead of rectangles when drawing dotted borders
  * #2416, #2270: Correctly split words for automatic hyphenation
  * #2439, #2426: Don’t rely on URL protocols outside URL fetcher function
  * #2433: Disable style for deprecated outline algorithm
  * #2447, #2441, #2448: Improve min- and max-content calculation,
    with financial support from Menutech
  * #2454, #2442, #2449: Minor fixes for flex layout
  * #2473, #2459: Include out-of-flow boxes in page layout progress,
    with financial support from Pathfindr
  * #2458: Replace deprecated warn logger function
  * #2494, #1856: Fix bug with bottom margins in columns
  * #2435: Make footnote calls inherit from footnotes
  * #2484, #2456: Allow to avoid page breaks after table-row-group elements
  * #2450: Draw background and borders for relative grid containers
  * #2453: Don’t advance position_y for collapsed margins of discarded children
  * #2493: Fix endless loop with CSS variables referencing each other
  * #2502: Ignore bottom margin when calculating footnote overflow

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=44
2025-09-12 15:39:51 +00:00
7179e10f1f Accepting request 1278844 from devel:languages:python
Forwarded request #1278687 from glaubitz

- Update to 65.1
    * #2414: Correctly handle flex columns split between pages
    * 1b24ad9: Include padding in outer size of item elements
    * #2419: Set main tag as block by default
    * #2415: Fix support of replaced block box as flex items
    * 83da2fe0: Fix margins and padding for rtl lists
    * #2429, #1076, #2431: Fix page groups
  - Bump cssselect2_min_version to 0.8.0

OBS-URL: https://build.opensuse.org/request/show/1278844
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=19
2025-05-20 20:46:00 +00:00
f6cf8041aa - Update to 65.1
* #2414: Correctly handle flex columns split between pages
  * 1b24ad9: Include padding in outer size of item elements
  * #2419: Set main tag as block by default
  * #2415: Fix support of replaced block box as flex items
  * 83da2fe0: Fix margins and padding for rtl lists
  * #2429, #1076, #2431: Fix page groups
- Bump cssselect2_min_version to 0.8.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=42
2025-05-20 14:46:05 +00:00
583c40f83b Accepting request 1252394 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1252394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=18
2025-03-12 14:27:41 +00:00
00424f68c6 - Update to 64.1
* #2368: Fix ascent and descent font values
  * #2370: Avoid endless recursion for variables in nested functions
  * #2275: Use correct containing block to render waiting children
  * #2375: Ensure that we handle text-anchor only on text content elements
  * #2090: Only create font temporary folder when adding fonts
  * #2383: Fix grid-template-areas validation and allow uppercase
    identifiers for grid lines

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=40
2025-03-10 18:49:06 +00:00
424512cb33 Accepting request 1244903 from devel:languages:python
- update to 64.0:
  * #2338: Allow custom RDF metadata for PDF/A and eInvoices
  * #123, #2345: Handle small-caps synthesis
  * #2343: Support outline-offset
  * #2361: Support text-underline-offset and text-decoration-
    thickness
  * #2296: Don’t crash with tables with rounded corners split
    between pages
  * #2360: Fix gradients with non-RGB colors
  * #2355, #2358: Align png emojis to the surrounding text
  * #2353: Fix alignment of SVG text with multiple nested text-
    anchor values
  * #2350: Fix logging restoration in capture_logs
  * #2341: Fix page groups
  * #2314: Use CSS 'image-rendering' attribute for images in SVGs
  * #2332: Fix opacity for translated SVG elements
  * #2329: Refactor text.line_break.get_log_attrs
  * #2325, #2326: Fix table overflow edge cases
  * #2347, #2364: Improve rendering speed for text
  * #2352: Add more use cases in documentation, use Furo theme

OBS-URL: https://build.opensuse.org/request/show/1244903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=17
2025-02-11 20:23:57 +00:00
4f732b3068 - update to 64.0:
* #2338: Allow custom RDF metadata for PDF/A and eInvoices
  * #123, #2345: Handle small-caps synthesis
  * #2343: Support outline-offset
  * #2361: Support text-underline-offset and text-decoration-
    thickness
  * #2296: Don’t crash with tables with rounded corners split
    between pages
  * #2360: Fix gradients with non-RGB colors
  * #2355, #2358: Align png emojis to the surrounding text
  * #2353: Fix alignment of SVG text with multiple nested text-
    anchor values
  * #2350: Fix logging restoration in capture_logs
  * #2341: Fix page groups
  * #2314: Use CSS 'image-rendering' attribute for images in SVGs
  * #2332: Fix opacity for translated SVG elements
  * #2329: Refactor text.line_break.get_log_attrs
  * #2325, #2326: Fix table overflow edge cases
  * #2347, #2364: Improve rendering speed for text
  * #2352: Add more use cases in documentation, use Furo theme

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=38
2025-02-10 21:55:36 +00:00
4888a16a38 Accepting request 1224880 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1224880
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=16
2024-11-18 19:02:35 +00:00
d6c9084bdd - Fix runtime requirements (bsc#1233406)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=36
2024-11-18 13:46:40 +00:00
6722145fcb Accepting request 1221499 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1221499
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=15
2024-11-06 15:51:34 +00:00
04e394f8f2 - Update to 63.0
* #2252, #895: Handle page groups, with financial support from Code & Co.
  * #1630, #2286: Support CSS Color Level 4
  * #2192: Add PDF variant for debugging purpose
  * #2208: Support submit inputs in PDF forms
  * #2139: Support mask-border-* properties
  * #1831, #2143: Support radio inputs in PDF forms
  * #2262: Avoid integer overflows when converting units from/to doubles
  * #2260: Avoid float collision with box establishing formatting context
  * #2240, #2242: Handle svg tags with no size
  * #2231, #1171, #2222, #1208: Fix several problems related to flex-direction: column
  * #2239: Don’t fail when SVG markers are undefined references
  * #2230, #2238: Set explicit flags when loading DLLs on Windows
  * #2228, #1942: Store original and PDF stream images in different cache slots
  * #2234: Apply stylesheet and other basic operations to SVG root tag
  * #2054, #2233: Keep auto margins on flex layout boxes
  * #1883: Don’t crash with empty list marker strings
  * #2216: Fix vertical alignment of out-of-flow elements in tables
  * #996, #2219: Don’t ignore absolutely positioned elements inside flex boxes
  * #2217: Don’t crash with normal column gaps
  * #1817: Don’t assume that lines break after spaces
  * #1868: Don’t break rows with atomic cells
  * #2166: Don’t display bottom border on cells in split rows
  * 61852c4: Capture fontTools logs when subsetting fonts
  * #2190: Don’t use a pattern when drawing backgrounds for no-repeat background images
  * #2185: Check that Harfbuzz version is at least 4.1.0 to subset fonts
  * #2180: Store width for all glyphs when font is not subset
  * #2183: Respect break-inside: avoid for flex items
  * #2055, #2058: Fix right-to-left tables with collapsed borders
  * #2179, #1128: Handle buggy Adobe Photoshop CMYK JPEGs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=34
2024-11-05 15:37:24 +00:00
12840de65d Accepting request 1184080 from devel:languages:python
- update to 62.3:
  * #2174: Fix extra width distribution for auto table layout
  * #2175: Don’t compress PDF metadata for PDF/A-1
  * Set default PDF variant values in options before
    generating PDF
  * Avoid PDF artifacts when drawing 0-width borders
  * Don’t duplicate column when container is split on
    multiple pages
  * Don’t set default Fontconfig values for unset
    properties
  * Fix layout when all footnotes are removed from the
    footnote area
  * Make items overflowing grid wrap to the next
    row/column
  * Don’t append useless tracks when grid elements are
    positioned

OBS-URL: https://build.opensuse.org/request/show/1184080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=14
2024-07-01 09:21:02 +00:00
d0049cbd72 Accepting request 1179673 from devel:languages:python
- update to 62.2:
  * #2142, #2162: Support grid-auto-flow: column, with financial
    support from Menutech
  * #2167: Fix space added by CSS gap at the end
  * #2134: Remove absolute placeholders from discarded content
  * #2154: Don’t crash when grid items have auto margins
  * 8cdd66f: Fix CSS nesting for nested selectors with comma
  * 3359db5: Fix and test grid shorthand
  * 82deda4: Fix wrong resume_at for split floats
  * ff2acf1: Ensure that gradient size is positive to please some
  * #2144, #2149: Avoid broken fonts when generating multiple
    documents
  * c10c6892: Display at least one grid row on empty pages
  * #2146: Don’t crash when flex container’s parent’s height is
    auto
  * Python 3.9+ is now needed, Python 3.7 and 3.8 are not
    supported anymore
  * pydyf 0.10.0+ is now needed
  * tinycss2 1.3.0+ is now needed
  * Features:
  * #543, #2121: Support CSS Grid layout
  * #2124, #2125: Support border-image-* properties
  * #2084, #2077: Support CSS nesting
  * #2101: Support HTML maxlength attribute for form fields
  * #2095: Apply overflow to replaced boxes
  * 245e4f5: Add support of PDF/A-?u
  * Bug fixes:
  * #2136: Don’t clip aligned text in SVG
  * #2135: Allow column-direction flex containers to use
    percentage-based heights

OBS-URL: https://build.opensuse.org/request/show/1179673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=13
2024-06-10 15:38:22 +00:00
60d297fd45 Accepting request 1158533 from devel:languages:python
- update to 61.2:
  * Security:
    * Always use URL fetcher for attachments
  * #2075: Use default value when variable is not defined
  * #2070: Don’t crash when rendering SVGs with non-text a
    children
  * Don’t crash when SVG file can’t be rendered
  * Documentation:
  * #2067: Suggest "dnf" instead of "yum" to install Fedora
    packages
  * Improve documentation for Windows
  * Fix required version of TinyCSS2
  * #1219, #2017: Support var() in shorthand and multiple-value
    functions
  * #1986: Support percentages for opacity
  * #2050: Build executable file for Windows
  * #2000: Support select fields
  * #1993: Handle background-attachment: fixed to cover the whole
    page
  * #2023, #2022: Allow text-based file objects for HTML and CSS
    classes
  * #2014: Remove warnings for PDF/A and PDF/UA compatibility
  * Bug fixes:
  * #2052, #1869: Handle attachments for PDF/A documents
  * #2013, #2051: Apply margin to running tables
  * #1278, #1884: Draw collapsed borders of running tables
  * #2029: Fix page counter in non-root absolute boxes
  * #2043: Fix text-anchor on SVG tspan elements
  * #1968, #2039: Use cell's border-height to calculate table row
    height

OBS-URL: https://build.opensuse.org/request/show/1158533
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=12
2024-03-17 21:15:45 +00:00
606410cfdf Accepting request 1138102 from devel:languages:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1138102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=11
2024-01-11 20:05:37 +00:00
a79ab20366 Accepting request 1135635 from devel:languages:python
- update to 60.2:
  * Fix SVG markers size, position and drawing
  * Draw background behind absolutely positioned replaced boxes
  * Don’t crash with bitmap fonts with no "glyf" table
  * Improve SVG text-anchor attribute
  * Fix crash caused by wrong UTF-8 indices
  * Print form fields
  * Add support for textLength and lengthAdjust in SVG text
    elements
  * Handle <wbr> tag
  * Handle y offset of glyphs
  * Add a --timeout option
  * Bug fixes:
  * Fix footnote-call displayed incorrectly for some fonts
  * Fix page-margin boxes layout algorithm
  * Fix IndexError when rendering PDF version 1.4
  * Apply text transformations to first-letter pseudo elements
  * Avoid footnote appearing before its call
  * Fix balance before "column-span: all"
  * Only draw required glyph with OpenType-SVG fonts
  * Don’t draw clipPath when defined after reference
  * Don’t ignore min-width when computing cell size
  * Fix named pages inheritance
  * Avoid page breaks caused by children of overflow hidden boxes
  * Use bleed area for page’s painting area
  * Use margin box of children to define available width for
    leaders

- Update to version 56.1
- Update to 55.0

OBS-URL: https://build.opensuse.org/request/show/1135635
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=10
2024-01-03 11:24:25 +00:00
b95d586ce6 Accepting request 1093786 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1093786
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=9
2023-06-20 14:48:19 +00:00
5ff5e6148f Accepting request 1093006 from devel:languages:python
- Update to 59.0:
  * New features:
    + a4fc7a1: Support image-orientation
  * Dependencies:
    + #1754: Pillow 9.1.0 is now needed
  * Bug fixes:
    + #1864: Handle overflow for svg and symbol tags in SVG images
    + #1867: Remove duplicate compression of attachments
    + d0ad5c1: Override use tag children instead of drawing their references
    + #1874: Drawn underline and overline behind text
    + #1822, #1823: Fix vertical positioning for absolute replaced elements
    + #1807: Don’t crash when out-of-flow box is split in out-of-flow parent
    + #1806: Don’t crash when fixed elements aren’t displayed yet in
      aborted line
    + #1809: Fix background drawing for out-of-the-page transformed boxes
    + #1764: Use reference instead of stream for annotation appearance stream
    + #1783: Fix multiple font weights for @font-face declarations
    + #1756: Fix rem font size for SVG images
    + #1755: Keep format when transposing images
    + #1753: Don’t use deprecated read_text function when files is available
    + #1741: Generate better manpage
    + #1747: Correctly set target counters in pages’ absolute elements
    + #1748: Always set font size when font is changed in line
    + #1739: Set baseline on all flex containers
    + #1740: Don’t crash when currentColor is set on root svg tag
    + #1718: Don’t crash with empty bitmap glyphs
    + #1736: Always use the font’s vector variant when possible
    + #1662: Use a stable key to store stream fonts
    + #1733: Don’t remove attachments when adding internal anchors
  * Performance:

OBS-URL: https://build.opensuse.org/request/show/1093006
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=8
2023-06-14 14:30:05 +00:00
da7652ffbe Accepting request 1001923 from devel:languages:python
- Update to version 56.1 
  * Support format 5 for bitmap glyphs
  * #1666: Fix reproducible PDF generation with embedded images
  * #1668: Fix @page:nth() selector
  * #1674: Follow max-height on footnot area, with financial support from Code & Co.
  * #1678: Fix gradients with opacity set

OBS-URL: https://build.opensuse.org/request/show/1001923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=7
2022-09-09 16:27:38 +00:00
93828cfd4b Accepting request 977518 from devel:languages:python
- Update to 55.0 
  Python 3.7 is now the minimum requirement
  - Features
    - #1534: Support word-break: break-all
    - #489, #1619: Support column breaks
    - #1553: Allow reproducible PDF generation
    - #1547: Handle break-inside: avoid on tr tags
  - Bugfixes
    - #1626, 3802f88: Fix the vertical position and available height of absolute boxes
    - 9641098, e5e6b88: Minor fixes for multi-column layout
    - 0fcc7de: Don’t stop rendering SVG when CSS parsing fails
    - #1636: Fix sequential footnotes that could disappear when overflowing
    - #1637: Fix position of absolute boxes with right-to-left direction
    - #1641: Fix relative paths for SVG files stored as data URLs
    - #1007, #1524: Handle inherit in shorthand properties
    - #1539, #1541: Space out no-repeat patterns
    - #1554: Avoid invalid PDF operators when drawing SVG text
    - #1564, #1566, #1570: Don’t output footnotes before their call sites
    - #1020, #1597: Prevent infinite loops in multi-column layout
    - #1512, #1613: Fix position of absolute boxes in right-to-left contexts
    - #1093: Draw borders around absolute replaced boxes
    - #984, #1604: Fix skip stacks for columns
    - #1621: Better support of nested text-decoration properties
    - fe1f3d9: Fix absolute blocks in lines
    - 4650b70: Clear adjoining margins when a container’s child doesn’t fit
    - #1588 Support position: absolute in footnotes
    - #1586 Fix discarded text-align values
    - #1575: Always store parent blocks children as lists
    - #1574, #1559: Fix float rounding errors
    - #1571: Ignore unknown glyphs
    - #1561, #1562: Fix line break when breaks occur between a nbsp and an inline block
    - #1560: Always set the child index
    - #1558: Fix patterns with use tags
    - #1540, #1239: Handle absolute children in running elements
    - #1538: Handle invalid values in text-align
    - #1536: Handle absolute flex boxes
  - Performance
    - #1548: Improve tests speed
    - 3b0ae92, #1457: Improve fonts management
    - #1597: Improve column layout speed
    - #1587, #1607, #1608: Cache ch and ex units calculations

OBS-URL: https://build.opensuse.org/request/show/977518
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=6
2022-05-16 16:08:56 +00:00
5c678ccdc2 Accepting request 947061 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/947061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=5
2022-01-17 21:34:33 +00:00
bc433c1ab6 Accepting request 942650 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/942650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=4
2021-12-27 15:07:12 +00:00
1331e90b69 Accepting request 941308 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/941308
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=3
2021-12-18 19:30:09 +00:00
65608c9d5c Accepting request 936290 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/936290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-weasyprint?expand=0&rev=2
2021-12-07 23:00:09 +00:00
4 changed files with 234 additions and 13 deletions

View File

@@ -1,3 +1,209 @@
-------------------------------------------------------------------
Tue Jan 20 06:29:53 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 68.0 (bsc#1256936, CVE-2025-68616):
# Security
* Always use URL fetcher for HTTP redirects
# Python API
* default_url_fetcher() is deprecated, use the new URLFetcher class
instead, see URL Fetchers for more information about URL fetchers
* DocumentMetadata.generate_rdf_metadata is now a method that can be
overridden instead of a parameter, see Factur-X / ZUGFeRD
(Electronic Invoices) for examples to create e-invoices
# Features
* #2609, #2603, #351: Refactor URL fetcher API
* #2632: Support legacy 0 value for angles
* #2627: Add font-face support to SVG
* #2646, #2255: Add font shorthand support for SVG text elements
* #2590, #1749: Honor language-specific rules for text-transform
* #2645, #2613: Improve SVG and SVG emojis rendering
* #2658, #2583: Add CLI for Factur-X / ZUGFeRD e-invoices
# Bug fixes
* #2649: Refactor URL fetcher API
* #2643, #2628: Handle box-sizing: border-box in grid layout
* #2641, #1875: Process whitespace after checking all pending targets
* #2488, #2485: Preserve page groups during layout repagination
* #2642, #2631: Dont use isolated transparency groups
* #2637: Fix repeating radial gradients rendering
* #2622: Fix validation of colors
* #2626: Share grid items rendering advancement between a box and its copies
* #2621: Correctly handle fallback values of attr()
* #2619: Fix SVG fonts
* #2629: Always define extra skip height that may be used after
* #2648: Fix numbers validation in font-feature-settings
* #2648: Fix keyword values for text-decoration-thickness
* #2661: Respect inline images when defining minimum table width
- 67.0:
# Features
* #2560, #640, #844, #1091, #2517: Support CMYK colors, PDF/X, color profiles and light-dark() function
* #2558, #1175: Support ::first-line, with financial support from Karte Technology
* #2552: Support CSS layers, with financial support from Code & Co.
* #2564, #2599, #2397: Allow page breaks in grid rows, with financial support from Ocean Recap
* #2568, #357: Support calc() and other mathematical functions
* #2575, #2574: Support PDF/A-1a, PDF/A-2a and PDF/A-3a
* #2611, #2573: Support PDF/A-4e and PDF/A-4f
* #2523: Display tofu for missing glyphs
* #2581: Add option to disable protocols in URL resolution
* #2570: Support rch, cap, rcap, rex, ic and ric font-relative units
* #2547, #2140: Support "only" keyword in media queries
# Bug fixes
* #2516, #1510: Fix rendering of first line of text with nested right float
* #2510, #1073, #2507: Avoid Pango crashes and font mismatches with @font-face rules referencing local fonts
* #2532, #2531: Use fonttools instancer instead of deprecated mutator API
* #2541: Fix syntax of functions
* #2543: Allow font-related units to access @font-face fonts
* #2525: Respect top margins and avoid overlapping footnotes for columns, with financial support from Code & Co.
* #2536: Remove Subtype key from font descriptor
* #2539: Fix min width for SVGs with intrinsic ratio but no intrinsic size
* #2537, #2533: Fix order of operators when drawing SVGs
* #2538: Dont crash with nested unknown functions
* #2542: Dont crash when lh and rlh are used for line height or font size
* #2540, #2528: Use locale encoding instead of filesystem encoding for font paths
* #2563, #2479: Dont avoid float collisions for atomic flex items
* #2569: Dont be case-sensitive for units
* #2567, #2566: Add x-default attribute for metadata description to be compliant with PDF/A
* #2586, #2571: Improve formatting contexts management
* #2600: Fix SVG image aspect ratio when only width or height is specified
* #2612, #2595: Clean block layout and fix corner cases
* #2522: Ignore preserveAspectRatio when SVG has no viewBox
* #2544: Allow to use a variable twice in a function
* #2555: Fix flex gap in right-to-left context
* #2591: Respect non-auto widths and fix padding of grid items
* #2601: Dont crash when tagged tables are not displayed as tables
* #2607: Fix rendering of multiline textareas with PDF forms
* #2106: Force variable initialization to avoid crashes during column layout
* #2618, #2617: Fix rendering of relative grid and flex items
-------------------------------------------------------------------
Fri Sep 12 14:38:56 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 66.0
* #2475: Add support for 'lh' and 'rlh' units
* #2432, #2437: Report footnotes when text overflows because of orphans,
with financial support from Code & Co.
* #2256, #2466: Handle transform-origin in SVG
* #2445: Add parameter to have additional HTTP headers for url_fetcher
* #2471, #2506, #2500, #2460, #2363, #2470, #1872, #2153, #1838, #1837,
#1784, #1835, #2444, #2497, #2505, #2503, #1836, #2467: Improve PDF/UA
support, with financial support from NLnet
* #2425, #1557: Improve position of outside markers
* #2409, #2265: Draw circles instead of rectangles when drawing dotted borders
* #2416, #2270: Correctly split words for automatic hyphenation
* #2439, #2426: Dont rely on URL protocols outside URL fetcher function
* #2433: Disable style for deprecated outline algorithm
* #2447, #2441, #2448: Improve min- and max-content calculation,
with financial support from Menutech
* #2454, #2442, #2449: Minor fixes for flex layout
* #2473, #2459: Include out-of-flow boxes in page layout progress,
with financial support from Pathfindr
* #2458: Replace deprecated warn logger function
* #2494, #1856: Fix bug with bottom margins in columns
* #2435: Make footnote calls inherit from footnotes
* #2484, #2456: Allow to avoid page breaks after table-row-group elements
* #2450: Draw background and borders for relative grid containers
* #2453: Dont advance position_y for collapsed margins of discarded children
* #2493: Fix endless loop with CSS variables referencing each other
* #2502: Ignore bottom margin when calculating footnote overflow
-------------------------------------------------------------------
Tue May 20 12:11:26 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 65.1
* #2414: Correctly handle flex columns split between pages
* 1b24ad9: Include padding in outer size of item elements
* #2419: Set main tag as block by default
* #2415: Fix support of replaced block box as flex items
* 83da2fe0: Fix margins and padding for rtl lists
* #2429, #1076, #2431: Fix page groups
- Bump cssselect2_min_version to 0.8.0
-------------------------------------------------------------------
Wed Mar 5 10:07:13 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 64.1
* #2368: Fix ascent and descent font values
* #2370: Avoid endless recursion for variables in nested functions
* #2275: Use correct containing block to render waiting children
* #2375: Ensure that we handle text-anchor only on text content elements
* #2090: Only create font temporary folder when adding fonts
* #2383: Fix grid-template-areas validation and allow uppercase
identifiers for grid lines
-------------------------------------------------------------------
Mon Feb 10 21:55:11 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 64.0:
* #2338: Allow custom RDF metadata for PDF/A and eInvoices
* #123, #2345: Handle small-caps synthesis
* #2343: Support outline-offset
* #2361: Support text-underline-offset and text-decoration-
thickness
* #2296: Dont crash with tables with rounded corners split
between pages
* #2360: Fix gradients with non-RGB colors
* #2355, #2358: Align png emojis to the surrounding text
* #2353: Fix alignment of SVG text with multiple nested text-
anchor values
* #2350: Fix logging restoration in capture_logs
* #2341: Fix page groups
* #2314: Use CSS 'image-rendering' attribute for images in SVGs
* #2332: Fix opacity for translated SVG elements
* #2329: Refactor text.line_break.get_log_attrs
* #2325, #2326: Fix table overflow edge cases
* #2347, #2364: Improve rendering speed for text
* #2352: Add more use cases in documentation, use Furo theme
-------------------------------------------------------------------
Mon Nov 18 09:24:08 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- Fix runtime requirements (bsc#1233406)
-------------------------------------------------------------------
Tue Nov 5 14:27:00 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 63.0
* #2252, #895: Handle page groups, with financial support from Code & Co.
* #1630, #2286: Support CSS Color Level 4
* #2192: Add PDF variant for debugging purpose
* #2208: Support submit inputs in PDF forms
* #2139: Support mask-border-* properties
* #1831, #2143: Support radio inputs in PDF forms
* #2262: Avoid integer overflows when converting units from/to doubles
* #2260: Avoid float collision with box establishing formatting context
* #2240, #2242: Handle svg tags with no size
* #2231, #1171, #2222, #1208: Fix several problems related to flex-direction: column
* #2239: Dont fail when SVG markers are undefined references
* #2230, #2238: Set explicit flags when loading DLLs on Windows
* #2228, #1942: Store original and PDF stream images in different cache slots
* #2234: Apply stylesheet and other basic operations to SVG root tag
* #2054, #2233: Keep auto margins on flex layout boxes
* #1883: Dont crash with empty list marker strings
* #2216: Fix vertical alignment of out-of-flow elements in tables
* #996, #2219: Dont ignore absolutely positioned elements inside flex boxes
* #2217: Dont crash with normal column gaps
* #1817: Dont assume that lines break after spaces
* #1868: Dont break rows with atomic cells
* #2166: Dont display bottom border on cells in split rows
* 61852c4: Capture fontTools logs when subsetting fonts
* #2190: Dont use a pattern when drawing backgrounds for no-repeat background images
* #2185: Check that Harfbuzz version is at least 4.1.0 to subset fonts
* #2180: Store width for all glyphs when font is not subset
* #2183: Respect break-inside: avoid for flex items
* #2055, #2058: Fix right-to-left tables with collapsed borders
* #2179, #1128: Handle buggy Adobe Photoshop CMYK JPEGs
* #2175: Dont compress PDF metadata for PDF/A-1
* #2174: Fix extra width distribution for auto table layout
* #1155: Improve rendering speed for large colspan values
* #2120, #2178: Use Harfbuzz to subset fonts by default
* #2282, #2284: Simplify Alpine install instructions
* #2254: Add warning about antivirus false detection
* #2220: Add extra information to debug logs
* #2211: Fix link to samples
* #2195: Update cache argument documentation
* #2105, #2151: Use MSYS2 instead of GTK+3 for Windows
- Update BuildRequires and Requires from pyproject.toml
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 30 08:16:19 UTC 2024 - Dirk Müller <dmueller@suse.com> Sun Jun 30 08:16:19 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-weasyprint # spec file for package python-weasyprint
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2026 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,18 +18,24 @@
%global brotli_min_version 1.0.1 %global brotli_min_version 1.0.1
%global cffi_min_version 0.6 %global cffi_min_version 0.6
%global cssselect2_min_version 0.1 %global cssselect2_min_version 0.8.0
%global fonttools_min_version 4.0.0 %global fonttools_min_version 4.0.0
%global html5lib_min_version 1.1 %global tinyhtml5_min_version 2.0.0
%global Pillow_min_version 9.1.0 %global Pillow_min_version 12.1.0
%global pypdf_min_version 0.10.0 %global pypdf_min_version 0.11.0
%global Pyphen_min_version 0.9.1 %global Pyphen_min_version 0.9.1
%global tinycss2_min_version 1.3.0 %global tinycss2_min_version 1.5.0
%global zopfli_min_version 0.1.4 %global zopfli_min_version 0.1.4
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-weasyprint Name: python-weasyprint
Version: 62.3 Version: 68.0
Release: 0 Release: 0
Summary: Python module to convert web documents to PDF Summary: Python module to convert web documents to PDF
License: BSD-3-Clause License: BSD-3-Clause
@@ -42,18 +48,23 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 39.2.0} BuildRequires: %{python_module setuptools >= 39.2.0}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
%endif
Requires: libgobject-2_0-0 Requires: libgobject-2_0-0
Requires: pango Requires: pango
Requires: python-Pillow >= %{Pillow_min_version} Requires: python-Pillow >= %{Pillow_min_version}
Requires: python-Pyphen >= %{Pyphen_min_version} Requires: python-Pyphen >= %{Pyphen_min_version}
Requires: python-base >= 3.7 Requires: python-base >= 3.9
Requires: python-cffi >= %{cffi_min_version} Requires: python-cffi >= %{cffi_min_version}
Requires: python-cssselect2 >= %{cssselect2_min_version} Requires: python-cssselect2 >= %{cssselect2_min_version}
Requires: python-html5lib >= %{html5lib_min_version}
Requires: python-pydyf >= %{pypdf_min_version} Requires: python-pydyf >= %{pypdf_min_version}
Requires: python-tinycss2 >= %{tinycss2_min_version} Requires: python-tinycss2 >= %{tinycss2_min_version}
Requires: python-tinyhtml5 >= %{tinyhtml5_min_version}
# SECTION fonttools[woff] # SECTION fonttools[woff]
Requires: python-FontTools >= %{fonttools_min_version} Requires: python-FontTools >= %{fonttools_min_version}
Requires: python-Brotli >= %{brotli_min_version} Requires: python-Brotli >= %{brotli_min_version}
@@ -67,10 +78,10 @@ BuildRequires: %{python_module Pillow >= %{Pillow_min_version}}
BuildRequires: %{python_module Pyphen >= %{Pyphen_min_version}} BuildRequires: %{python_module Pyphen >= %{Pyphen_min_version}}
BuildRequires: %{python_module cffi >= %{cffi_min_version}} BuildRequires: %{python_module cffi >= %{cffi_min_version}}
BuildRequires: %{python_module cssselect2 >= %{cssselect2_min_version}} BuildRequires: %{python_module cssselect2 >= %{cssselect2_min_version}}
BuildRequires: %{python_module html5lib >= %{html5lib_min_version}}
BuildRequires: %{python_module pydyf >= %{pypdf_min_version}} BuildRequires: %{python_module pydyf >= %{pypdf_min_version}}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tinycss2 >= %{tinycss2_min_version}} BuildRequires: %{python_module tinycss2 >= %{tinycss2_min_version}}
BuildRequires: %{python_module tinyhtml5 >= %{tinyhtml5_min_version}}
BuildRequires: %{python_module zopfli >= %{zopfli_min_version}} BuildRequires: %{python_module zopfli >= %{zopfli_min_version}}
BuildRequires: dejavu-fonts BuildRequires: dejavu-fonts
BuildRequires: gs BuildRequires: gs
@@ -106,6 +117,10 @@ export PYTHONPATH=$PWD
%check %check
%pytest -k 'not test_linear_gradients and (5 or 12)' tests %pytest -k 'not test_linear_gradients and (5 or 12)' tests
%pre
# removing old update-alternatives entries
%python_libalternatives_reset_alternative weasyprint
%post %post
%python_install_alternative weasyprint %python_install_alternative weasyprint

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d8680d732f7fa0fcbc587692a5a5cb095c3525627066918d6e203cbf42b7fcd
size 477181

3
weasyprint-68.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:447f40898b747cb44ac31a5d493d512e7441fd56e13f63744c099383bbf9cda9
size 1541418