From 2b99bfefd0ac05bd0bc309cb6aaf7473194596eb Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Fri, 3 Jan 2025 09:16:50 +0100 Subject: [PATCH] fixes #137 --- lodstorage/__init__.py | 2 +- lodstorage/query.py | 3 ++- lodstorage/version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lodstorage/__init__.py b/lodstorage/__init__.py index 26c36ca..9e78220 100644 --- a/lodstorage/__init__.py +++ b/lodstorage/__init__.py @@ -1 +1 @@ -__version__ = "0.13.3" +__version__ = "0.14.0" diff --git a/lodstorage/query.py b/lodstorage/query.py index e024ad4..c8c17dc 100644 --- a/lodstorage/query.py +++ b/lodstorage/query.py @@ -17,7 +17,6 @@ from pygments.formatters.html import HtmlFormatter from pygments.formatters.latex import LatexFormatter from pygments.lexers import get_lexer_by_name -from pylatexenc.latexencode import unicode_to_latex from tabulate import tabulate # from wikibot.mwTable import MediaWikiTable @@ -259,6 +258,8 @@ def uniCode2Latex(text: str, withConvert: bool = False) -> str: for code in range(8320, 8330): text = text.replace(chr(code), f"$_{code-8320}$") if withConvert: + # workaround - hidden dependency! + from pylatexenc.latexencode import unicode_to_latex latex = unicode_to_latex(text) # workaround {\textbackslash} being returned # latex=latex.replace("{\\textbackslash}",'\\') diff --git a/lodstorage/version.py b/lodstorage/version.py index 910a58c..b1215e6 100644 --- a/lodstorage/version.py +++ b/lodstorage/version.py @@ -15,5 +15,5 @@ class Version(object): name = "pylodstorage" version = lodstorage.__version__ date = "2020-09-10" - updated = "2024-11-02" + updated = "2025-01-03" description = "python List of Dict (Table) Storage library" diff --git a/pyproject.toml b/pyproject.toml index 237276e..b5aef73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ dependencies = [ "tabulate", "numpy", "jsonpickle==1.5.2", - "pylatexenc~=2.10", + # "pylatexenc~=2.10", "pygments", "dicttoxml2", # https://pypi.org/project/dataclasses-json/