17
0

Compare commits

2 Commits

Author SHA256 Message Date
fd415ff4fb Accepting request 1267469 from devel:languages:python
- 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/request/show/1267469
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pdfminer.six?expand=0&rev=9
2025-04-16 18:39:13 +00:00
a0f2e1025c - 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
2025-04-07 05:36:55 +00:00
4 changed files with 56 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:548db64879d6bef83d20654389a5d0ab4c1df496d7e13cc982c3109054f31080
size 10951846

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:472876be304ae582565bc73a2fa0f55ca865c459f6e87ad32670661ba419df8c
size 11634513

View File

@@ -1,3 +1,49 @@
-------------------------------------------------------------------
Mon Apr 7 05:17:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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,17 +18,18 @@
%{?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
@@ -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