From 2cfad52bcfe86225f665079cce3d4e3fc4596257 Mon Sep 17 00:00:00 2001 From: Alessandrini Antoine Date: Wed, 11 Mar 2026 14:56:59 +0100 Subject: [PATCH 1/2] feat(chore): add version --- pySimBlocks/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pySimBlocks/__init__.py b/pySimBlocks/__init__.py index 9608b3e..b041d86 100644 --- a/pySimBlocks/__init__.py +++ b/pySimBlocks/__init__.py @@ -18,6 +18,13 @@ # Authors: see Authors.txt # ****************************************************************************** +from importlib.metadata import version, PackageNotFoundError + +try: + __version__ = version("pySimBlocks") +except PackageNotFoundError: + __version__ = "unknown" + from pySimBlocks.core import Model, Simulator, SimulationConfig, PlotConfig __all__ = [ From 3faa30bf7437caa2c2159c63ba78e16f6de0694b Mon Sep 17 00:00:00 2001 From: Alessandrini Antoine Date: Wed, 11 Mar 2026 15:09:05 +0100 Subject: [PATCH 2/2] fix(chore): use SPDX licence expression in toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ef53c80..592aa1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,14 +10,14 @@ authors = [ {name = "Antoine Alessandrini", email = "antoine.alessandrini@univ-lille.fr"} ] readme = "README.md" -license = {file = "LICENSE.md"} +license = "LGPL-3.0-or-later" +license-files = ["LICENSE.md"] requires-python = ">=3.10" keywords = ["simulation", "block-diagram", "control", "discrete-time", "pyside6"] classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "Intended Audience :: Education", - "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",