Skip to content

Commit

Permalink
Isolate Perseus as optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Feb 26, 2024
1 parent 8ba8a4e commit 026e6f2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ dependencies = [
"pandas",
"scikit-learn",
"nvidia-ml-py",
"pydantic",
"pydantic", # The `zeus.util.pydantic_v1` compatibility layer allows us to unpin Pydantic in most cases.
"rich",
"tyro",
"httpx",
"aiofiles==22.1.0",
]
dynamic = ["version"]

Expand All @@ -39,10 +37,11 @@ Homepage = "https://ml.energy/zeus"
Documentation = "https://ml.energy/zeus"

[project.optional-dependencies]
perseus = ["fastapi[all]", "lowtime"]
# One day FastAPI will drop support for Pydantic V1. Then fastapi has to be pinned as well.
perseus = ["fastapi[all]", "pydantic<2", "lowtime", "aiofiles", "httpx"]
lint = ["ruff", "black==22.6.0"]
test = ["pytest==7.3.2", "pytest-mock==3.10.0", "pytest-xdist==3.3.1"]
dev = ["ruff", "black==22.6.0", "pytest==7.3.2", "pytest-mock==3.10.0", "pytest-xdist==3.3.1"]
dev = ["zeus-ml[perseus,lint,test]"]

[tool.setuptools.packages.find]
where = ["."]
Expand Down

0 comments on commit 026e6f2

Please sign in to comment.