Skip to content

Commit 3d53ea8

Browse files
Move development dependencies to optional dependencies (#221)
* 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
1 parent e4e6007 commit 3d53ea8

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

pyproject.toml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,27 @@ build-backend = "setuptools.build_meta"
66
name = "quartz_solar_forecast"
77
version = "1.0.83"
88
description = "Open Source Solar Forecasting for a Site"
9-
authors = [
10-
{ name = "Peter Dudfield", email = "info@openclimatefix.org" }
11-
]
9+
authors = [{ name = "Peter Dudfield", email = "info@openclimatefix.org" }]
1210
readme = "README.md"
1311
requires-python = ">=3.6"
1412
license = { text = "MIT" }
1513

14+
[project]
1615
dependencies = [
16+
# Keep core dependencies that are needed for the app to run
1717
"xarray==2022.12.0",
1818
"pv-site-prediction==0.1.19",
1919
"pydantic==2.6.2",
20-
"huggingface_hub==0.17.3", # only for evaluation
2120
"python-dotenv==1.0.1",
2221
"openmeteo-requests==1.2.0",
2322
"requests-cache==1.2.0",
2423
"retry-requests==2.0.0",
25-
"gdown==5.1.0",
2624
"xgboost==2.0.3",
27-
"plotly",
2825
"typer",
29-
"streamlit",
3026
"async_timeout",
3127
"uvicorn",
32-
"fastapi",
3328
"pydantic_settings",
34-
"httpx"
29+
"httpx",
3530
]
3631

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

4439
[project.optional-dependencies]
45-
dev = []
40+
dev = [
41+
"streamlit",
42+
"plotly",
43+
"huggingface_hub==0.17.3",
44+
"gdown==5.1.0",
45+
"fastapi",
46+
]
47+
4648
# additional vendor-specific dependencies for connecting to inverter APIs
4749
inverters = ["ocf_vrmapi"] # victron
48-
all = ["ocf_vrmapi"]
50+
all = [
51+
"ocf_vrmapi",
52+
"streamlit",
53+
"plotly",
54+
"huggingface_hub==0.17.3",
55+
"gdown==5.1.0",
56+
"fastapi",
57+
]
4958

5059
[tool.mypy]
5160

0 commit comments

Comments
 (0)