From 5e236d234cdd136198955f82b50ec1d28e230fbe Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Wed, 24 Jul 2024 22:07:14 +0300 Subject: [PATCH] Fix compatibility with pyPDF 4.3.x --- psutils/transformers.py | 2 +- pyproject.toml | 4 ++-- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/psutils/transformers.py b/psutils/transformers.py index dc5f1d3..31465f7 100644 --- a/psutils/transformers.py +++ b/psutils/transformers.py @@ -381,7 +381,7 @@ def __init__( super().__init__() self.outfile = outfile self.reader = reader - self.writer = PdfWriter(self.outfile) + self.writer = PdfWriter() self.draw = draw self.specs = specs diff --git a/pyproject.toml b/pyproject.toml index e11a94b..25755f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ urls = {Homepage = "https://github.com/rrthomas/psutils"} requires-python = ">= 3.9" dependencies = [ "puremagic >= 1.26", - "pypdf ~= 4.2.0", + "pypdf >= 4.3.0", ] classifiers = [ "Environment :: Console", @@ -35,7 +35,7 @@ requires = [ "setuptools >= 60; python_version >= \"3.12\"", "pytest-datafiles", "puremagic >= 1.26", - "pypdf ~= 4.2.0", + "pypdf >= 4.3.0", "Wand", ] diff --git a/tox.ini b/tox.ini index 5abafb5..ccfba9b 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = py39,py310,py311,py312 [testenv] deps = argparse-manpage >= 4.2 - pypdf ~= 4.2.0 + pypdf >= 4.3.0 Wand mypy pylint