Upgrade Python 3.11 (#1844)

* Update Dockerfile

* Update test_python.py

* [TMP] Do not install numba

* test with spark 3.4 rc2

* Update Dockerfile

* install tf with pip in conda

* remove mamba install pip

* Update Dockerfile

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@gmail.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
Bjørn Jørgensen
2023-06-01 13:26:51 +02:00
committed by GitHub
parent 7d8861bf61
commit 5bcf21052b
3 changed files with 4 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
USER ${NB_UID}
# Pin python version here, or set it to "default"
ARG PYTHON_VERSION=3.10
ARG PYTHON_VERSION=3.11
# Setup work directory for backward-compatibility
RUN mkdir "/home/${NB_USER}/work" && \

View File

@@ -10,9 +10,7 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install Tensorflow
RUN mamba install --yes \
'tensorflow' && \
mamba clean --all -f -y && \
# Install Tensorflow with pip
RUN pip install --no-cache-dir tensorflow && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

View File

@@ -5,7 +5,7 @@ import logging
from tests.conftest import TrackedContainer
LOGGER = logging.getLogger(__name__)
EXPECTED_PYTHON_VERSION = "3.10"
EXPECTED_PYTHON_VERSION = "3.11"
def test_python_version(container: TrackedContainer) -> None: