From 7874191d3eaccc017fcafc3a0778cb8ea4e2d133 Mon Sep 17 00:00:00 2001 From: Ciheim Brown Date: Mon, 28 Jul 2025 17:22:36 -0400 Subject: [PATCH 1/2] Fixing path to json file --- catalogbuilder/tests/compval.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catalogbuilder/tests/compval.py b/catalogbuilder/tests/compval.py index 60222b6..6c439dc 100755 --- a/catalogbuilder/tests/compval.py +++ b/catalogbuilder/tests/compval.py @@ -9,6 +9,7 @@ import re import math import logging +from importlib.resources import files import urllib.request logger = logging.getLogger('local') @@ -147,7 +148,8 @@ def compval(json_path,json_template_path, vocab, proper_generation, test_failure if json_template_path: json_template = json.load(open(json_template_path)) else: - json_template = json.load(open('catalogbuilder/cats/gfdl_template.json')) + jpath = files('catalogbuilder').joinpath('cats/gfdl_template.json') + json_template = json.load(open(jpath)) #Validate JSON against JSON template comp = (diff(j,json_template)) From 174c935401c093916916b00357aae5123faf3921 Mon Sep 17 00:00:00 2001 From: Ciheim Brown Date: Wed, 30 Jul 2025 12:57:59 -0400 Subject: [PATCH 2/2] v2.0.1. -> v2.0.2 --- meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta.yaml b/meta.yaml index b10f86b..26cf97d 100644 --- a/meta.yaml +++ b/meta.yaml @@ -1,6 +1,6 @@ package: name: catalogbuilder - version: 2.0.1 + version: 2.0.2 source: path: .