Skip to content

Commit 7958228

Browse files
authored
Upgrade to Python 3.13 (#51)
Closes DEV-11114
1 parent 105499d commit 7958228

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Extended from github.com/jupyter/docker-stacks
44
# See also http://blog.dscpl.com.au/2016/01/roundup-of-docker-issues-when-hosting.html
55

6-
FROM python:3.9-slim-bullseye
6+
FROM python:3.13-slim-bullseye
77

88
LABEL maintainer="Nick Greenfield <nick@onecodex.com>"
99

@@ -92,7 +92,7 @@ RUN wget https://ftp.samba.org/pub/cwrap/nss_wrapper-1.1.2.tar.gz && \
9292
rm -rf nss_wrapper
9393

9494
# Copy `onecodex` installed fonts to local directory
95-
RUN cp /usr/local/lib/python3.9/site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
95+
RUN cp /usr/local/lib/python3.13/site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
9696

9797
# Configure container startup
9898
EXPOSE 8888
@@ -103,8 +103,8 @@ CMD ["jupyter", "notebook"]
103103

104104
# Add assets
105105
RUN mkdir /opt/onecodex/
106-
COPY notebook/notebook.html /usr/local/lib/python3.9/site-packages/notebook/templates
107-
COPY notebook/override.css /usr/local/lib/python3.9/site-packages/notebook/static/notebook/css
106+
COPY notebook/notebook.html /usr/local/lib/python3.13/site-packages/notebook/templates
107+
COPY notebook/override.css /usr/local/lib/python3.13/site-packages/notebook/static/notebook/css
108108
COPY notebook/onecodex.js /home/$NB_USER/.jupyter/custom/
109109
COPY notebook/one-codex-spinner.svg /home/$NB_USER/.jupyter/custom/
110110
COPY notebook/override.css /home/$NB_USER/.jupyter/custom/custom.css
@@ -118,19 +118,19 @@ RUN jupyter nbextension install /usr/local/share/jupyter/customextensions/ \
118118
RUN chmod +x /usr/local/bin/token_notebook.py
119119

120120
# Add patch to jupyter notebook for export to One Codex document portal
121-
COPY notebook/notebook.patch /usr/local/lib/python3.9/site-packages/notebook
122-
RUN cd /usr/local/lib/python3.9/site-packages/notebook \
121+
COPY notebook/notebook.patch /usr/local/lib/python3.13/site-packages/notebook
122+
RUN cd /usr/local/lib/python3.13/site-packages/notebook \
123123
&& patch -p0 < notebook.patch
124124

125125
# Finally fix permissions on everything
126126
# See https://github.com/jupyter/docker-stacks/issues/188
127127
# RUN chown -R $NB_USER:root /home/$NB_USER && chmod -R u+rw,g+rw /home/$NB_USER
128128
RUN chown -R $NB_USER:root /home/$NB_USER && find /home/$NB_USER -type d -exec chmod 775 {} \;
129129

130-
ENV PYTHONPATH "/home/jovyan/.local/lib/python3.9"
130+
ENV PYTHONPATH "/home/jovyan/.local/lib/python3.13"
131131

132132
# Provide full access to the Python directory to allow for pip installs
133-
RUN chown -R $NB_USER:root /usr/local/lib/python3.9
133+
RUN chown -R $NB_USER:root /usr/local/lib/python3.13
134134

135135
# Switch to unprivileged user, jovyan
136136
USER $NB_USER

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ openpyxl
77
xlrd
88
statsmodels
99
onecodex[all,reports]==0.19.1
10-
taxonomy==0.10.0
10+
taxonomy
1111
widgetsnbextension

0 commit comments

Comments
 (0)