From ebea732518a30e959d0a762929504327dbee97d4 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 20 Nov 2025 22:16:35 +0100 Subject: initial PDF generation This adds initial functionality to render PDF overviews of tracks. I was pondering to use reportlab and do it completely in Python, but the effort of doing proper layouting seemed to much. Add to that the fact that Typst has much nicer typesetting, it seems like a no-brainer to use it. --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 891b5e3..bb01629 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ authors = [ { name = "Daniel Schadt", email = "fietsboek@kingdread.de>" }, ] keywords = ["web", "gpx"] -requires-python = ">=3.11" +requires-python = ">=3.11, <4" dependencies = [ "pyramid (>=2, <3)", "pyramid_jinja2 (>=2.10, <3.0)", @@ -42,6 +42,7 @@ dependencies = [ "click-option-group (>=0.5.5, <0.6.0)", "fitparse (>=1.2.0, <2.0.0)", "pillow (>=12.0.0, <13.0.0)", + "typst (>=0.14.1,<0.15.0)", ] [project.urls] -- cgit v1.2.3 From 7db50bc298a37aae2938fef361db1eae9f5ebc35 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 20 Nov 2025 23:11:15 +0100 Subject: add height profile to PDF --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index bb01629..cb173d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ dependencies = [ "fitparse (>=1.2.0, <2.0.0)", "pillow (>=12.0.0, <13.0.0)", "typst (>=0.14.1,<0.15.0)", + "matplotlib (>=3.10.7,<4.0.0)", ] [project.urls] -- cgit v1.2.3