Skip to content

Commit d3b069c

Browse files
chore(python): upgrade as high as it works (#854)
* chore(python): upgrade as high as it works There are some limitations. Docs have an open issue dask/dask-sphinx-theme#68 which locks us on python 3.11. Chartpress (https://github.com/jupyterhub/chartpress) limits us from going above 3.12 on the helm builds. Issue #850 * chore(python): update python versions in dockerfiles * Update Dockerfile * refreeze dockerfile * new chartpress * minimize golang/python version matrix * Update build-publish-helm-chart.yaml * Update test.yaml * Restore unrelated change --------- Co-authored-by: Erik Sundell <[email protected]>
1 parent 3a53345 commit d3b069c

9 files changed

+11
-14
lines changed

.github/workflows/build-publish-docs.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- uses: actions/setup-python@v5
3939
with:
4040
python-version: "3.11"
41+
# ref https://github.com/dask/dask-sphinx-theme/issues/68
4142

4243
- name: Install Python docs requirements
4344
run: |
@@ -64,7 +65,7 @@ jobs:
6465
- uses: actions/setup-python@v5
6566
with:
6667
python-version: "3.11"
67-
68+
# ref https://github.com/dask/dask-sphinx-theme/issues/68
6869
- name: Install Python docs requirements
6970
run: |
7071
DASK_GATEWAY_SERVER__NO_PROXY=true pip install -r docs/requirements.txt

.github/workflows/build-publish-helm-chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828
- uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.11"
30+
python-version: "3.13"
3131

3232
- name: Install chart publishing dependencies (chartpress, pyyaml, helm)
3333
run: |

.github/workflows/build-publish-python-packages.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- uses: actions/setup-go@v5
7070
- uses: actions/setup-python@v5
7171
with:
72-
python-version: "3.11"
72+
python-version: "3.13"
7373

7474
- name: Install build package
7575
run: |

.github/workflows/refreeze-dockerfile-requirements-txt.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
--volume=$PWD:/opt/${{ matrix.image }} \
4040
--workdir=/opt/${{ matrix.image }} \
4141
--user=root \
42-
python:3.11-slim-bullseye \
42+
python:3.13-slim-bullseye \
4343
sh -c 'pip install pip-tools==6.* && pip-compile --upgrade --output-file=Dockerfile.requirements.txt Dockerfile.requirements.in'
4444
4545
- name: git diff

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
fetch-depth: 0
167167
- uses: actions/setup-python@v5
168168
with:
169-
python-version: "3.11"
169+
python-version: "3.13"
170170

171171
# Starts a k8s cluster with NetworkPolicy enforcement and installs both
172172
# kubectl and helm

dask-gateway-server/Dockerfile.requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.13
33
# by the following command:
44
#
55
# Use "Run workflow" button at https://github.com/dask/dask-gateway/actions/workflows/refreeze-dockerfile-requirements-txt.yaml

dask-gateway/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# psutils, a dependency of distributed, is currently the sole reason we have to
2222
# have this build stage.
2323
#
24-
FROM python:3.11-bullseye as build-stage
24+
FROM python:3.13-bullseye as build-stage
2525

2626
# Build wheels
2727
#
@@ -40,7 +40,7 @@ RUN --mount=type=cache,target=${PIP_CACHE_DIR} \
4040
# The final stage
4141
# ---------------
4242
#
43-
FROM python:3.11-slim-bullseye as slim-stage
43+
FROM python:3.13-slim-bullseye as slim-stage
4444

4545
# Set labels based on the Open Containers Initiative (OCI):
4646
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys

dask-gateway/Dockerfile.requirements.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.13
33
# by the following command:
44
#
55
# Use "Run workflow" button at https://github.com/dask/dask-gateway/actions/workflows/refreeze-dockerfile-requirements-txt.yaml
@@ -41,8 +41,6 @@ fsspec==2024.12.0
4141
# via dask
4242
idna==3.10
4343
# via yarl
44-
importlib-metadata==8.5.0
45-
# via dask
4644
jinja2==3.1.5
4745
# via
4846
# bokeh
@@ -118,5 +116,3 @@ yarl==1.18.3
118116
# via aiohttp
119117
zict==3.0.0
120118
# via distributed
121-
zipp==3.21.0
122-
# via importlib-metadata

dev-environment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ name: dask-gateway-dev
1919
channels:
2020
- conda-forge
2121
dependencies:
22-
- python=3.11
22+
- python=3.13
2323
- pip
2424

2525
# Golang with compiler is required to compile dask-gateway-server's bundled

0 commit comments

Comments
 (0)