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__ = [ 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",