From dd92ef4c6f426e76427e3e71999512879836714b Mon Sep 17 00:00:00 2001 From: taruma sakti Date: Mon, 14 Nov 2022 14:54:20 +0700 Subject: [PATCH 1/3] compatibility 3.9 --- pylayoutfunc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylayoutfunc.py b/pylayoutfunc.py index 724269b..78a220e 100644 --- a/pylayoutfunc.py +++ b/pylayoutfunc.py @@ -1,3 +1,4 @@ +from __future__ import annotations from dash import html, dash_table, dcc import dash_bootstrap_components as dbc from pytemplate import hktemplate From 85a1eb4ce98a6b74bd4aec7cf1def0e027d2b677 Mon Sep 17 00:00:00 2001 From: taruma sakti Date: Mon, 14 Nov 2022 14:54:39 +0700 Subject: [PATCH 2/3] use 3.9.13 --- runtime.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.txt b/runtime.txt index a5da7cc..c6f7782 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.10.5 +python-3.9.13 From c52db4d5cfb6e74444070702cfcbc9ed796287d5 Mon Sep 17 00:00:00 2001 From: taruma sakti Date: Mon, 14 Nov 2022 15:18:58 +0700 Subject: [PATCH 3/3] update env --- environment.yml | 17 +++++++++++++++++ requirements.txt | 29 ++++++++++++++++++----------- 2 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 environment.yml diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..570382b --- /dev/null +++ b/environment.yml @@ -0,0 +1,17 @@ +name: hidrokit-rainfall +channels: + - conda-forge + - defaults +dependencies: + - python=3.9.13 + - pandas=1.5.1 + - dash=2.7.0 + - dash-bootstrap-components=1.2.1 + - plotly=5.11.0 + - statsmodels=0.13.5 + - python-box=6.1.0 + - pyyaml=6.0 + - pip + - pip: + - dash-bootstrap-templates==1.0.7 + - hidrokit==0.4.1 diff --git a/requirements.txt b/requirements.txt index 094a4e7..3499a36 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,19 @@ -dash==2.3.1 -dash_bootstrap_components==1.1.0 -dash_bootstrap_templates==1.0.5 -numpy==1.22.3 -pandas==1.4.2 -plotly==5.7.0 -python_box==6.0.2 -requests==2.27.1 -statsmodels -pyyaml -gunicorn +# PYTHON 3.9.13 + +# available in conda-forge +pandas==1.5.1 +dash==2.7.0 +dash-bootstrap-components==1.2.1 +plotly==5.11.0 +python-box==6.1.0 +pyyaml==6.0 +statsmodels==0.13.5 + +# pip exclusive (available in conda with different name) + +# pip only +dash-bootstrap-templates==1.0.7 hidrokit==0.4.1 + +# server only +gunicorn==20.1.0