From 93e96d3f69298fb2b608e8ed64bd463b5b2f3195 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Dec 19 2019 11:07:28 +0000 Subject: Add an example config file to enable the dist-git plugin This also adds usage information to the README Signed-off-by: Karsten Hopp --- diff --git a/README.rst b/README.rst index 799c039..bd31ee3 100644 --- a/README.rst +++ b/README.rst @@ -28,6 +28,10 @@ This plugin reuses the Pagure configuration, and adds several keys to it. refs. - ``SIG_PREFIXES``: List of prefixes for SIG refs. +To enable this plugin, you need to either point the PAGURE_PLUGIN environment +variable at the pagure_distgit_config file or use the --plugin parameter of +the runserver.py script. + Example configurations ====================== diff --git a/pagure_distgit_config b/pagure_distgit_config new file mode 100644 index 0000000..7bcd436 --- /dev/null +++ b/pagure_distgit_config @@ -0,0 +1,11 @@ +# This file can be used to enable the dist-git plugin by pointing +# the environment variable PAGURE_PLUGIN at it or by using +# the --plugin parameter of the runserver.py script + +import os +import sys + +dir_path = os.path.dirname(os.path.realpath(__file__)) +from pagure_distgit import plugin + +PLUGINS = [plugin.DISTGIT_NS]