From 4fcd2b92f4703addfcd60440ec7bdf92d5eca550 Mon Sep 17 00:00:00 2001 From: Ryan Spangler Date: Tue, 24 May 2022 13:55:25 -0700 Subject: [PATCH] packaging templates with package --- Dockerfile | 19 +++++++++++++++++++ env.yml | 5 +++-- setup.py | 2 ++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70c669b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM continuumio/miniconda3 +# FROM python:3.9-slim + +WORKDIR /home + +COPY env.yml . +RUN conda env create -f env.yml +SHELL ["conda", "run", "-n", "vivarium-models", "/bin/bash", "-c"] +# RUN ["/bin/bash", "-c", "conda", "activate", "vivarium-models"] +# RUN ["conda", "env", "list"] + +ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "vivarium-models", "python", "-m", "vivarium_models.composites.actin_fiber"] + +# RUN conda activate vivarium-models +# RUN conda init bash +# RUN ["conda", "init", "bash"] +# RUN conda activate vivarium-models + + diff --git a/env.yml b/env.yml index 0d3de58..fb055f5 100644 --- a/env.yml +++ b/env.yml @@ -1,9 +1,10 @@ + name: vivarium-models channels: - conda-forge dependencies: - python=3.8 - - readdy + - conda-forge::readdy - pip - pip: - - "-e .[dev]" + - "vivarium_models @ git+https://github.com/simularium/vivarium-models.git" diff --git a/setup.py b/setup.py index 4b71a05..f8f2a9c 100644 --- a/setup.py +++ b/setup.py @@ -80,6 +80,8 @@ keywords="vivarium_models", name="vivarium_models", packages=find_packages(exclude=["tests", "*.tests", "*.tests.*"]), + package_data={ + '': ['templates/*']}, python_requires=">=3.8", setup_requires=setup_requirements, test_suite="vivarium_models/tests",