From d84135356a94d068ab5d40c7c471b5c024d54629 Mon Sep 17 00:00:00 2001 From: Wes John-Alder Date: Tue, 24 Nov 2026 08:04:53 -0500 Subject: [PATCH 1/2] PNE-9649: Bump gemd to 3.1.0 and stop serializing allowed_names gemd 3.1.0 discards ProcessTemplate.allowed_names and leaves it out of the JSON. Drop the field declaration so a Citrine ProcessTemplate dumps the same JSON as its gemd counterpart. Co-Authored-By: Claude Fable 5.2 --- pyproject.toml | 2 +- requirements.txt | 2 +- src/citrine/__version__.py | 2 +- src/citrine/resources/process_template.py | 1 - tests/serialization/test_object_template.py | 1 - tests/serialization/test_process_spec.py | 2 -- 6 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b1d8d3264..5b386fd11 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ dependencies = [ "requests>=2.32.2,<3", "pyjwt>=2,<3", "arrow>=1.0.0,<2", - "gemd>=3,<4", + "gemd>=3.1,<4", "boto3>=1.34.35,<2", "deprecation>=2.1.0,<3", "urllib3>=2.5.0,<3", diff --git a/requirements.txt b/requirements.txt index ff79c80ce..fd15fb17b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ arrow==1.4.0 boto3==1.43.36 deprecation==2.1.0 -gemd==3.0.0 +gemd==3.1.0 pyjwt==2.15.0 requests==2.34.2 tqdm==4.68.3 diff --git a/src/citrine/__version__.py b/src/citrine/__version__.py index fc30498fa..1e41bf8f7 100644 --- a/src/citrine/__version__.py +++ b/src/citrine/__version__.py @@ -1 +1 @@ -__version__ = "5.4.0" +__version__ = "5.4.1" diff --git a/src/citrine/resources/process_template.py b/src/citrine/resources/process_template.py index e5fc838fe..7ae75f971 100644 --- a/src/citrine/resources/process_template.py +++ b/src/citrine/resources/process_template.py @@ -65,7 +65,6 @@ class ProcessTemplate( parameters = Optional(List(_attr_tuple(GEMDParameterTemplate)), "parameters", override=True) allowed_labels = Optional(List(String()), "allowed_labels", override=True) - allowed_names = Optional(List(String()), "allowed_names", override=True) def __init__( self, diff --git a/tests/serialization/test_object_template.py b/tests/serialization/test_object_template.py index 6172e3215..5ea7a8df2 100644 --- a/tests/serialization/test_object_template.py +++ b/tests/serialization/test_object_template.py @@ -45,7 +45,6 @@ def test_object_template_serde(): parameters=[index_template], conditions=[pressure_template], allowed_labels=["Label"], - allowed_names=["first sample", "second sample"], ) assert ProcessTemplate.build(proc_template.dump()) == proc_template diff --git a/tests/serialization/test_process_spec.py b/tests/serialization/test_process_spec.py index 82c107d43..481caad04 100644 --- a/tests/serialization/test_process_spec.py +++ b/tests/serialization/test_process_spec.py @@ -68,7 +68,6 @@ def valid_data(): ] ], "allowed_labels": ["a", "b"], - "allowed_names": ["a name"], "description": "a long description", }, file_links=[{"type": "file_link", "filename": "cake_recipe.txt", "url": "www.baking.com"}], @@ -103,7 +102,6 @@ def test_simple_deserialization(valid_data): ], description="a long description", allowed_labels=["a", "b"], - allowed_names=["a name"], ) assert process_spec.name == "Process 1" assert process_spec.notes == "make sure to use oven mitts" From 066409e2585fcb1ac759392ce7c5ad043dbae747 Mon Sep 17 00:00:00 2001 From: Wes John-Alder Date: Tue, 24 Nov 2026 11:51:36 -0500 Subject: [PATCH 2/2] Update __version__.py --- src/citrine/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/citrine/__version__.py b/src/citrine/__version__.py index 1e41bf8f7..016ab6b2b 100644 --- a/src/citrine/__version__.py +++ b/src/citrine/__version__.py @@ -1 +1 @@ -__version__ = "5.4.1" +__version__ = "5.5.0"