From f6cf8041aacf34f6c7112d9484f2e2ede5a0f3b1bf48938b17ed1d45207c1328 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 20 May 2025 14:46:05 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 + .gitignore | 1 + python-weasyprint-rpmlintrc | 1 + python-weasyprint.changes | 916 ++++++++++++++++++++++++++++++++++++ python-weasyprint.spec | 123 +++++ weasyprint-62.3.tar.gz | 3 + weasyprint-63.0.tar.gz | 3 + weasyprint-64.0.tar.gz | 3 + weasyprint-64.1.tar.gz | 3 + weasyprint-65.1.tar.gz | 3 + 10 files changed, 1079 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-weasyprint-rpmlintrc create mode 100644 python-weasyprint.changes create mode 100644 python-weasyprint.spec create mode 100644 weasyprint-62.3.tar.gz create mode 100644 weasyprint-63.0.tar.gz create mode 100644 weasyprint-64.0.tar.gz create mode 100644 weasyprint-64.1.tar.gz create mode 100644 weasyprint-65.1.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-weasyprint-rpmlintrc b/python-weasyprint-rpmlintrc new file mode 100644 index 0000000..659b846 --- /dev/null +++ b/python-weasyprint-rpmlintrc @@ -0,0 +1 @@ +addFilter("explicit-lib-dependency libgobject-2_0-0") diff --git a/python-weasyprint.changes b/python-weasyprint.changes new file mode 100644 index 0000000..7d49742 --- /dev/null +++ b/python-weasyprint.changes @@ -0,0 +1,916 @@ +------------------------------------------------------------------- +Tue May 20 12:11:26 UTC 2025 - John Paul Adrian 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 + +------------------------------------------------------------------- +Wed Mar 5 10:07:13 UTC 2025 - John Paul Adrian Glaubitz + +- 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 + +- 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 + +------------------------------------------------------------------- +Mon Nov 18 09:24:08 UTC 2024 - Nico Krapp + +- Fix runtime requirements (bsc#1233406) + +------------------------------------------------------------------- +Tue Nov 5 14:27:00 UTC 2024 - John Paul Adrian Glaubitz + +- 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 + * #2175: Don’t 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 + +- 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 + +------------------------------------------------------------------- +Mon Jun 10 09:58:20 UTC 2024 - Dirk Müller + +- 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 + * #2128: Don’t crash when a FontConfig object is destroyed + early + * #2079: Fix executable file for some Windows versions + * #2131: Fix alpha for images before/after transparent text + * #2111: Handle auto and none values for CSS quotes property + * #2103: Don’t crash with overconstrained columns + * #2100: Fix rounding error when detecting overflows + * #2093, #2097, #2094: Mark use of md5() and sha1() as not for + security + * #1956, #2087: Use CSS table module level 3 to compute widths + * #2086: Fix selects with empty values displaying None + * #1112, #2082, #2085: Fix computation for outer min-content + width for table cells + * 016bd81: Fix many different bugs with SVG markers + * Performance: + * #2130: Cache font key instead of whole font content + * Documentation: + * #2108: Update documentation about CSS leader() function + +------------------------------------------------------------------- +Sat Mar 16 16:22:31 UTC 2024 - Dirk Müller + +- 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 + * #2030: Ensure that bounding box is set to invisible text tags + * #2040, #2041: Don’t crash on malformed URLs + * #2026: Don’t break pages when fixed-height elements don’t + overflow page + * #2038: Don’t mix original streams when drawing transparent + text + * #2016: Avoid duplication when breaking out-of-flow boxes + * #2012: Don’t crash when CSS properties have no value + * #2010, #1287: Fix many corner cases with CSS variables + * #1996: Don’t crash when drawing groove/ridge collapsed + borders + * #1982: Fix SVG markers size, position and drawing + * Documentation: + * #2021, #2048: Replace non-virtualenv installation + instructions with distribution packages + +------------------------------------------------------------------- +Thu Jan 11 11:03:22 UTC 2024 - Daniel Garcia + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Dec 29 10:19:12 UTC 2023 - Dirk Müller + +- 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 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 + +------------------------------------------------------------------- +Wed Jun 14 11:42:32 UTC 2023 - Marcus Rueckert + +- instead of having to maintain version information in multiple + places refactor them out into defines for easier maintenance +- switch to autosetup + +------------------------------------------------------------------- +Wed Jun 14 04:42:21 UTC 2023 - Steve Kowalik + +- 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: + + dfccf1b: Use faces as fonts dictionary keys + + 0dc12b6: Cache add_font to avoid calling get_face too often + + 75e17bf: Don’t call process_whitespace twice on many children + + 498d3e1: Optimize __missing__ functions + +------------------------------------------------------------------- +Sat Sep 3 19:13:07 UTC 2022 - Klaas Freitag + +- 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 + +------------------------------------------------------------------- +Mon May 16 11:21:00 UTC 2022 - Marcus Rueckert + +- 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 + +------------------------------------------------------------------- +Mon Jan 10 20:04:52 UTC 2022 - Matej Cepl + +- Update to 54.0: + - Always use absolute paths to get hrefs in SVG + - Fix many rendering problems of broken tables + - Fix support of fonts with SVG emojis + - html5lib 1.1+ is now needed. + - Support footnotes, with financial support from Code & Co. + - Handle parallel flows for floats, absolutes, table-cells + - Support ``text-align-last`` and ``text-align-all`` properties + - Draw SVG and PNG emojis + - Support ``overflow-wrap: anywhere`` + - Cache SVG ``use`` tags + - Encode non-JPEG images as PNGs instead of JPEG2000s + - Don’t use ``text-transform`` text for content-based uses + - Don’t serialize and parse again inline SVG files + - Correctly handle whitespaces in bookmark labels + - Fix column height with ``column-span`` content + - Fix absolutely positioned boxes in duplicated pages + - Fix ``target-counter`` attribute in flex items + - Don’t draw empty glyphs + - Don’t crash when font size is really small + +------------------------------------------------------------------- +Wed Dec 22 23:52:20 UTC 2021 - Marcus Rueckert + +- port to the pyproject build to get the commandline for weasyprint + back (boo#1194029) + +------------------------------------------------------------------- +Thu Dec 16 11:37:31 UTC 2021 - Ben Greiner + +- Skip python36 build: FontTools dropped support +- Update test and runtime requirements + +------------------------------------------------------------------- +Tue Dec 7 15:49:57 UTC 2021 - pgajdos@suse.com + +- do not require pytest-runner for build, it is not needed + +------------------------------------------------------------------- +Mon Nov 22 11:24:39 UTC 2021 - Matej Cepl + +- Skip two tests which fail (gh#Kozea/WeasyPrint#1503) + +------------------------------------------------------------------- +Mon Nov 22 10:52:42 UTC 2021 - Matej Cepl + +- Rename package to lower-case name (according to PyPI). + +------------------------------------------------------------------- +Sun Nov 21 09:36:20 UTC 2021 - Axel Braun + +- enable all tests after upgrade of tinycss2 to 1.1.0 + +------------------------------------------------------------------- +Fri Nov 19 17:06:45 UTC 2021 - Axel Braun + +- update to 53.4 + for changelog see docs/changelog.rst + +------------------------------------------------------------------- +Fri Apr 30 12:20:47 UTC 2021 - Markéta Machová + +- Update to 52.5 + * Python 3.6+ is now needed, Python 3.5 is not supported anymore + * Implement counter-set + * Add support for concatenating var() functions in content declarations + * Add an option to optimize embedded images size, with financial support from Hashbang + * Add an image cache that can be shared between documents, with financial support from Hashbang + * Fix URL handling with tinycss2Fix URL handling with tinycss2 + * Add support of line-clamp, with financial support from expert Germany +- Add quotes.patch to support tinycss older than 1.1.0 + +------------------------------------------------------------------- +Thu Sep 24 09:05:04 UTC 2020 - Klaus Kämpf + +- require python-CairoSVG + +------------------------------------------------------------------- +Mon May 18 07:25:35 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Fri Jan 17 08:01:51 UTC 2020 - Tomáš Chvátal + +- Update to 51: + * Speed and memory use have been largely improved. + * #209: Make break-* properties work inside tables + * #661: Make blocks with overflow: auto grow to include floating children + * #882: Add support of element() and running() + * #972: Add HTML element to Box class + * 7a4d6f8: Support larger and smaller values for font-size + +------------------------------------------------------------------- +Mon Jul 29 12:16:10 UTC 2019 - pgajdos@suse.com + +- version update to 48 + * New features: + #891: Handle text-overflow + #878: Handle column-span + #855: Handle all the text-decoration features + #238: Don't repeat background images when it's not needed + #875: Handle object-fit and object-position + #870: Handle bookmark-state + #843: Handle CSS variables + #846: Handle :nth() page selector + #847: Allow users to use a custom SSL context for HTTP requests + * Bug fixes: + #686: Fix column balance when children are not inline + #885: Actually use the content box to resolve flex items percentages + #867: Fix rendering of KaTeX output, including (1) set row baseline of tables when no cells are baseline-aligned, (2) set baseline for inline tables, (3) don't align lines larger than their parents, (4) force CairoSVG to respect image size defined by CSS. + #873: Set a minimum height for empty list elements with outside marker + #811: Don't use translations to align flex items + #851, #860: Don't cut pages when content overflows a very little bit + #862: Don't crash when using UTC dates in metadata + #797: Fix underlined justified text + #836: Fix crash when flex items are replaced boxes + #835: Fix margin-break: auto + * Documentation: + #854: Add a "Tips & Tricks" section + +------------------------------------------------------------------- +Thu Mar 21 15:42:39 UTC 2019 - Tomáš Chvátal + +- Update to v46: + * #771: Handle box-decoration-break + * #115: Handle margin-break + * #821: Continuous integration includes tests on Windows + +------------------------------------------------------------------- +Tue Feb 26 05:55:42 UTC 2019 - John Vandenberg + +- Disable building with pytest extensions intended for developers +- Add license +- Activate test suite +- Update to v45 + * Python 3.5+ is now needed, Python 3.4 is not supported anymore + * Bug fixes + + Prevent endless loop and index out of range in pagination + + Add a --quiet CLI parameter + + Fix library loading on Alpine + + Use path2url in tests for Windows + + Add LICENSE file to distributed sources + + Fix pending references + + Don't draw patterns for empty page backgrounds + + Don't crash when links include quotes + + Fix a problem with justified text + + Launch tests with Python 3.7 + + Fix a corner case with tables + + Don't logger handlers defined before importing WeasyPrint + + Don't include punctuation for hyphenation + + Don't crash when people use uppercase words from old-fashioned Microsoft fonts in tables, especially when there's an 5th column + + Use a separate logger to report the rendering process + + Add a --debug CLI parameter and set debug level for unknown prefixed CSS properties + + Define minimal versions of Python and setuptools in setup.cfg + * Documentation + + Fix a small typo in the tutorial + + Document no alignement character support + + Fix phrasing in Hacking section + + Add a paragraph about fontconfig error + + Fix list of dependencies for Alpine + + Fix API documentation of HTML and CSS classes +- from v44 + * Bug fixes + + Don't crash during PDF generation when locale uses commas as decimal separator + + Close file when reading VERSION + + Improve speed and memory usage for long texts. + * Documentation: + + Small documentation fixes + + Fix broken links in NEWS.rst +- from v43 + * Bug fixes + + Make empty strings clear previous values of named strings + + Include tools in packaging + +------------------------------------------------------------------- +Tue Dec 4 12:55:55 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun Jun 10 10:55:33 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Thu Jun 7 17:21:18 UTC 2018 - toddrme2178@gmail.com + +- Fix pango dependency + +------------------------------------------------------------------- +Wed May 16 16:33:12 UTC 2018 - toddrme2178@gmail.com + +- Update to Version 0.42 + + New features: + * `#532 `_: + Support relative file URIs when using CLI. + + Bug fixes: + * `#553 `_: + Fix slow performance for pre-formatted boxes with a lot of children. + * `#409 `_: + Don't crash when rendering some tables. + * `#39 `_: + Fix rendering of floats in inlines. + * `#301 `_: + Split lines carefully. + * `#530 `_: + Fix root when frozen with Pyinstaller. + * `#534 `_: + Handle SVGs containing images embedded as data URIs. + * `#360 `_: + Fix border-radius rendering problem with some PDF readers. + * `#525 `_: + Fix pipenv support. + * `#227 `_: + Smartly handle replaced boxes with percentage width in auto-width parents. + * `#520 `_: + Don't ignore CSS @page rules that are imported by an @import rule. +- Update to Version 0.41 + + New features: + * `#471 `_: + Support page marks and bleed. + + Bug fixes: + * `#513 `_: + Don't crash on unsupported image-resolution values. + * `#506 `_: + Fix @font-face use with write_* methods. + * `#500 `_: + Improve readability of _select_source function. + * `#498 `_: + Use CSS prefixes as recommanded by the CSSWG. + * `#441 `_: + Fix rendering problems and crashes when using @font-face. + * `bb3a4db `_: + Try to break pages after a block before trying to break inside it. + * `1d1654c `_: + Fix and test corner cases about named pages. + + Documentation: + * `#508 `_: + Add missing libpangocairo dependency for Debian and Ubuntu. + * `a7b17fb `_: + Add documentation on logged rendering steps. +- Update to Version 0.40 + + New features: + * `#57 `_: + Named pages. + * Unprefix properties, see + `#498 `_. + * Add a "verbose" option logging the document generation steps. + + Bug fixes: + * `#483 `_: + Fix slow performance with long pre-formatted texts. + * `#70 `_: + Improve speed and memory usage for long documents. + * `#487 `_: + Don't crash on local() fonts with a space and no quotes. +- Update to Version 0.39 + + Bug fixes: + * Fix the use of WeasyPrint's URL fetcher with CairoSVG. +- Update to Version 0.38 + + Bug fixes: + * `#477 `_: + Don't crash on font-face's src attributes with local functions. +- Update to Version 0.37 + + New features: + * `#437 `_: + Support local links in generated PDFs. + + Bug fixes: + * `#412 `_: + Use a NullHandler log handler when WeasyPrint is used as a library. + * `#417 `_, + `#472 `_: + Don't crash on some line breaks. + * `#327 `_: + Don't crash with replaced elements with height set in percentages. + * `#467 `_: + Remove incorrect line breaks. + * `#446 `_: + Let the logging module do the string interpolation. +- Update to Version 0.36 + + New features: + * `#407 `_: + Handle ::first-letter. + * `#423 `_: + Warn user about broken cairo versions. + + Bug fixes: + * `#411 `_: + Typos fixed in command-line help. +- Update to Version 0.35 + + Bug fixes: + * `#410 `_: + Fix AssertionError in split_text_box. +- Update to Version 0.34 + + Bug fixes: + * `#398 `_: + Honor the presentational_hints option for PDFs. + * `#399 `_: + Avoid CairoSVG-2.0.0rc* on Python 2. + * `#396 `_: + Correctly close files open by mkstemp. + * `#403 `_: + Cast the number of columns into int. + * Fix multi-page multi-columns and add related tests. +- Update to Version 0.33 + + New features: + * `#393 `_: + Add tests on MacOS. + * `#370 `_: + Enable @font-face on MacOS. + + Bug fixes: + * `#389 `_: + Always update resume_at when splitting lines. + * `#394 `_: + Don't build universal wheels. + * `#388 `_: + Fix logic when finishing block formatting context. +- Update to Version 0.32 + + New features: + * `#28 `_: + Support @font-face on Linux. + * Support CSS fonts level 3 almost entirely, including OpenType features. + * `#253 `_: + Support presentational hints (optional). + * Support break-after, break-before and break-inside for pages and columns. + * `#384 `_: + Major performance boost. + + Bux fixes: + * `#368 `_: + Respect white-space for shrink-to-fit. + * `#382 `_: + Fix the preferred width for column groups. + * Handle relative boxes in column-layout boxes. + + Documentation: + * Add more and more documentation about Windows installation. + * `#355 `_: + Add fonts requirements for tests. +- Update to Version 0.31 + + New features: + * `#124 `_: + Add MIME sniffing for images. + * `#60 `_: + CSS Multi-column Layout. + * `#197 `_: + Add hyphens at line breaks activated by a soft hyphen. + + Bux fixes: + * `#132 `_: + Fix Python 3 compatibility on Windows. + + Documentation: + * `#329 `_: + Add documentation about installation on Windows. +- Update to Version 0.30 + + Bux fixes: + * Fix Acid2 + * `#325 `_: + Cutting lines is broken in page margin boxes. + * `#334 `_: + Newest html5lib 0.999999999 breaks rendering. +- Update to Version 0.29 + + Bug fixes: + * `#263 `_: + Don't crash with floats with percents in positions. + * `#323 `_: + Fix CairoSVG 2.0 pre-release dependency in Python 2.x. +- Update to Version 0.28 + + Bug fixes: + * `#189 `_: + ``white-space: nowrap`` still wraps on hyphens + * `#305 `_: + Fix crashes on some tables + * Don't crash when transform matrix isn't invertible + * Don't crash when rendering ratio-only SVG images + * Fix margins and borders on some tables +- Update to Version 0.27 + + New features: + * `#295 `_: + Support the 'rem' unit. + * `#299 `_: + Enhance the support of SVG images. + + Bug fixes: + * `#307 `_: + Fix the layout of cells larger than their tables. + + Documentation: + * The website is now on GitHub Pages, the documentation is on Read the Docs. + * `#297 `_: + Rewrite the CSS chapter of the documentation. +- Update to Version 0.26 + + New features: + * Support the `empty-cells` attribute. + * Respect table, column and cell widths. + + Bug fixes: + * `#172 `_: + Unable to set table column width on tables td's. + * `#151 `_: + Table background colour bleeds beyond table cell boundaries. + * `#260 `_: + TypeError: unsupported operand type(s) for +: 'float' and 'str'. + * `#288 `_: + Unwanted line-breaks in bold text. + * `#286 `_: + AttributeError: 'Namespace' object has no attribute 'attachments'. +- Update to Version 0.25 + + New features: + * Support the 'q' unit. + + Bug fixes: + * `#285 `_: + Fix a crash happening when splitting lines. + * `#284 `_: + Escape parenthesis in PDF links. + * `#280 `_: + Replace utf8 with utf-8 for gettext/django compatibility. + * `#269 `_: + Add support for use when frozen. + * `#250 `_: + Don't crash when attachments are not available. +- Implement single-spec version + +------------------------------------------------------------------- +Sat Nov 7 03:10:02 UTC 2015 - jacobwinski@gmail.com + +- Update to 0.24: + + New features: + * Basic support for Named strings. + + Bug fixes: + * Draw rounded corners on replaced boxes. + * Rely on the font size for rounding bug workaround. + * Honor the vertical-align property in fixed-height cells. + * Remove unreachable area/border at bottom of page. + * Don't allow unknown units during line-height validation. + * Fix some wrong conflict resolutions for table borders with inset + and outset styles. +- Update to 0.23: + + Bug fixes: + * Use the default image sizing algorithm for images’s preferred size. + * Try more library aliases with ``dlopen()``. + * Consider ``page-break-after-avoid`` when pushing floats to the next page. + * Avoid a crash on zero-sized background images. +- Update to 0.22: + + New features: + * Support gzip and deflate encoding in HTTP responses + * Support for PDF attachments. + + Bug fixes: + * Fix a crash on percentage-width columns in an auto-width table. + * Make ``
`` a block in the user-agent stylesheet. + * Fix some ``dlopen()`` library loading issues on OS X. + * Break to the next page before a float that would overflow the page. + * Require a recent enough version of Pyphen +- Update to 0.21: + + New features: + * Add the `overflow-wrap `_ + property, allowing line breaks inside otherwise-unbreakable words. + * Add the `image-resolution property, + allowing images to be sized proportionally to their intrinsic size + at a resolution other than 96 image pixels per CSS ``in`` + (ie. one image pixel per CSS ``px``) + + Bug fixes: + * Fix parsing HTML from an HTTP URL on Python 3.x + * Use more general hyphenation dictionnaries for specific document languages. + * (E.g. use ``hyph_fr.dic`` for ``lang="fr_FR"``.) + * Fix ``min-width`` and ``max-width`` on floats. + * Fix a crash on trailing whitespace with ``font-size: 0`` + * Borders on tables with ``border-collapse: collapse`` were sometimes + * drawn at an incorrect position. + * Fix positioning of images with ``position: absolute``. + * Fix a crash when using ``position: absolute`` + inside a ``position: relative`` element. + * Fix ``visibility: collapse`` to behave like ``visibility: hidden`` + on elements other than table rows and table columns. + * Fix dependencies to require lxml 3.0 or a more recent version. + * Fix a crash on percentage-sized table cells in auto-sized tables. +- Update to 0.20.2: + + Bug fixes: + * When drawing really small boxes with dotted/dashed borders +- Update to 0.20.1: + + Bug fixes: + * Depend on html5lib >= 0.99 instead of 1.0b3 to fix pip 1.4 support. + space followed by dot at line break. + border-style: ridge/groove/inset/outset. +- Update to 0.20: + + Bug fixes: + * Add support for ``border-radius``. + metadata from HTML. + * Tables: handle percentages for column groups, columns and cells, and values + for row height. + + Bug fixes: + * Stylesheets are not available. + * Instead of page numbers in PDF bookmarks. + * Use ``logger.warning`` instead of deprecated ``logger.warn``. + * Add 'font-stretch' in the 'font' shorthand. +- Update to 0.19.2: + + Bug fixes: + * ``text-decoration: overline`` not being drawn above the text + * Bug fix: Actually draw multiple lines when multiple values are given + to ``text-decoration``. + * Use the font metrics for text decoration positioning. + * Bug fix: Don't clip the border with ``overflow: hidden``. + * Regression: JPEG images not loading with cairo 1.8.x. +- Update to 0.19.1: + + Bug fixes: + * Fix incorrect intrinsic width calculation + leading to unnecessary line breaks in floats, tables, etc. + * Tweak border painting to look better + * Fix unnecessary page break before big tables. + * Fix table row overflowing at the bottom of the page + when there are margins above the table. + * Fix ``position: fixed`` to actually repeat on every page. + repeat ```` and ```` elements on every page, + even with table border collapsing. +- Update to 0.19: + + Bug fixes: + * Add support for ``linear-gradient()`` and ``radial-gradient`` + in background images. + * Add support for the ``ex`` and ``ch`` length units. + (``1ex`` is based on the font instead of being always ``0.5em`` as before.) + * Add experimental support for Level 4 hyphenation properties. + * Drop support for CFFI < 0.6 and cairocffi < 0.4. + * Many bug fixes, including: + min/max-width/height on block-level images. + Crash when parsing nested functional notation. +- Update to 0.18: + + New features: + * Add support for Level 3 backgrounds, + including multiple background layers per element/box. + * Forward-compatibility with (future releases of) cairocffi 0.4+ and CFFI 0.6+. + + Bug fixes: + * Avoid some unnecessary line breaks + for elements sized based on their content (aka. “shrink-to-fit”) + such as floats and page headers. + * Allow page breaks between empty blocks. + * Resolve images’ auto width from non-auto height and intrinsic ratio. + * The ``data:`` URL scheme is case-insensitive. + * Crash when backtracking for ``break-before/after: avoid``. +- Update to 0.17.1: + + Bug fixes: + * GObject initialization when GDK-PixBuf is not installed. + * Absolute URLs without a base URL (ie. document parsed from a string.) + * Fix some whitespace collapsing bugs. + * Fix absolutely-positioned elements inside inline elements. + * Fix URL escaping of image references from CSS. + * Division by 0 on dashed or dotted border smaller than one dot/dash. + * Bad interaction of ``page-break-before/after: avoid`` and floats. +- Update to 0.17: + + New features: + * Added `text hyphenation`_ with the ``-weasy-hyphens`` property. + * When a document includes JPEG images, embed them as JPEG in the PDF output. + * Switched to using CFFI instead of PyGTK or PyGObject-introspection. + + Bug fixes: + * Correctly trim whitespace at the end of lines. + * Fix some cases with floats within inline content. + +------------------------------------------------------------------- +Thu Oct 24 11:16:55 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Wed Jan 16 17:30:45 UTC 2013 - alexandre@exatati.com.br + +- Initial package (0.16) for openSUSE. diff --git a/python-weasyprint.spec b/python-weasyprint.spec new file mode 100644 index 0000000..d163ade --- /dev/null +++ b/python-weasyprint.spec @@ -0,0 +1,123 @@ +# +# spec file for package python-weasyprint +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global brotli_min_version 1.0.1 +%global cffi_min_version 0.6 +%global cssselect2_min_version 0.8.0 +%global fonttools_min_version 4.0.0 +%global tinyhtml5_min_version 2.0.0 +%global Pillow_min_version 9.1.0 +%global pypdf_min_version 0.11.0 +%global Pyphen_min_version 0.9.1 +%global tinycss2_min_version 1.4.0 +%global zopfli_min_version 0.1.4 + +%{?sle15_python_module_pythons} +Name: python-weasyprint +Version: 65.1 +Release: 0 +Summary: Python module to convert web documents to PDF +License: BSD-3-Clause +URL: https://github.com/Kozea/WeasyPrint +Source: https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-%{version}.tar.gz +Source100: python-weasyprint-rpmlintrc +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 39.2.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +Requires: libgobject-2_0-0 +Requires: pango +Requires: python-Pillow >= %{Pillow_min_version} +Requires: python-Pyphen >= %{Pyphen_min_version} +Requires: python-base >= 3.9 +Requires: python-cffi >= %{cffi_min_version} +Requires: python-cssselect2 >= %{cssselect2_min_version} +Requires: python-html5lib >= %{html5lib_min_version} +Requires: python-pydyf >= %{pypdf_min_version} +Requires: python-tinycss2 >= %{tinycss2_min_version} +Requires: python-tinyhtml5 >= %{tinyhtml5_min_version} +# SECTION fonttools[woff] +Requires: python-FontTools >= %{fonttools_min_version} +Requires: python-Brotli >= %{brotli_min_version} +Requires: python-zopfli >= %{zopfli_min_version} +# /SECTION +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module FontTools >= %{fonttools_min_version}} +BuildRequires: %{python_module Brotli >= %{brotli_min_version}} +BuildRequires: %{python_module Pillow >= %{Pillow_min_version}} +BuildRequires: %{python_module Pyphen >= %{Pyphen_min_version}} +BuildRequires: %{python_module cffi >= %{cffi_min_version}} +BuildRequires: %{python_module cssselect2 >= %{cssselect2_min_version}} +BuildRequires: %{python_module pydyf >= %{pypdf_min_version}} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tinycss2 >= %{tinycss2_min_version}} +BuildRequires: %{python_module tinyhtml5 >= %{tinyhtml5_min_version}} +BuildRequires: %{python_module zopfli >= %{zopfli_min_version}} +BuildRequires: dejavu-fonts +BuildRequires: gs +BuildRequires: libgobject-2_0-0 +BuildRequires: pango +BuildRequires: xorg-x11-server +# /SECTION +Provides: python-WeasyPrint = %{version}-%{release} +Obsoletes: python-WeasyPrint < %{version}-%{release} +%python_subpackages + +%description +WeasyPrint is a visual rendering engine for HTML and CSS that can +export to PDF. It aims to support web standards for printing. + +It is based on various libraries but not on a full rendering engine +like WebKit or Gecko. The CSS layout engine is written in Python, +designed for pagination, and meant to be easy to hack on. + +%prep +%autosetup -p1 -n weasyprint-%{version} +sed -i '/addopts/d' pyproject.toml + +%build +export PYTHONPATH=$PWD +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/weasyprint + +%check +%pytest -k 'not test_linear_gradients and (5 or 12)' tests + +%post +%python_install_alternative weasyprint + +%postun +%python_uninstall_alternative weasyprint + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/weasyprint +%{python_sitelib}/weasyprint +%{python_sitelib}/weasyprint-%{version}.dist-info + +%changelog diff --git a/weasyprint-62.3.tar.gz b/weasyprint-62.3.tar.gz new file mode 100644 index 0000000..8892de8 --- /dev/null +++ b/weasyprint-62.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d8680d732f7fa0fcbc587692a5a5cb095c3525627066918d6e203cbf42b7fcd +size 477181 diff --git a/weasyprint-63.0.tar.gz b/weasyprint-63.0.tar.gz new file mode 100644 index 0000000..8065f27 --- /dev/null +++ b/weasyprint-63.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec24c64fdcc63e4168b2c24eb89b1ee8a711281a7d7fdb3eed3f54995489c9d1 +size 491295 diff --git a/weasyprint-64.0.tar.gz b/weasyprint-64.0.tar.gz new file mode 100644 index 0000000..f789814 --- /dev/null +++ b/weasyprint-64.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ceb3ea6306db4a3d06df0eafae3a5a6e879c35c40091aa8ceb5bcb143e80b29 +size 498075 diff --git a/weasyprint-64.1.tar.gz b/weasyprint-64.1.tar.gz new file mode 100644 index 0000000..414c3d3 --- /dev/null +++ b/weasyprint-64.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28b02f2c6409bafce1b1220d9d76a7345875bd3bd08c4f6dfbf510bb92a94757 +size 498647 diff --git a/weasyprint-65.1.tar.gz b/weasyprint-65.1.tar.gz new file mode 100644 index 0000000..2c12157 --- /dev/null +++ b/weasyprint-65.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:120281bdbd42ffaa7d7e5cedbe3182a2cef36ea5ad97fe9f357e43be6a1e58ea +size 499028