Skip to content

Commit 97831f9

Browse files
committed
ci: use Python 3.12 in the devcontainer
Python 3.9 reached end of life in October 2025 and 3.10 does at the end of October 2026. Production (U19-pipeline) already runs 3.12, so move the devcontainer base to python:3.12-slim-bookworm (3.12.15). On 3.12, pip resolves datajoint to 2.x, which drops dj.schema and breaks `import element_array_ephys`. Constrain datajoint<2 and setuptools<82 (datajoint<2 imports pkg_resources) in the image, matching the uv constraints in #8. Assisted-by: ClaudeCode:claude-opus-5-5
1 parent 47924ee commit 97831f9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.devcontainer/Dockerfile‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM python:3.9-slim-bookworm@sha256:a02e9c5406c416c504d6c9a1a306ff4080c3173f1008d192f953bd20382a2d5c
1+
FROM python:3.12-slim-bookworm@sha256:bc01d00b6417e4b1b01c331db3a14054b4be954e571ef8bf5748aaf64b66e941
22

33
ENV PATH /usr/local/bin:$PATH
4-
ENV PYTHON_VERSION 3.9.25
4+
ENV PYTHON_VERSION 3.12.15
55

66
RUN \
77
adduser --system --home /home/vscode --disabled-password --shell /bin/bash vscode && \
@@ -32,7 +32,8 @@ COPY ./ /tmp/element-array-ephys/
3232
RUN \
3333
# pipeline dependencies
3434
apt-get install gcc g++ ffmpeg libsm6 libxext6 -y && \
35-
pip install --no-cache-dir -e /tmp/element-array-ephys[elements,tests] && \
35+
# datajoint 2 drops dj.schema; setuptools 82+ drops pkg_resources (used by datajoint<2)
36+
pip install --no-cache-dir -e "/tmp/element-array-ephys[elements,tests]" "datajoint<2" "setuptools<82" && \
3637
# clean up
3738
rm -rf /tmp/element-array-ephys && \
3839
apt-get clean

0 commit comments

Comments
 (0)