Skip to content

Commit 139258d

Browse files
committed
use src layout
1 parent 35dbbfa commit 139258d

30 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN ${CONDA_BIN} install --no-pin -qq -y -n base -c conda-forge \
1111
ENV PATH="$PATH:/home/mambauser/.local/bin"
1212

1313
COPY --chown=${HOST_UID:-1000}:mambauser ./pyproject.toml ./README.md ./LICENSE.txt /main/
14-
COPY --chown=${HOST_UID:-1000}:mambauser ./datajoint /main/datajoint
14+
COPY --chown=${HOST_UID:-1000}:mambauser ./src/datajoint /main/src/datajoint
1515

1616
VOLUME /src
1717
WORKDIR /src

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
context: .
4141
dockerfile: Dockerfile
4242
args:
43-
PY_VER: ${PY_VER:-3.8}
43+
PY_VER: ${PY_VER:-3.9}
4444
HOST_UID: ${HOST_UID:-1000}
4545
depends_on:
4646
db:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ profile = "black"
9999

100100
[tool.setuptools]
101101
packages = ["datajoint"]
102+
package-dir = {"" = "src"}
102103

103104
[tool.setuptools.dynamic]
104105
version = { attr = "datajoint.version.__version__"}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)