Skip to content

Commit

Permalink
refactor: remove xhtml2pdf / rst2pdf workaround
Browse files Browse the repository at this point in the history
Workaround not required anymore, fix included in rst2pdf since version 0.99

related rst2pdf/rst2pdf@6ad348c
  • Loading branch information
wombelix committed Jun 9, 2023
1 parent 85d670d commit da2d3c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions pelican/plugins/pdf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@
import os
import re

from rst2pdf.createpdf import RstToPdf

from pelican import signals
from pelican.generators import Generator
from pelican.readers import MarkdownReader

# Workaround until fixed xhtml2pdf import is included in rst2pdf Release
# https://github.com/rst2pdf/rst2pdf/commit/6ad348cf5a13ae1b884a86574e48ed1e5f8ca135
import xhtml2pdf.default # NOQA isort:skip
from rst2pdf.createpdf import RstToPdf # NOQA isort:skip


logger = logging.getLogger(__name__)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
python = ">=3.8.1,<4.0"
pelican = ">=4.5"
markdown = {version = ">=3.2.2", optional = true}
rst2pdf = ">=0.98"
rst2pdf = ">=0.99"
xhtml2pdf = ">=0.2.5"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit da2d3c9

Please sign in to comment.