Skip to content

Commit cb5e2f9

Browse files
authored
Merge pull request #1611 from consideRatio/pr/misc-updates
breaking: test and use Python 3.11 in Helm chart image, up from Python 3.9
2 parents e27f63f + a43842f commit cb5e2f9

File tree

8 files changed

+19
-25
lines changed

8 files changed

+19
-25
lines changed

.github/workflows/diff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020

2121
jobs:
2222
diff-rendered-templates:
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-22.04
2424
steps:
2525
- uses: actions/checkout@v3
2626
with:
@@ -35,7 +35,7 @@ jobs:
3535

3636
- uses: actions/setup-python@v4
3737
with:
38-
python-version: "3.9"
38+
python-version: "3.11"
3939

4040
- name: Install helm diff plugin, update local chart dependencies
4141
run: |

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
fetch-depth: 0
4242
- uses: actions/setup-python@v4
4343
with:
44-
python-version: "3.9"
44+
python-version: "3.11"
4545

4646
- name: Set up QEMU (for docker buildx)
4747
uses: docker/setup-qemu-action@v2
@@ -109,7 +109,7 @@ jobs:
109109
fetch-depth: 0
110110
- uses: actions/setup-python@v4
111111
with:
112-
python-version: "3.9"
112+
python-version: "3.11"
113113
- name: Install pypa/build
114114
run: python -mpip install build
115115
- name: Build a sdist, and a binary wheel from the sdist

.github/workflows/test-docker-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# - https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/local-registry.md
2929
# - https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/multi-platform.md
3030
build_images:
31-
runs-on: ubuntu-20.04
31+
runs-on: ubuntu-22.04
3232
steps:
3333
- uses: actions/checkout@v3
3434
with:
@@ -38,7 +38,7 @@ jobs:
3838

3939
- uses: actions/setup-python@v4
4040
with:
41-
python-version: "3.9"
41+
python-version: "3.11"
4242

4343
- name: Install chartpress
4444
run: pip install chartpress

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828

2929
jobs:
3030
lint:
31-
runs-on: ubuntu-20.04
31+
runs-on: ubuntu-22.04
3232
steps:
3333
- uses: actions/checkout@v3
3434

@@ -42,7 +42,7 @@ jobs:
4242
# in small things. Unfortunately there is no easy way to share steps between
4343
# jobs or have "template" jobs, so we use `if` conditions on steps
4444
tests:
45-
runs-on: ubuntu-20.04
45+
runs-on: ubuntu-22.04
4646
timeout-minutes: 10
4747

4848
permissions:
@@ -154,7 +154,7 @@ jobs:
154154
- uses: actions/setup-python@v4
155155
id: setup-python
156156
with:
157-
python-version: "3.9"
157+
python-version: "3.11"
158158

159159
- name: Cache pip
160160
uses: actions/cache@v3
@@ -349,7 +349,7 @@ jobs:
349349
if: ${{ always() }}
350350

351351
test-local:
352-
runs-on: ubuntu-20.04
352+
runs-on: ubuntu-22.04
353353
timeout-minutes: 5
354354

355355
permissions:

.github/workflows/watch-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
update-image-dependencies:
2020
# Don't run this job on forks
2121
if: github.repository == 'jupyterhub/binderhub'
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-22.04
2323

2424
strategy:
2525
fail-fast: false

ci/refreeze

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ docker run --rm \
1010
--volume="$PWD:/io" \
1111
--workdir=/io \
1212
--user=root \
13-
python:3.9-bullseye \
13+
python:3.11-bullseye \
1414
sh -c 'pip install pip-tools==6.* && pip-compile --upgrade helm-chart/images/binderhub/requirements.in'

helm-chart/images/binderhub/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# NOTE: If the image version is updated, also update it in ci/refreeze!
88
#
9-
FROM python:3.9-bullseye as build-stage
9+
FROM python:3.11-bullseye as build-stage
1010
WORKDIR /build-stage
1111

1212
# install node as required to build a binderhub wheel
@@ -23,14 +23,14 @@ COPY . .
2323
RUN --mount=type=cache,target=${PIP_CACHE_DIR} \
2424
pip install build \
2525
&& pip wheel \
26-
. \
27-
pycurl \
28-
-r helm-chart/images/binderhub/requirements.txt
26+
. \
27+
pycurl \
28+
-r helm-chart/images/binderhub/requirements.txt
2929

3030

3131
# The final stage
3232
# ---------------
33-
FROM python:3.9-slim-bullseye
33+
FROM python:3.11-slim-bullseye
3434

3535
ENV PYTHONUNBUFFERED=1
3636
ENV DEBIAN_FRONTEND=noninteractive

helm-chart/images/binderhub/requirements.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# Use the "Run workflow" button at https://github.com/jupyterhub/binderhub/actions/workflows/watch-dependencies.yaml
@@ -66,8 +66,6 @@ grpcio-status==1.51.1
6666
# via google-api-core
6767
idna==3.4
6868
# via requests
69-
importlib-metadata==6.0.0
70-
# via jupyterhub
7169
jinja2==3.1.2
7270
# via
7371
# -r helm-chart/images/binderhub/../../../requirements.txt
@@ -156,14 +154,12 @@ rsa==4.9
156154
# via google-auth
157155
ruamel-yaml==0.17.21
158156
# via jupyter-telemetry
159-
ruamel-yaml-clib==0.2.7
160-
# via ruamel-yaml
161157
six==1.16.0
162158
# via
163159
# google-auth
164160
# kubernetes
165161
# python-dateutil
166-
sqlalchemy==1.4.45
162+
sqlalchemy==1.4.46
167163
# via
168164
# alembic
169165
# jupyterhub
@@ -185,8 +181,6 @@ websocket-client==1.4.2
185181
# via
186182
# docker
187183
# kubernetes
188-
zipp==3.11.0
189-
# via importlib-metadata
190184

191185
# The following packages are considered to be unsafe in a requirements file:
192186
# setuptools

0 commit comments

Comments
 (0)