From 9d874cefdb818f6dc1ff00e3d59991767016dcd8 Mon Sep 17 00:00:00 2001 From: Andrew Nolan Date: Thu, 7 Nov 2024 15:14:24 -0700 Subject: [PATCH] Update to 0.2.0 and dynamically load version in pyproject --- mosaic/version.py | 2 +- pyproject.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mosaic/version.py b/mosaic/version.py index 694b561..a4635e6 100644 --- a/mosaic/version.py +++ b/mosaic/version.py @@ -1,2 +1,2 @@ -__version_info__ = (0, 1, 1) +__version_info__ = (0, 2, 0) __version__ = '.'.join(str(vi) for vi in __version_info__) diff --git a/pyproject.toml b/pyproject.toml index 8540f1f..179ca58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mosaic" -version = "0.1.1" +dynamic = ["version"] authors = [ { name="E3SM Development Team", email="anolan@lanl.gov" }, ] @@ -64,3 +64,6 @@ ignore_missing_imports = true warn_unused_ignores = true warn_redundant_casts = true warn_unused_configs = true + +[tool.setuptools.dynamic] +version = { attr = "mosaic.version.__version__" }