From d7749690c62f81a2a06bbfb19ff88bf8f4382896 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sun, 8 Sep 2024 21:00:33 +0200 Subject: [PATCH] Drop obsolete dependencies This commit drops all dependencies but backrefs and mdpopups, which are the only really used ones since mdpopups vendors everything it needs. --- dependencies.json | 8 +------- support.py | 6 +++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/dependencies.json b/dependencies.json index cfa7734c..e71af47b 100644 --- a/dependencies.json +++ b/dependencies.json @@ -4,14 +4,8 @@ "backrefs" ], ">=3124": [ - "pygments", - "python-markdown", - "mdpopups", - "python-jinja2", - "markupsafe", "backrefs", - "pymdownx", - "pyyaml" + "mdpopups" ] } } diff --git a/support.py b/support.py index 923d1a69..1a78f896 100644 --- a/support.py +++ b/support.py @@ -100,19 +100,19 @@ def run(self): info["backrefs_version"] = 'Version could not be acquired!' try: - import markdown + from mdpopups import markdown info["markdown_version"] = format_version(markdown, 'version') except Exception: info["markdown_version"] = 'Version could not be acquired!' try: - import jinja2 + from mdpopups import jinja2 info["jinja_version"] = format_version(jinja2, '__version__') except Exception: info["jinja_version"] = 'Version could not be acquired!' try: - import pygments + from mdpopups import pygments info["pygments_version"] = format_version(pygments, '__version__') except Exception: info["pygments_version"] = 'Version could not be acquired!'