diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 8aefc49..a210cc5 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -22,6 +22,7 @@ jobs: package=$(echo "$PR_TITLE" | awk '{print $2}') from=$(echo "$PR_TITLE" | awk '{print $4}') to=$(echo "$PR_TITLE" | awk '{print $6}') + sed -i "/${package}/s/${from}/${to}/g" binder/environment.yml sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment.yml sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment-docs.yml - name: UpdateDependabotPR commit diff --git a/binder/environment.yml b/binder/environment.yml new file mode 100644 index 0000000..50383d6 --- /dev/null +++ b/binder/environment.yml @@ -0,0 +1,13 @@ +channels: +- conda-forge +dependencies: +- defusedxml =0.7.1 +- coverage +- pandas =2.2.2 +- pyyaml =6.0.1 +- jinja2 =3.1.3 +- paramiko =3.4.0 +- tqdm =4.66.2 +- pympipool =0.8.1 +- cloudpickle =3.0.0 +- flux-core =0.59.0 \ No newline at end of file diff --git a/binder/kernel.json b/binder/kernel.json new file mode 100644 index 0000000..16c69cf --- /dev/null +++ b/binder/kernel.json @@ -0,0 +1,16 @@ +{ + "argv": [ + "flux", + "start", + "/srv/conda/envs/notebook/bin/python", + "-m", + "ipykernel_launcher", + "-f", + "{connection_file}" + ], + "display_name": "Flux", + "language": "python", + "metadata": { + "debugger": true + } +} \ No newline at end of file diff --git a/binder/postBuild b/binder/postBuild new file mode 100644 index 0000000..a868124 --- /dev/null +++ b/binder/postBuild @@ -0,0 +1,6 @@ +# jupyter kernel +mkdir -p /home/jovyan/.local/share/jupyter/kernels/flux +cp binder/kernel.json /home/jovyan/.local/share/jupyter/kernels/flux + +# install pympipool +pip install . --no-deps --no-build-isolation \ No newline at end of file