Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pikepdf for openSUSE:Factory checked in at 2024-05-09 12:14:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pikepdf (Old) and /work/SRC/openSUSE:Factory/.python-pikepdf.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pikepdf" Thu May 9 12:14:39 2024 rev:27 rq:1172891 version:8.15.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pikepdf/python-pikepdf.changes 2024-04-15 20:24:20.209606317 +0200 +++ /work/SRC/openSUSE:Factory/.python-pikepdf.new.1880/python-pikepdf.changes 2024-05-09 12:14:58.217338442 +0200 @@ -1,0 +2,7 @@ +Thu May 2 08:23:18 UTC 2024 - Dirk Müller <dmuel...@suse.com> + +- update to 8.15.1: + * Reformat with ruff. + * Various updates to build procedures and wheel generation + +------------------------------------------------------------------- Old: ---- pikepdf-8.15.0.tar.gz New: ---- pikepdf-8.15.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pikepdf.spec ++++++ --- /var/tmp/diff_new_pack.7V71bb/_old 2024-05-09 12:14:59.085369951 +0200 +++ /var/tmp/diff_new_pack.7V71bb/_new 2024-05-09 12:14:59.085369951 +0200 @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} Name: python-pikepdf -Version: 8.15.0 +Version: 8.15.1 Release: 0 Summary: Read and write PDFs with Python, powered by qpdf License: MPL-2.0 ++++++ pikepdf-8.15.0.tar.gz -> pikepdf-8.15.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/PKG-INFO new/pikepdf-8.15.1/PKG-INFO --- old/pikepdf-8.15.0/PKG-INFO 2024-04-07 09:43:44.538700300 +0200 +++ new/pikepdf-8.15.1/PKG-INFO 2024-04-16 11:09:00.591819300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pikepdf -Version: 8.15.0 +Version: 8.15.1 Summary: Read and write PDFs with Python, powered by qpdf Author-email: "James R. Barlow" <ja...@purplerock.ca> License: MPL-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/docs/binary-wheels.csv new/pikepdf-8.15.1/docs/binary-wheels.csv --- old/pikepdf-8.15.0/docs/binary-wheels.csv 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/docs/binary-wheels.csv 2024-04-16 11:07:20.000000000 +0200 @@ -1,8 +1,8 @@ ,3.8,3.9,3.10,3.11,3.12,PyPy 3.9, PyPy 3.10 -:fa:`apple` macOS Intel,â ,â ,â ,â ,â ,â ,â³ -:fa:`apple` macOS Apple Silicon,â,â ,â ,â ,â ,â³,â³ -:fa:`windows` Windows x64,â ,â ,â ,â ,â ,â ,â³ -:fa:`linux` manylinux2014 x64,â ,â ,â ,â ,â ,â ,â³ +:fa:`apple` macOS Intel,â ,â ,â ,â ,â ,â ,â +:fa:`apple` macOS Apple Silicon,â ï¸,â ,â ,â ,â ,â³,â³ +:fa:`windows` Windows x64,â ,â ,â ,â ,â ,â ,â +:fa:`linux` manylinux2014 x64,â ,â ,â ,â ,â ,â ,â :fa:`linux` manylinux2014 aarch64 (ARM64),â ,â ,â ,â ,â ,â³,â³ :fa:`linux` musllinux x64,â,â ,â ,â ,â ,â³,â³ :fa:`linux` musllinux aarch64 (ARM64),â,â³,â³,â³,â³,â³,â³ \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/docs/conf.py new/pikepdf-8.15.1/docs/conf.py --- old/pikepdf-8.15.0/docs/conf.py 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/docs/conf.py 2024-04-16 11:07:20.000000000 +0200 @@ -92,7 +92,7 @@ # |version| and |release|, also used in various other places throughout the # built documents. -release = "8.15.0" +release = "8.15.1" version = '.'.join(release.split('.')[:2]) # The language for content autogenerated by Sphinx. Refer to documentation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/docs/installation.rst new/pikepdf-8.15.1/docs/installation.rst --- old/pikepdf-8.15.0/docs/installation.rst 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/docs/installation.rst 2024-04-16 11:07:20.000000000 +0200 @@ -33,6 +33,8 @@ * â³ we are waiting on a third party to implement better support for this configuration +* â ï¸ wheel is released but cannot be tested - use with caution + Binary wheels should work on most systems, **provided a recent version of pip is used to install them**. Old versions of pip, especially before 20.0, may fail to check appropriate versions. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/docs/releasenotes/version8.rst new/pikepdf-8.15.1/docs/releasenotes/version8.rst --- old/pikepdf-8.15.0/docs/releasenotes/version8.rst 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/docs/releasenotes/version8.rst 2024-04-16 11:07:20.000000000 +0200 @@ -1,3 +1,9 @@ +v8.15.1 +======= + +- Reformat with ruff. +- Various updates to build procedures and wheel generation. + v8.15.0 ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/pyproject.toml new/pikepdf-8.15.1/pyproject.toml --- old/pikepdf-8.15.0/pyproject.toml 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/pyproject.toml 2024-04-16 11:07:20.000000000 +0200 @@ -7,7 +7,7 @@ [project] name = "pikepdf" -version = "8.15.0" +version = "8.15.1" description = "Read and write PDFs with Python, powered by qpdf" readme = "README.md" requires-python = ">=3.8" @@ -248,5 +248,5 @@ "bin/bump_version.py" = ["E501"] "examples/*.py" = ["D103"] -# [tool.ruff.format] -# quote-style = "preserve" # 2023-12-28 - ruff feature not ready yet +[tool.ruff.format] +quote-style = "preserve" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/core/object_repr.cpp new/pikepdf-8.15.1/src/core/object_repr.cpp --- old/pikepdf-8.15.0/src/core/object_repr.cpp 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/core/object_repr.cpp 2024-04-16 11:07:20.000000000 +0200 @@ -177,9 +177,7 @@ visited.insert(h.getObjGen()); } if (h.isPageObject() && recursion_depth >= 1 && h.isIndirect()) { - ss << "<Pdf.pages.from_objgen" - << "(" << h.getObjGen() << ")" - << ">"; + ss << "<Pdf.pages.from_objgen(" << h.getObjGen() << ")>"; return ss.str(); } object_count++; @@ -208,9 +206,7 @@ // Inline image objects are automatically promoted to higher level objects // in parse_content_stream, so objects of this type should not be returned // directly. - ss << objecthandle_pythonic_typename(h) << "(" - << "data=<...>" - << ")"; + ss << objecthandle_pythonic_typename(h) << "(" << "data=<...>" << ")"; break; // LCOV_EXCL_STOP case qpdf_object_type_e::ot_array: @@ -266,8 +262,7 @@ break; case qpdf_object_type_e::ot_stream: pure_expr = false; - ss << objecthandle_pythonic_typename(h) << "(" - << "owner=<...>, " + ss << objecthandle_pythonic_typename(h) << "(" << "owner=<...>, " << "data=" << preview_stream_data(h, recursion_depth) << ", " << objecthandle_repr_inner(h.getDict(), recursion_depth + 1, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/core/parsers.cpp new/pikepdf-8.15.1/src/core/parsers.cpp --- old/pikepdf-8.15.0/src/core/parsers.cpp 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/core/parsers.cpp 2024-04-16 11:07:20.000000000 +0200 @@ -342,10 +342,9 @@ .def("__repr__", [](ContentStreamInlineImage &csii) { std::ostringstream ss; ss.imbue(std::locale::classic()); - ss << "<pikepdf.ContentStreamInlineImage(" - << "[" << py::repr(csii.get_inline_image()) << "], " - << "pikepdf.Operator('INLINE IMAGE')" - << ")>"; + ss << "<pikepdf.ContentStreamInlineImage(" << "[" + << py::repr(csii.get_inline_image()) << "], " + << "pikepdf.Operator('INLINE IMAGE')" << ")>"; return ss.str(); }); } \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/core/qpdf_pagelist.cpp new/pikepdf-8.15.1/src/core/qpdf_pagelist.cpp --- old/pikepdf-8.15.0/src/core/qpdf_pagelist.cpp 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/core/qpdf_pagelist.cpp 2024-04-16 11:07:20.000000000 +0200 @@ -276,9 +276,7 @@ py::arg("pnum")) .def( "__iter__", - [](PageList &pl) { - return PageListIterator{pl, 0}; - }, + [](PageList &pl) { return PageListIterator{pl, 0}; }, py::keep_alive<0, 1>()) .def( "insert", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/pikepdf/_core.pyi new/pikepdf-8.15.1/src/pikepdf/_core.pyi --- old/pikepdf-8.15.0/src/pikepdf/_core.pyi 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/pikepdf/_core.pyi 2024-04-16 11:07:20.000000000 +0200 @@ -419,10 +419,7 @@ self, data: bytes, *, - filter: Name - | Array - | list[Name] - | None = ..., # pylint: disable=redefined-builtin + filter: Name | Array | list[Name] | None = ..., # pylint: disable=redefined-builtin decode_parms: Dictionary | Array | None = ..., type_check: bool = ..., ) -> None: @@ -2819,7 +2816,7 @@ def utf8_to_pdf_doc(utf8: str, unknown: bytes) -> tuple[bool, bytes]: ... def _unparse_content_stream(contentstream: Iterable[Any]) -> bytes: ... def set_flate_compression_level( - level: Literal[-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] + level: Literal[-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9], ) -> int: """Set compression level whenever Flate compression is used. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/pikepdf/_methods.py new/pikepdf-8.15.1/src/pikepdf/_methods.py --- old/pikepdf-8.15.0/src/pikepdf/_methods.py 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/pikepdf/_methods.py 2024-04-16 11:07:20.000000000 +0200 @@ -163,9 +163,7 @@ bio.seek(0) return bio - def _repr_mimebundle_( - self, include=None, exclude=None - ): # pylint: disable=unused-argument + def _repr_mimebundle_(self, include=None, exclude=None): # pylint: disable=unused-argument pdf_data = self._quick_save().read() data = { 'application/pdf': pdf_data, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/pikepdf/_version.py new/pikepdf-8.15.1/src/pikepdf/_version.py --- old/pikepdf-8.15.0/src/pikepdf/_version.py 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/pikepdf/_version.py 2024-04-16 11:07:20.000000000 +0200 @@ -3,4 +3,4 @@ from __future__ import annotations -__version__ = "8.15.0" +__version__ = "8.15.1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/pikepdf/models/matrix.py new/pikepdf-8.15.1/src/pikepdf/models/matrix.py --- old/pikepdf-8.15.0/src/pikepdf/models/matrix.py 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/pikepdf/models/matrix.py 2024-04-16 11:07:20.000000000 +0200 @@ -206,8 +206,10 @@ def encode(self): """Encode this matrix in binary suitable for including in a PDF.""" - return '{:.6f} {:.6f} {:.6f} {:.6f} {:.6f} {:.6f}'.format( - self.a, self.b, self.c, self.d, self.e, self.f + return ( + f'{self.a:.6f} {self.b:.6f} ' + f'{self.c:.6f} {self.d:.6f} ' + f'{self.e:.6f} {self.f:.6f}' ).encode() def __repr__(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/pikepdf/models/metadata.py new/pikepdf-8.15.1/src/pikepdf/models/metadata.py --- old/pikepdf-8.15.0/src/pikepdf/models/metadata.py 2024-04-07 09:41:40.000000000 +0200 +++ new/pikepdf-8.15.1/src/pikepdf/models/metadata.py 2024-04-16 11:07:20.000000000 +0200 @@ -128,7 +128,7 @@ re_xml_illegal_chars = re.compile( r"(?u)[^\x09\x0A\x0D\x20-\U0000D7FF\U0000E000-\U0000FFFD\U00010000-\U0010FFFF]" ) -re_xml_illegal_bytes = re.compile(br"[^\x09\x0A\x0D\x20-\xFF]|�") +re_xml_illegal_bytes = re.compile(rb"[^\x09\x0A\x0D\x20-\xFF]|�") # Might want to check re_xml_illegal_bytes for patterns such as: # br"&#(?:[0-9]|0[0-9]|1[0-9]|2[0-9]|3[0-1] @@ -462,9 +462,7 @@ try: self._xmp = parser(data) except ( - XMLSyntaxError - if self.overwrite_invalid_xml - else NeverRaise # type: ignore + XMLSyntaxError if self.overwrite_invalid_xml else NeverRaise # type: ignore ) as e: if str(e).startswith("Start tag expected, '<' not found") or str( e diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pikepdf-8.15.0/src/pikepdf.egg-info/PKG-INFO new/pikepdf-8.15.1/src/pikepdf.egg-info/PKG-INFO --- old/pikepdf-8.15.0/src/pikepdf.egg-info/PKG-INFO 2024-04-07 09:43:44.000000000 +0200 +++ new/pikepdf-8.15.1/src/pikepdf.egg-info/PKG-INFO 2024-04-16 11:09:00.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pikepdf -Version: 8.15.0 +Version: 8.15.1 Summary: Read and write PDFs with Python, powered by qpdf Author-email: "James R. Barlow" <ja...@purplerock.ca> License: MPL-2.0