Skip to content

Commit

Permalink
Move development dependencies to optional dependencies (#221)
Browse files Browse the repository at this point in the history
* move streamlit and other dev tools to optional dependencies

* Moved dependencies in the respected place holder created before

* refactor: reorganize dependencies and add 'all' group
  • Loading branch information
zealous-ideal-monk authored Nov 19, 2024
1 parent e4e6007 commit 3d53ea8
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,27 @@ build-backend = "setuptools.build_meta"
name = "quartz_solar_forecast"
version = "1.0.83"
description = "Open Source Solar Forecasting for a Site"
authors = [
{ name = "Peter Dudfield", email = "[email protected]" }
]
authors = [{ name = "Peter Dudfield", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.6"
license = { text = "MIT" }

[project]
dependencies = [
# Keep core dependencies that are needed for the app to run
"xarray==2022.12.0",
"pv-site-prediction==0.1.19",
"pydantic==2.6.2",
"huggingface_hub==0.17.3", # only for evaluation
"python-dotenv==1.0.1",
"openmeteo-requests==1.2.0",
"requests-cache==1.2.0",
"retry-requests==2.0.0",
"gdown==5.1.0",
"xgboost==2.0.3",
"plotly",
"typer",
"streamlit",
"async_timeout",
"uvicorn",
"fastapi",
"pydantic_settings",
"httpx"
"httpx",
]

[project.urls]
Expand All @@ -42,10 +37,24 @@ packages = { find = { include = ["*"] } }
package-data = { "quartz_solar_forecast" = ["*"] }

[project.optional-dependencies]
dev = []
dev = [
"streamlit",
"plotly",
"huggingface_hub==0.17.3",
"gdown==5.1.0",
"fastapi",
]

# additional vendor-specific dependencies for connecting to inverter APIs
inverters = ["ocf_vrmapi"] # victron
all = ["ocf_vrmapi"]
all = [
"ocf_vrmapi",
"streamlit",
"plotly",
"huggingface_hub==0.17.3",
"gdown==5.1.0",
"fastapi",
]

[tool.mypy]

Expand Down

0 comments on commit 3d53ea8

Please sign in to comment.