From ca63690dcea097c9d44ca20bd7ae18ab6041213f Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:15:12 -0400 Subject: [PATCH] Restore version attribute --- carbonplan_data/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/carbonplan_data/__init__.py b/carbonplan_data/__init__.py index b3a789a..f66cd85 100644 --- a/carbonplan_data/__init__.py +++ b/carbonplan_data/__init__.py @@ -8,11 +8,11 @@ import intake try: - __version__ = _version(__name__) + version = _version(__name__) except _PackageNotFoundError: # package is not installed - __version__ = "unknown" - + version = "unknown" +__version__ = version CATALOG_DIR_PATH = pathlib.Path(__file__) MASTER_CATALOG_PATH = str(CATALOG_DIR_PATH.parent / "catalogs/master.yaml")