From 6c35bf29048ea63e8234287cb6d13ef3a02e372a 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. (cherry picked from commit 20f3b7a7d01675fc4dcc08ccb8580e1a50a01012) --- 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 5ca39438080..76dc70ea752 100644 --- a/pulpcore/plugin/serializers/__init__.py +++ b/pulpcore/plugin/serializers/__init__.py @@ -31,6 +31,7 @@ RepositorySerializer, RepositorySyncURLSerializer, RepositoryVersionRelatedField, + RepositoryVersionSerializer, SingleArtifactContentSerializer, SingleContentArtifactField, TaskGroupOperationResponseSerializer, @@ -78,6 +79,7 @@ "RepositorySerializer", "RepositorySyncURLSerializer", "RepositoryVersionRelatedField", + "RepositoryVersionSerializer", "SingleArtifactContentSerializer", "SingleContentArtifactField", "TaskGroupOperationResponseSerializer",