From 71aa3d8b2b6aec1332c0ed35e3d9b812e0442cdd Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Wed, 15 May 2024 16:38:27 -0400 Subject: [PATCH] chore: use poetry for python dependencies --- Dockerfile | 2 ++ pyproject.toml | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pyproject.toml diff --git a/Dockerfile b/Dockerfile index ca3c4bc..6d2b4d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,8 @@ EOF # Strip all the binaries #RUN find -L /spack/opt/spack -type f -exec readlink -f '{}' \; | xargs file -i | grep 'charset=binary' | grep 'x-executable\|x-archive\|x-sharedlib' | awk -F: '{print $1}' | xargs strip -S +RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local python3 - + RUN sed -i 's/ exec "\/bin\/bash"/ exec "\/bin\/bash" "-l"/g' /opt/nvidia/nvidia_entrypoint.sh COPY <<"EOF" /tmp/patch_spack_default_modules.yaml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7310325 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[tool.poetry] +name = "esi-shell" +description = "" +authors = ["BNL NPPS"] +readme = "README.md" +package-mode = false + +[tool.poetry.dependencies] +python = "^3.10" +ipython = "^8.24.0" +numpy = "^1.26.4" +pyvista = "^0.43.8" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api"