Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Python 3.12 #144

Merged
merged 6 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
"version": "18"
},
"ghcr.io/devcontainers/features/python:1": {
"toolsToInstall": "pipenv==2023.11.15",
"version": "3.8"
"toolsToInstall": "pipenv==2024.0.2",
"version": "3.12"
}
},
"name": "workspace",
"postCreateCommand": "sudo chmod u+x .submodules/setup/run && .submodules/setup/run",
"remoteUser": "root",
"workspaceMount": "source=${localWorkspaceFolder},target=/codeforlife-workspace,type=bind",
"workspaceFolder": "/codeforlife-workspace"
}
}
10 changes: 5 additions & 5 deletions .github/actions/email/send/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ name = "pypi"
requests = "==2.31.0"

[dev-packages]
black = "==23.1.0"
pytest = "==7.2.1"
mypy = "==1.6.1"
pylint = "==3.0.2"
black = "==24.8.0"
pytest = "==8.3.3"
mypy = "==1.11.2"
pylint = "==3.2.7"
types-requests = "==2.31.0.10"

[requires]
python_version = "3.11"
python_version = "3.12"
227 changes: 103 additions & 124 deletions .github/actions/email/send/Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/email/send/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
steps:
- uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main
with:
python-version: 3.11
python-version: 3.12
working-directory: ${{ github.action_path }}

- name: 📧 Send Email
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/python/docs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
python-version:
description: "The python version to set up."
required: true
default: "3.8"
default: "3.12"
working-directory:
description: "The current working directory."
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/python/setup-environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
python-version:
description: "The python version to set up."
required: true
default: "3.8"
default: "3.12"
working-directory:
description: "The current working directory."
required: true
Expand Down
10 changes: 5 additions & 5 deletions .github/scripts/python/notify-new-contribution-agreement/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ name = "pypi"
requests = "==2.31.0"

[dev-packages]
black = "==23.1.0"
pytest = "==7.2.1"
mypy = "==1.6.1"
pylint = "==3.0.2"
black = "==24.8.0"
pytest = "==8.3.3"
mypy = "==1.11.2"
pylint = "==3.2.7"

[requires]
python_version = "3.11"
python_version = "3.12"
200 changes: 97 additions & 103 deletions .github/scripts/python/notify-new-contribution-agreement/Pipfile.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .github/scripts/python/validate-existing-contributors/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ name = "pypi"
[packages]

[dev-packages]
black = "==23.1.0"
pytest = "==7.2.1"
mypy = "==1.6.1"
pylint = "==3.0.2"
black = "==24.8.0"
pytest = "==8.3.3"
mypy = "==1.11.2"
pylint = "==3.2.7"
types-requests = "==2.31.0.10"

[requires]
python_version = "3.11"
python_version = "3.12"
186 changes: 90 additions & 96 deletions .github/scripts/python/validate-existing-contributors/Pipfile.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .github/scripts/python/validate-new-contributor/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ name = "pypi"
[packages]

[dev-packages]
black = "==23.1.0"
pytest = "==7.2.1"
mypy = "==1.6.1"
pylint = "==3.0.2"
black = "==24.8.0"
pytest = "==8.3.3"
mypy = "==1.11.2"
pylint = "==3.2.7"

[requires]
python_version = "3.11"
python_version = "3.12"
179 changes: 86 additions & 93 deletions .github/scripts/python/validate-new-contributor/Pipfile.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .github/scripts/python/view-pull-request/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ name = "pypi"
[packages]

[dev-packages]
black = "==23.1.0"
pytest = "==7.2.1"
mypy = "==1.6.1"
pylint = "==3.0.2"
black = "==24.8.0"
pytest = "==8.3.3"
mypy = "==1.11.2"
pylint = "==3.2.7"

[requires]
python_version = "3.11"
python_version = "3.12"
179 changes: 86 additions & 93 deletions .github/scripts/python/view-pull-request/Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: "The Python version to set up."
type: number
required: false
default: 3.8
default: 3.12
# TODO: remove this after restructure and standardize source path.
source-path:
description: "The path to the source files."
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
cmd: |
# Set runtime with convention "python{PY_VERSION}".
# The version must have the dot removed: "python3.8" -> "python38".
# The version must have the dot removed: "python3.12" -> "python312".
runtime=python${{ inputs.python-version }}
runtime=${runtime//.}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/configure-submodules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
configure:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.12
WORKING_DIR: .submodules
steps:
- name: 🛫 Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify-new-contribution-agreement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
run-script:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.12
WORKING_DIR: .github/scripts/python/notify-new-contribution-agreement
steps:
- name: 🛫 Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-python-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: "The python version to set up."
type: number
required: false
default: 3.8
default: 3.12
working-directory:
description: "The current working directory."
type: string
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-existing-contributors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_call:

env:
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.12
WORKING_DIR: codeforlife-workspace/.github/scripts/python/validate-existing-contributors

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-new-contributor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
value: ${{ jobs.validate-new-contributor.outputs.email-address }}

env:
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.12
WORKING_DIR: .github/scripts/python/validate-new-contributor

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/view-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
required: true

env:
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.12
WORKING_DIR: .github/scripts/python/view-pull-request

jobs:
Expand Down
10 changes: 5 additions & 5 deletions .submodules/config/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ name = "pypi"
[packages]

[dev-packages]
black = "==23.1.0"
pytest = "==7.2.1"
mypy = "==1.6.1"
pylint = "==3.0.2"
black = "==24.8.0"
pytest = "==8.3.3"
mypy = "==1.11.2"
pylint = "==3.2.7"

[requires]
python_version = "3.8"
python_version = "3.12"
Loading
Loading