aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJocelyn Boullier <jocelyn@boullier.bzh>2021-03-01 22:40:09 +0100
committerJocelyn Boullier <jocelyn@boullier.bzh>2021-03-02 21:35:03 +0100
commit9c268d299f9dc605f9d768e557f2887a8f7e80c8 (patch)
treef42e8fc28b7d165ed56863c24f108f07f365c375 /setup.py
parentfeat: copy ToC over from original file (diff)
downloadpaper2remarkable-9c268d299f9dc605f9d768e557f2887a8f7e80c8.tar.gz
paper2remarkable-9c268d299f9dc605f9d768e557f2887a8f7e80c8.zip
feat: use pikepdf instead of PyPDF2, bumps Python min. version to 3.6
Several reasons: 1. PyPDF2 isn't maintained anymore. 2. On PDF files with lots of pages, you hit a recursion limit because of the way PyPDF2 is written. The `_sweepIndirectReferences` function is recursive instead of being iterative. 3. Performances. PyPDF2 is a pure Python library, while pikepdf uses QPDF, a C++ library under the hood. It is much faster. This is quite noticable when processing PDFs such as books. 4. pikepdf fixes PDF. While implementing the ToC feature, I noticed that for some PDFs it didn't show up on the Remarkable, even before processing it. For some reason, simply opening a PDF with pikepdf and saving it again fixes the issue. So we get it fixed for free.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index e529cc2..fb7d21c 100644
--- a/setup.py
+++ b/setup.py
@@ -13,13 +13,13 @@ EMAIL = "gertjanvandenburg@gmail.com"
LICENSE = "MIT"
LICENSE_TROVE = "License :: OSI Approved :: MIT License"
NAME = "paper2remarkable"
-REQUIRES_PYTHON = ">=3.5.0"
+REQUIRES_PYTHON = ">=3.6.0"
URL = "https://github.com/GjjvdBurg/paper2remarkable"
VERSION = None
# What packages are required for this module to be executed?
REQUIRED = [
- "PyPDF2>=1.26",
+ "pikepdf>=2.8.0",
"beautifulsoup4>=4.8",
"html2text>=2020.1.16",
"markdown>=3.1.1",