[tool.poetry]
name = "pody"
version = "0.1.12"
description = "Pod manager for docker, give limited access to docker for clients."
authors = ["Li, Mengxun <mengxunli@whu.edu.cn>", "Li, Jiayu <jiayu.li@whu.edu.cn>"]
readme = "readme.md"
include = ["pody/config.default.toml", "pody/doc/*"]

# https://stackoverflow.com/questions/72037181
[tool.poetry.dependencies]
python = ">=3.10"   # PEP-622
requests = "*"
typer = "0.*"
rich = "*"
docker = {version = "*", optional = true}
nvidia-ml-py = {version = "*", optional = true}
fastapi = {version = "0.*", optional = true}
uvicorn = {version = "0.*", optional = true}
psutil = {version = "*", optional = true}
toml = {version = "*", optional = true}

[tool.poetry.extras]
server = ["docker", "nvidia-ml-py", "fastapi", "uvicorn", "psutil", "toml"]

[tool.poetry.dev-dependencies]
pytest = "*"

[tool.poetry.scripts]
pody-serve = "pody.cli.serve:main"
pody-user = "pody.cli.user:app"
pody-log = "pody.cli.log:app"
pody = "pody.cli.client:app"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"