fix: Fix test failures
- fix dependency requirement
- add exception for config file missing
diff --git a/atmosphere/utils.py b/atmosphere/utils.py
index bdb0c3e..cceb2a4 100644
--- a/atmosphere/utils.py
+++ b/atmosphere/utils.py
@@ -15,8 +15,11 @@
def get_legacy_image_repository(config_path: str = CONFIG_FILE) -> str or None:
- with open(config_path, "rb") as fd:
- data = tomli.load(fd)
+ try:
+ with open(config_path, "rb") as fd:
+ data = tomli.load(fd)
+ except FileNotFoundError:
+ return None
if data.get("image_repository", ""):
return data["image_repository"]
diff --git a/poetry.lock b/poetry.lock
index 24424df..96aa370 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -550,7 +550,7 @@
version = "0.18.0"
description = "Python bindings for Jsonnet - The data templating language"
category = "main"
-optional = true
+optional = false
python-versions = "*"
[[package]]
@@ -1341,7 +1341,7 @@
version = "2.1.1"
description = "Python Data Structures for Humans"
category = "main"
-optional = true
+optional = false
python-versions = "*"
[[package]]
@@ -1566,7 +1566,7 @@
[metadata]
lock-version = "1.1"
python-versions = "^3.10"
-content-hash = "4cfb74eb377030e130db915104c6c87052f28fcd1c6908b06e8e85ffadce6700"
+content-hash = "04f95e4f67ab4f3cb7106535e41f4bf2cd2ad3baac730a2e4b4d40f5dfc69068"
[metadata.files]
aiohttp = [
@@ -2051,6 +2051,7 @@
{file = "greenlet-2.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d5b0ff9878333823226d270417f24f4d06f235cb3e54d1103b71ea537a6a86ce"},
{file = "greenlet-2.0.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:be9e0fb2ada7e5124f5282d6381903183ecc73ea019568d6d63d33f25b2a9000"},
{file = "greenlet-2.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0b493db84d124805865adc587532ebad30efa68f79ad68f11b336e0a51ec86c2"},
+ {file = "greenlet-2.0.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:0459d94f73265744fee4c2d5ec44c6f34aa8a31017e6e9de770f7bcf29710be9"},
{file = "greenlet-2.0.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:a20d33124935d27b80e6fdacbd34205732660e0a1d35d8b10b3328179a2b51a1"},
{file = "greenlet-2.0.1-cp37-cp37m-win32.whl", hash = "sha256:ea688d11707d30e212e0110a1aac7f7f3f542a259235d396f88be68b649e47d1"},
{file = "greenlet-2.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:afe07421c969e259e9403c3bb658968702bc3b78ec0b6fde3ae1e73440529c23"},
@@ -2059,6 +2060,7 @@
{file = "greenlet-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:659f167f419a4609bc0516fb18ea69ed39dbb25594934bd2dd4d0401660e8a1e"},
{file = "greenlet-2.0.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:356e4519d4dfa766d50ecc498544b44c0249b6de66426041d7f8b751de4d6b48"},
{file = "greenlet-2.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:811e1d37d60b47cb8126e0a929b58c046251f28117cb16fcd371eed61f66b764"},
+ {file = "greenlet-2.0.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:d38ffd0e81ba8ef347d2be0772e899c289b59ff150ebbbbe05dc61b1246eb4e0"},
{file = "greenlet-2.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:0109af1138afbfb8ae647e31a2b1ab030f58b21dd8528c27beaeb0093b7938a9"},
{file = "greenlet-2.0.1-cp38-cp38-win32.whl", hash = "sha256:88c8d517e78acdf7df8a2134a3c4b964415b575d2840a2746ddb1cc6175f8608"},
{file = "greenlet-2.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:d6ee1aa7ab36475035eb48c01efae87d37936a8173fc4d7b10bb02c2d75dd8f6"},
@@ -2067,6 +2069,7 @@
{file = "greenlet-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:505138d4fa69462447a562a7c2ef723c6025ba12ac04478bc1ce2fcc279a2db5"},
{file = "greenlet-2.0.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cce1e90dd302f45716a7715517c6aa0468af0bf38e814ad4eab58e88fc09f7f7"},
{file = "greenlet-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e9744c657d896c7b580455e739899e492a4a452e2dd4d2b3e459f6b244a638d"},
+ {file = "greenlet-2.0.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:662e8f7cad915ba75d8017b3e601afc01ef20deeeabf281bd00369de196d7726"},
{file = "greenlet-2.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:41b825d65f31e394b523c84db84f9383a2f7eefc13d987f308f4663794d2687e"},
{file = "greenlet-2.0.1-cp39-cp39-win32.whl", hash = "sha256:db38f80540083ea33bdab614a9d28bcec4b54daa5aff1668d7827a9fc769ae0a"},
{file = "greenlet-2.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:b23d2a46d53210b498e5b701a1913697671988f4bf8e10f935433f6e7c332fb6"},
diff --git a/pyproject.toml b/pyproject.toml
index 3b22c3f..c01a85c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,14 +12,14 @@
[tool.poetry.dependencies]
python = "^3.10"
click = "^8.1.3"
-schematics = { version = "^2.1.1", optional = true }
+schematics = "^2.1.1"
+jsonnet = "^0.18.0"
pykube-ng = { version = "^22.7.0", optional = true }
structlog = { version = "^22.1.0", optional = true }
mergedeep = { version = "^1.3.4", optional = true }
taskflow = { version = "^5.0.0", optional = true }
eventlet = { version = "^0.33.1", optional = true }
tomli = { version = "^2.0.1", optional = true }
-jsonnet = { version = "^0.18.0", optional = true }
kopf = { version = "^1.36.0", optional = true, extras = ["uvloop"] }
openstacksdk = { version = "^0.103.0", optional = true }
certbuilder = { version = "^0.14.2", optional = true }