Move the Deployment enum from service so we can use it in the config schema
@@ -6,6 +6,7 @@ Common package config attributes so they can be imported both in PackageConfig a
"""
import warnings
import logging
+from enum import Enum
from os import getenv
from os.path import basename
@@ -21,6 +22,12 @@ from packit.constants import PROD_DISTGIT_URL, DISTGIT_NAMESPACE
from packit.sync import SyncFilesItem, iter_srcs
+class Deployment(Enum):
+ dev = "dev"
+ stg = "stg"
+ prod = "prod"
+
+
class CommonPackageConfig:
"""
We want JobConfig to hold all the attributes from PackageConfig so we don't need to
