From a0f2e1025cd8d471b05c5f1cc70900f4e361f3d839bb79770ca8e5a7c00e67e3 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 7 Apr 2025 05:36:55 +0000 Subject: [PATCH] - Update to 20250327: * Added + Support for Python 3.13 + Support for zipped jpeg's + Fuzzing harnesses for integration into Google's OSS-Fuzz + Support for setuptools-git-versioning version 2.0.0 * Changed + Reduce memory overhead on runlength encoding by using lists + Using pyproject.toml instead of setup.py + Updated Python 3.7 syntax to 3.8 + Updated all Python version specifications to a minimum of 3.8 + Using absolute instead of relative imports + Using standard library functions for ascii85 and asciihex * Fixed + TypeError when CID character widths are not parseable as floats + TypeError raised by extract_text method with compressed PDF file + PSBaseParser can't handle tokens split across end of buffer + TypeError when CropBox is an indirect object reference + Remove redundant line to be able to recognize rectangles + Support indirect objects for filters + Make sure bytes is bytes where it counts + TypeError when corrupt PDF object reference cannot be parsed as int + TypeError when corrupt PDF literal cannot be converted to str + ValueError when corrupt PDF specifies a negative xref location + ValueError when corrupt PDF specifies an invalid mediabox + RecursionError when corrupt PDF specifies a recursive /Pages object + TypeError when corrupt PDF specifies text-positioning operators with invalid values + inline image parsing fails when stream data contains "EI\n" + TypeError when parsing object reference as mediabox OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdfminer.six?expand=0&rev=16 --- pdfminer.six-20231228.tar.gz | 3 --- pdfminer.six-20250327.tar.gz | 3 +++ python-pdfminer.six.changes | 46 ++++++++++++++++++++++++++++++++++++ python-pdfminer.six.spec | 12 ++++++---- 4 files changed, 56 insertions(+), 8 deletions(-) delete mode 100644 pdfminer.six-20231228.tar.gz create mode 100644 pdfminer.six-20250327.tar.gz diff --git a/pdfminer.six-20231228.tar.gz b/pdfminer.six-20231228.tar.gz deleted file mode 100644 index c84b4a7..0000000 --- a/pdfminer.six-20231228.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:548db64879d6bef83d20654389a5d0ab4c1df496d7e13cc982c3109054f31080 -size 10951846 diff --git a/pdfminer.six-20250327.tar.gz b/pdfminer.six-20250327.tar.gz new file mode 100644 index 0000000..40692c4 --- /dev/null +++ b/pdfminer.six-20250327.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:472876be304ae582565bc73a2fa0f55ca865c459f6e87ad32670661ba419df8c +size 11634513 diff --git a/python-pdfminer.six.changes b/python-pdfminer.six.changes index 40e7d1a..558ffdf 100644 --- a/python-pdfminer.six.changes +++ b/python-pdfminer.six.changes @@ -1,3 +1,49 @@ +------------------------------------------------------------------- +Mon Apr 7 05:17:52 UTC 2025 - Steve Kowalik + +- Update to 20250327: + * Added + + Support for Python 3.13 + + Support for zipped jpeg's + + Fuzzing harnesses for integration into Google's OSS-Fuzz + + Support for setuptools-git-versioning version 2.0.0 + * Changed + + Reduce memory overhead on runlength encoding by using lists + + Using pyproject.toml instead of setup.py + + Updated Python 3.7 syntax to 3.8 + + Updated all Python version specifications to a minimum of 3.8 + + Using absolute instead of relative imports + + Using standard library functions for ascii85 and asciihex + * Fixed + + TypeError when CID character widths are not parseable as floats + + TypeError raised by extract_text method with compressed PDF file + + PSBaseParser can't handle tokens split across end of buffer + + TypeError when CropBox is an indirect object reference + + Remove redundant line to be able to recognize rectangles + + Support indirect objects for filters + + Make sure bytes is bytes where it counts + + TypeError when corrupt PDF object reference cannot be parsed as int + + TypeError when corrupt PDF literal cannot be converted to str + + ValueError when corrupt PDF specifies a negative xref location + + ValueError when corrupt PDF specifies an invalid mediabox + + RecursionError when corrupt PDF specifies a recursive /Pages object + + TypeError when corrupt PDF specifies text-positioning operators with + invalid values + + inline image parsing fails when stream data contains "EI\n" + + TypeError when parsing object reference as mediabox + + Resolving mediabox and pdffont + + Keywords that aren't terminated by the pattern END_KEYWORD before + end-of-stream are parsed + + ValueError wrong error message when specifying codec for text output + + Resolve stream filter parameters + + Reading cmap's with whitespace in the name + + Optimize apply_png_predictor by using lists + * Deprecated + + The third argument (generation number) to PDFObjRef + * Removed + + Support for Python 3.8 + + Deprecated tools, functions and classes + ------------------------------------------------------------------- Sun Jan 7 20:34:47 UTC 2024 - Dirk Müller diff --git a/python-pdfminer.six.spec b/python-pdfminer.six.spec index b93a69c..20e0f0f 100644 --- a/python-pdfminer.six.spec +++ b/python-pdfminer.six.spec @@ -1,7 +1,7 @@ # # spec file for package python-pdfminer.six # -# Copyright (c) 2024 SUSE LLC +# 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 @@ -18,24 +18,25 @@ %{?sle15_python_module_pythons} Name: python-pdfminer.six -Version: 20231228 +Version: 20250327 Release: 0 Summary: PDF parser and analyzer License: MIT URL: https://github.com/pdfminer/pdfminer.six Source: https://github.com/pdfminer/pdfminer.six/archive/%{version}.tar.gz#/pdfminer.six-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module charset-normalizer >= 2.0.0} BuildRequires: %{python_module cryptography >= 36.0.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools-git-versioning} +BuildRequires: %{python_module setuptools_scm >= 8} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-charset-normalizer >= 2.0.0 Requires: python-cryptography >= 36.0.0 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Provides: python-pdfminer3k = %{version} Obsoletes: python-pdfminer3k < %{version} BuildArch: noarch @@ -55,6 +56,7 @@ sed -i '1i #!%{_bindir}/python3' tools/dumppdf.py tools/pdf2txt.py sed -i "s/__VERSION__/%{version}/g" pdfminer/__init__.py %build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_wheel %install @@ -83,6 +85,6 @@ mv %{buildroot}%{_bindir}/pdf2txt.py %{buildroot}%{_bindir}/pdf2txt %python_alternative %{_bindir}/dumppdf %python_alternative %{_bindir}/pdf2txt %{python_sitelib}/pdfminer -%{python_sitelib}/pdfminer.six-*.dist-info +%{python_sitelib}/pdfminer[_.]six-%{version}.dist-info %changelog