From 37d94210e5d4bf7349a95f0dca92dd9ec6ad1841 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:21:02 -0400 Subject: [PATCH] Restore version attribute (#192) --- 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")