From c490b79e59ce308e6ddad0394c0917c0921e402d Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Fri, 19 Dec 2025 11:57:21 -0300 Subject: [PATCH] Expose RepositoryVersionSerializer in the plugin API In pulpcore 3.88 it was added a feature that would the return value of task functions, and those return must be serializable or None. In 3.100 that would be required by pulpcore, so plugins that wante to adapt before might use the RepositoryVersionSerializer. In this case, regardless of whether pulpcore >=3.88 or <3.88 is used, the plugin must be able to import the serializer or it will throw a runtime import error. --- pulpcore/plugin/serializers/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pulpcore/plugin/serializers/__init__.py b/pulpcore/plugin/serializers/__init__.py index ddd428d430a..7e0798f458a 100644 --- a/pulpcore/plugin/serializers/__init__.py +++ b/pulpcore/plugin/serializers/__init__.py @@ -31,6 +31,7 @@ RepositorySerializer, RepositorySyncURLSerializer, RepositoryVersionRelatedField, + RepositoryVersionSerializer, SingleArtifactContentSerializer, SingleContentArtifactField, TaskGroupOperationResponseSerializer, @@ -79,6 +80,7 @@ "RepositorySerializer", "RepositorySyncURLSerializer", "RepositoryVersionRelatedField", + "RepositoryVersionSerializer", "SingleArtifactContentSerializer", "SingleContentArtifactField", "TaskGroupOperationResponseSerializer",