From 7c8ac478db0ac7f3f5c4222cab7f31b416f73618 Mon Sep 17 00:00:00 2001 From: Timothy Mullican <18095326+tjmullicani@users.noreply.github.com> Date: Thu, 1 Dec 2022 11:35:00 -0600 Subject: [PATCH] Add import export support of python content Add import export support of python content --- CHANGES/609.feature | 1 + pulp-glue/pulp_glue/python/context.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 CHANGES/609.feature diff --git a/CHANGES/609.feature b/CHANGES/609.feature new file mode 100644 index 000000000..963377eba --- /dev/null +++ b/CHANGES/609.feature @@ -0,0 +1 @@ +Add import export support of python content diff --git a/pulp-glue/pulp_glue/python/context.py b/pulp-glue/pulp_glue/python/context.py index be10cc79b..22c58ff3b 100644 --- a/pulp-glue/pulp_glue/python/context.py +++ b/pulp-glue/pulp_glue/python/context.py @@ -88,7 +88,10 @@ class PulpPythonRepositoryContext(PulpRepositoryContext): ENTITIES = _("python repositories") ID_PREFIX = "repositories_python_python" VERSION_CONTEXT = PulpPythonRepositoryVersionContext - CAPABILITIES = {"sync": [PluginRequirement("python")]} + CAPABILITIES = { + "sync": [PluginRequirement("python")], + "pulpexport": [PluginRequirement("python")] + } NEEDS_PLUGINS = [PluginRequirement("python", min="3.1.0")] def preprocess_entity(self, body: EntityDefinition, partial: bool = False) -> EntityDefinition: