diff --git a/lewis/__init__.py b/lewis/__init__.py index 88521108..3691c639 100644 --- a/lewis/__init__.py +++ b/lewis/__init__.py @@ -18,5 +18,7 @@ # along with this program. If not, see . # ********************************************************************* -__version__ = "1.3.3" +from lewis._version import version + +__version__ = version __all__ = [] diff --git a/pyproject.toml b/pyproject.toml index f621df43..3a986d48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,3 +68,6 @@ lewis-control = "lewis.scripts.control:control_simulation" [tool.setuptools.packages.find] exclude=["tests", "tests.*"] + +[tool.setuptools_scm] +version_file = "src/lewis/_version.py"