-
-
Notifications
You must be signed in to change notification settings - Fork 107
Changed Dockerfile and pyproject.toml to fix docker build issues #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
f82101d
414cf3b
50d0528
1411cd5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ requires-python = ">=3.6" | |
| license = { text = "MIT" } | ||
|
|
||
| dependencies = [ | ||
| # Keep core dependencies that are needed for the app to run | ||
| # Core dependencies | ||
| "xarray==2022.12.0", | ||
| "pv-site-prediction==0.1.19", | ||
| "pydantic==2.6.2", | ||
|
|
@@ -26,7 +26,14 @@ dependencies = [ | |
| "uvicorn", | ||
| "pydantic_settings", | ||
| "httpx", | ||
| "sentry_sdk" | ||
| "sentry_sdk", | ||
| # Merged optional dependencies | ||
| "streamlit", | ||
| "plotly", | ||
| "huggingface_hub==0.17.3", | ||
| "gdown==5.1.0", | ||
| "fastapi", | ||
| "ocf_vrmapi" | ||
| ] | ||
|
|
||
| [project.urls] | ||
|
|
@@ -36,26 +43,6 @@ dependencies = [ | |
| packages = { find = { include = ["*"] } } | ||
| package-data = { "quartz_solar_forecast" = ["*"] } | ||
|
|
||
| [project.optional-dependencies] | ||
| 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", | ||
| "streamlit", | ||
| "plotly", | ||
| "huggingface_hub==0.17.3", | ||
| "gdown==5.1.0", | ||
| "fastapi", | ||
| ] | ||
|
|
||
| [tool.mypy] | ||
|
|
||
| [tool.ruff] | ||
|
|
@@ -68,4 +55,4 @@ check-untyped-defs = true | |
| warn-return-any = true | ||
| warn-unused-ignores = true | ||
| show-error-codes = true | ||
| warn-unreachable = true | ||
| warn-unreachable = true | ||
|
||

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you do this? I think its nice to split the dependencies, then the user can select which requirements they want to install, for example
pip install -e .[all]i think installs all of themThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterdudfield I've made the modifications to the Docker configuration and updated the pyproject.toml file according to your requirements. I've used the pip installation with the "all" tag since the API requires FastAPI and other dependencies that weren't working with the standard installation.
Lemme know anything else is required!