From f1af853860ba327d5624a5eb1093ed131db649b4 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 29 Aug 2022 08:42:46 +0200 Subject: [PATCH 1/4] Add task to auto activate the dev environment on Gitpod --- .gitpod.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index f79fc6f4b9..e05be42274 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -22,7 +22,6 @@ tasks: micromamba activate EOT source /workspace/bin/activate-env.sh - echo "source /workspace/bin/activate-env.sh" >> ~/.bashrc micromamba install -n base -y -c conda-forge python=3.10 nodejs=14 yarn python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop gp sync-done setup @@ -36,6 +35,11 @@ tasks: gp sync-await setup source /workspace/bin/activate-env.sh jlpm watch + + - name: shell + command: | + gp sync-await setup + echo "source /workspace/bin/activate-env.sh" >> ~/.bashrc ports: - port: 8888 From 7c11d73b1141815639c5bd9f76a31ed0698532ca Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 29 Aug 2022 08:44:35 +0200 Subject: [PATCH 2/4] Rename task to `auto-activate` --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index e05be42274..971c54357f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -30,7 +30,7 @@ tasks: source /workspace/bin/activate-env.sh jupyter notebook --no-browser --JupyterNotebookApp.token='' --JupyterNotebookApp.allow_origin=* --JupyterNotebookApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}' - - name: watch + - name: auto-activate command: | gp sync-await setup source /workspace/bin/activate-env.sh From 31d2cadff5f260fed2e6854b38121ecba8e7f4ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Aug 2022 06:45:21 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 971c54357f..93c3a57526 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -35,7 +35,7 @@ tasks: gp sync-await setup source /workspace/bin/activate-env.sh jlpm watch - + - name: shell command: | gp sync-await setup From 331816208c4509f45aaa7c9be177ccb4581ca62e Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 29 Aug 2022 06:57:30 +0000 Subject: [PATCH 4/4] Source the env --- .gitpod.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitpod.yml b/.gitpod.yml index 93c3a57526..86f6728f1b 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -40,6 +40,7 @@ tasks: command: | gp sync-await setup echo "source /workspace/bin/activate-env.sh" >> ~/.bashrc + source /workspace/bin/activate-env.sh ports: - port: 8888