Skip to content

Commit

Permalink
🧹 Update python to 3.12 (hedyorg#5134)
Browse files Browse the repository at this point in the history
Update Python

**How to test**
Verify that nothing is broken
  • Loading branch information
Felienne authored Feb 13, 2024
1 parent b78e23b commit 5fb8fb7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim as main
FROM python:3.12-slim as main

# use a non-root user (https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user)
ARG USERNAME=hedy
Expand Down Expand Up @@ -48,4 +48,4 @@ RUN pip3 install --no-cache-dir -r /tmp/requirements.txt
COPY --from=node_builder /app/node_modules /var/tmp/node_modules

EXPOSE 8080
ENV SHELL /bin/bash
ENV SHELL /bin/bash
4 changes: 2 additions & 2 deletions .github/workflows/cypresstests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12
cache: 'pip'
- name: Set up NodeJS 16
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-javascript-on-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
run: |
npm ci
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.12
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.12-slim
COPY requirements.txt /tmp/requirements.txt

RUN apt update && \
Expand Down
1 change: 0 additions & 1 deletion build-tools/github/validate
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ set -eu
scriptdir=$(cd $(dirname $0) && pwd)

# TODOs about extracting by JW 2023-10-03 for PR #4574
$scriptdir/validate-python # TODO extract to separate parallel job
$scriptdir/validate-typescript # TODO extract
$scriptdir/validate-yaml # TODO extract
if [[ "${1:-}" == "--all" ]]; then
Expand Down
17 changes: 0 additions & 17 deletions build-tools/github/validate-python

This file was deleted.

10 changes: 4 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lark==1.1.1
gunicorn==19.9.0
flask-compress==1.4.0
requests==2.31.0
attrs==19.3.0
attrs>=22.2.0
Flask-Commonmark==1.0.4
bcrypt==3.2.0
boto3>=1.16.50
Expand All @@ -13,23 +13,21 @@ ruamel.yaml==0.17.4
docopt==0.6.2
pydantic==1.8.2
lazy==1.4
# pylint can never be upgraded past this version. There is an unresolvable dependency conflict on 'colorama' with awscli==1.*, on Windows.
pylint==2.14.2
awscli>=1.19.88
PySumTypes==0.0.1
beautifulsoup4==4.9.3
regex==2021.8.28
retrying==1.3.3
pytest==6.2.5
pytest==8.0.0
parameterized==0.8.1
Flask-Babel==2.0.0
iso3166~=2.0.2
turtlethread>=0.0.6
pygame==2.1.2
pygame==2.5.2
pre-commit==2.20.0
babel==2.14.0
jinja-partials==0.1.1
hypothesis>=6.75.3
hypothesis==6.98.4
tqdm==4.65.0
pytest-xdist==3.3.1
email-validator==2.1.0.post1
Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.9.18
python-3.12.2

0 comments on commit 5fb8fb7

Please sign in to comment.