Skip to content

Commit b366e41

Browse files
author
Dominik Falkner
committed
Merge remote-tracking branch 'origin-spa/main'
2 parents a68dc91 + e805ade commit b366e41

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template f
4040
cruft create -f https://gitdma.risc-software.at/common/python-package-template
4141
# add for testing: --checkout <BRANCH_NAME>
4242
```
43-
3. Install the environment with `poetry install` and create a container using `docker build -f Dockerfile-test .`
44-
4. [Optional] Update your project template by running `cruft update`
43+
3. Ensure `poetry.lock` file is generated (by running poetry install)
44+
4. Install the environment with `poetry install` and create a container using `docker build -f Dockerfile-test .`
45+
5. [Optional] Update your project template by running `cruft update`
4546

4647
## Parameters
4748

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-cuda‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ ENV PYTHONPATH "${PYTHONPATH}:/repo"
5858

5959
# Install dependencies (package itself is not installed)
6060
COPY pyproject.toml poetry.lock .
61+
6162
RUN poetry install --all-extras --no-root
63+
RUN pyenv rehash
6264

6365
# update any paths of installed cli tools (from pip)
6466
RUN pyenv rehash

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-test‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,14 @@ ENV PATH="${PATH}:${POETRY_HOME}/bin"
5151
RUN mkdir /repo
5252
WORKDIR /repo
5353

54+
# set python path to default
55+
ENV PYTHONPATH "${PYTHONPATH}:/repo"
56+
5457
# Install dependencies (package itself is not installed)
5558
COPY pyproject.toml poetry.lock .
59+
5660
RUN poetry install --all-extras --no-root
61+
RUN pyenv rehash
5762

5863
# update any paths of installed cli tools (from pip)
5964
RUN pyenv rehash

0 commit comments

Comments
 (0)