File tree Expand file tree Collapse file tree
{{ cookiecutter.__package_name_kebab_case }} Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ ENV PYTHONPATH "${PYTHONPATH}:/repo"
5858
5959# Install dependencies (package itself is not installed)
6060COPY pyproject.toml poetry.lock .
61+
6162RUN poetry install --all-extras --no-root
63+ RUN pyenv rehash
6264
6365# update any paths of installed cli tools (from pip)
6466RUN pyenv rehash
Original file line number Diff line number Diff line change @@ -51,9 +51,14 @@ ENV PATH="${PATH}:${POETRY_HOME}/bin"
5151RUN mkdir /repo
5252WORKDIR /repo
5353
54+ # set python path to default
55+ ENV PYTHONPATH "${PYTHONPATH}:/repo"
56+
5457# Install dependencies (package itself is not installed)
5558COPY pyproject.toml poetry.lock .
59+
5660RUN poetry install --all-extras --no-root
61+ RUN pyenv rehash
5762
5863# update any paths of installed cli tools (from pip)
5964RUN pyenv rehash
You can’t perform that action at this time.
0 commit comments