From eaca9525e375fba6d9507d004c6309351cef1761 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 3 Jul 2026 23:49:50 +0200 Subject: [PATCH 1/3] Bumped dependencies. --- doc/Dependency.rst | 2 +- tests/unit/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Dependency.rst b/doc/Dependency.rst index 2a064b8..022b8a0 100644 --- a/doc/Dependency.rst +++ b/doc/Dependency.rst @@ -94,7 +94,7 @@ the mandatory dependencies too. +---------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+ | **Package** | **Version** | **License** | **Dependencies** | +=====================================================================+=============+========================================================================================+======================+ -| `pytest `__ | ≥9.0 | `MIT `__ | *Not yet evaluated.* | +| `pytest `__ | ≥9.1 | `MIT `__ | *Not yet evaluated.* | +---------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+ | `pytest-cov `__ | ≥7.1 | `MIT `__ | *Not yet evaluated.* | +---------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+ diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index 1084f8f..8d11893 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -4,5 +4,5 @@ Coverage ~= 7.15 # Test Runner -pytest ~= 9.0 +pytest ~= 9.1 pytest-cov ~= 7.1 From 2f4721101f788a500f3cd3a671e7c23303691be3 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 4 Jul 2026 22:44:00 +0200 Subject: [PATCH 2/3] Updated dunder-variables. --- pySystemRDLModel/__init__.py | 14 +++++++++----- pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pySystemRDLModel/__init__.py b/pySystemRDLModel/__init__.py index 9d2fe15..c6f7e53 100644 --- a/pySystemRDLModel/__init__.py +++ b/pySystemRDLModel/__init__.py @@ -48,11 +48,15 @@ from pyTooling.Decorators import export -__author__ = "Patrick Lehmann" -__email__ = "Paebbels@gmail.com" -__copyright__ = "2023-2026, Patrick Lehmann" -__license__ = "Apache License, Version 2.0" -__version__ = "0.3.9" +__author__ = "Patrick Lehmann" +__email__ = "Paebbels@gmail.com" +__copyright__ = "2023-2026, Patrick Lehmann" +__license__ = "Apache License, Version 2.0" +__version__ = "0.3.9" +# __keywords__ = [] +__project_url__ = "https://github.com/edaa-org/pySystemRDLModel" +__documentation_url__ = "https://edaa-org.github.io/pySystemRDLModel" +__issue_tracker_url__ = "https://GitHub.com/edaa-org/pySystemRDLModel/issues" @export diff --git a/pyproject.toml b/pyproject.toml index af5a476..bbba0c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools >= 82.0", + "setuptools >= 83.0", "pyTooling ~= 8.15" ] build-backend = "setuptools.build_meta" From e43bbc2cb4953aebf17ae90efaff0b5da91a3f57 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 4 Jul 2026 22:44:44 +0200 Subject: [PATCH 3/3] Updated Sphinx configuration for LuaLaTeX and Unicode font support. --- doc/conf.py | 68 ++++++++++++++++-------------------- pySystemRDLModel/__init__.py | 2 +- run.ps1 | 2 +- 3 files changed, 33 insertions(+), 39 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index d54be98..3ca36f3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,9 +1,10 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -from sys import path as sys_path -from os.path import abspath -from pathlib import Path +from sys import path as sys_path +from os.path import abspath +from pathlib import Path +from textwrap import dedent from pyTooling.Packaging import extractVersionInformation @@ -11,8 +12,9 @@ # Project configuration # ============================================================================== githubNamespace = "edaa-org" -project = "pySystemRDLModel" -directoryName = project.replace('.', '/') +githubProject = pythonProject = "pySystemRDLModel" +directoryName = pythonProject.replace('.', '/') + # ============================================================================== # Project paths @@ -33,6 +35,7 @@ packageInformationFile = Path(f"../{directoryName}/__init__.py") versionInformation = extractVersionInformation(packageInformationFile) +project = pythonProject author = versionInformation.Author copyright = versionInformation.Copyright version = ".".join(versionInformation.Version.split(".")[:2]) # e.g. 2.3 The short X.Y version. @@ -114,35 +117,26 @@ # ============================================================================== # Options for LaTeX / PDF output # ============================================================================== -from textwrap import dedent - +latex_engine = "lualatex" +latex_use_xindy = False latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - "papersize": "a4paper", - - # The font size ('10pt', '11pt' or '12pt'). - #'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - "preamble": dedent(r""" - % ================================================================================ - % User defined additional preamble code - % ================================================================================ - % Add more Unicode characters for pdfLaTeX. - % - Alternatively, compile with XeLaTeX or LuaLaTeX. - % - https://GitHub.com/sphinx-doc/sphinx/issues/3511 - % - \ifdefined\DeclareUnicodeCharacter - \DeclareUnicodeCharacter{2265}{$\geq$} - \DeclareUnicodeCharacter{21D2}{$\Rightarrow$} - \fi - - - % ================================================================================ - """), - - # Latex figure (float) alignment - #'figure_align': 'htbp', + "papersize": "a4paper", # The paper size ('letterpaper' or 'a4paper'). + "pointsize": "10pt", # The font size ('10pt', '11pt' or '12pt'). + "inputenc": "", # Let LuaLaTeX handle input encoding + "utf8extra": "", + "polyglossia": "", + "babel": r"\usepackage[english]{babel}", + "fontenc": r"\usepackage{fontspec}", # Disable the default T1 font encoding (Essential for LuaLaTeX) + "fontpkg": dedent("""\ + \\usepackage[fontfamily=libertinus]{pytooling} + """), + "passoptionstopackages": dedent("""\ + \\PassOptionsToPackage{verbatimvisiblespace=\\ }{sphinx} + """), +# "sphinxsetup": "verbatimvisiblespace=\\textvisiblespace" +# "figure_align": "htbp", # Latex figure (float) alignment + "makeindex": r"\usepackage[columns=1]{idxlayout}\makeindex", + "printindex": r"\def\twocolumn[#1]{#1}\printindex", } # Grouping the document tree into LaTeX files. List of tuples @@ -150,10 +144,10 @@ # author, documentclass [howto, manual, or own class]). latex_documents = [ ( master_doc, - f"{project}.tex", - f"The {project} Documentation", - f"Patrick Lehmann", - f"manual" + f"{pythonProject}.tex", + f"The {pythonProject.replace("_", r"\_")} Documentation", + "Patrick Lehmann", + "manual" ), ] diff --git a/pySystemRDLModel/__init__.py b/pySystemRDLModel/__init__.py index c6f7e53..aef0703 100644 --- a/pySystemRDLModel/__init__.py +++ b/pySystemRDLModel/__init__.py @@ -52,7 +52,7 @@ __email__ = "Paebbels@gmail.com" __copyright__ = "2023-2026, Patrick Lehmann" __license__ = "Apache License, Version 2.0" -__version__ = "0.3.9" +__version__ = "0.3.10" # __keywords__ = [] __project_url__ = "https://github.com/edaa-org/pySystemRDLModel" __documentation_url__ = "https://edaa-org.github.io/pySystemRDLModel" diff --git a/run.ps1 b/run.ps1 index 4d8e3f3..cd201b2 100644 --- a/run.ps1 +++ b/run.ps1 @@ -33,7 +33,7 @@ Param( ) $PackageName = "pySystemRDLModel" -$PackageVersion = "0.3.9" +$PackageVersion = "0.3.10" # set default values $EnableDebug = [bool]$PSCmdlet.MyInvocation.BoundParameters["Debug"]