Skip to content
Snippets Groups Projects
Verified Commit 4f0f0e30 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

update classifiers in setup.py, use py3.11 StrEnum in playbook.py

parent 3af9d1d0
No related branches found
No related tags found
1 merge request!65Feature/small tweaks
Pipeline #84852 failed
"""Module that gathers common API responses and data models."""
import enum
import json
import logging
import threading
import uuid
from enum import StrEnum, auto
from pathlib import Path
from typing import Any
......@@ -21,14 +21,13 @@ from lso.config import DEFAULT_REQUEST_TIMEOUT
logger = logging.getLogger(__name__)
# enum.StrEnum is only available in python 3.11
class PlaybookJobStatus(str, enum.Enum):
class PlaybookJobStatus(StrEnum):
"""Enumerator for status codes of a playbook job that's running."""
#: All is well.
OK = "ok"
OK = auto()
#: An error has occurred.
ERROR = "error"
ERROR = auto()
class PlaybookLaunchResponse(BaseModel):
......
......@@ -36,7 +36,10 @@ setup(
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"Framework :: FastAPI",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
],
python_requires=">=3.11",
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment