Skip to content

Commit

Permalink
Merge #195 - Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkKoz authored Oct 3, 2023
2 parents bc70851 + 08f89a0 commit 32fa649
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ RUN apt-get -y update \

COPY --link scripts/build_python.sh /

# ------------------------------------------------------------------------------
FROM builder-py-base as builder-py-3_11
RUN git clone -b v2.3.26 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT \
&& /build_python.sh 3.11.5

# ------------------------------------------------------------------------------
FROM builder-py-base as builder-py-3_12
RUN git clone -b v2.3.26 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT \
&& /build_python.sh 3.12.0rc2

RUN git clone -b v2.3.28 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT \
&& /build_python.sh 3.12.0
# ------------------------------------------------------------------------------
FROM builder-py-base as builder-py-3_13
RUN git clone -b v2.3.28 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT \
&& /build_python.sh 3.13-dev
# ------------------------------------------------------------------------------
FROM python:3.11-slim-bookworm as base

Expand All @@ -56,11 +54,11 @@ RUN apt-get -y update \
&& rm -rf /var/lib/apt/lists/*

COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/
COPY --link --from=builder-py-3_11 /lang/ /lang/
COPY --link --from=builder-py-3_12 /lang/ /lang/
COPY --link --from=builder-py-3_13 /lang/ /lang/

RUN chmod +x /usr/sbin/nsjail \
&& ln -s /lang/python/3.11/ /lang/python/default
&& ln -s /lang/python/3.12/ /lang/python/default

# ------------------------------------------------------------------------------
FROM base as venv
Expand Down
22 changes: 10 additions & 12 deletions requirements/eval-deps.pip
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
anyio[trio]~=3.7
arrow~=1.2
anyio[trio]~=4.0
arrow~=1.3
attrs~=23.1
beautifulsoup4~=4.12
einspect~=0.5
einspect~=0.5 ; python_version == '3.12'
fishhook~=0.2
forbiddenfruit~=0.1
fuzzywuzzy~=0.18
lark~=1.1
matplotlib~=3.7 ; python_version == '3.11' # https://github.com/matplotlib/matplotlib/pull/26582
matplotlib~=3.8 ; python_version == '3.12'
more-itertools~=10.1
networkx~=3.1
numpy~=1.25 ; python_version == '3.11'
numpy==1.26.0rc1 ; python_version == '3.12'
pandas~=2.0 ; python_version == '3.11'
pendulum~=2.1 ; python_version == '3.11' # https://github.com/sdispater/pendulum/issues/696
numpy~=1.26 ; python_version == '3.12'
pandas~=2.1 ; python_version == '3.12'
# pendulum~=2.1 # Doesn't support 3.12, see https://github.com/sdispater/pendulum/issues/696
python-dateutil~=2.8
pyyaml~=6.0
scipy~=1.11
scipy~=1.11 ; python_version == '3.12'
sympy~=1.12
toml~=0.10
typing-extensions~=4.7
typing-extensions~=4.8
tzdata~=2023.3
yarl~=1.9 ; python_version == '3.11' # https://github.com/aio-libs/yarl/issues/894
#yarl~=1.9 # Doesn't support 3.12, see https://github.com/aio-libs/yarl/issues/894

0 comments on commit 32fa649

Please sign in to comment.