Skip to content

Commit fa7e7dc

Browse files
authored
Upgrade to Python 3.12 (#144)
* Upgrade to Python 3.12 * Update example * Upgrade pipenv * Update other dependencies * Test using my branch cos it's the best * Test successful
1 parent 2408581 commit fa7e7dc

File tree

25 files changed

+653
-754
lines changed

25 files changed

+653
-754
lines changed

.devcontainer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
"version": "18"
4343
},
4444
"ghcr.io/devcontainers/features/python:1": {
45-
"toolsToInstall": "pipenv==2023.11.15",
46-
"version": "3.8"
45+
"toolsToInstall": "pipenv==2024.0.2",
46+
"version": "3.12"
4747
}
4848
},
4949
"name": "workspace",
5050
"postCreateCommand": "sudo chmod u+x .submodules/setup/run && .submodules/setup/run",
5151
"remoteUser": "root",
5252
"workspaceMount": "source=${localWorkspaceFolder},target=/codeforlife-workspace,type=bind",
5353
"workspaceFolder": "/codeforlife-workspace"
54-
}
54+
}

.github/actions/email/send/Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ name = "pypi"
77
requests = "==2.31.0"
88

99
[dev-packages]
10-
black = "==23.1.0"
11-
pytest = "==7.2.1"
12-
mypy = "==1.6.1"
13-
pylint = "==3.0.2"
10+
black = "==24.8.0"
11+
pytest = "==8.3.3"
12+
mypy = "==1.11.2"
13+
pylint = "==3.2.7"
1414
types-requests = "==2.31.0.10"
1515

1616
[requires]
17-
python_version = "3.11"
17+
python_version = "3.12"

.github/actions/email/send/Pipfile.lock

+103-124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/email/send/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ runs:
4141
steps:
4242
- uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main
4343
with:
44-
python-version: 3.11
44+
python-version: 3.12
4545
working-directory: ${{ github.action_path }}
4646

4747
- name: 📧 Send Email

.github/actions/python/docs/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
python-version:
55
description: "The python version to set up."
66
required: true
7-
default: "3.8"
7+
default: "3.12"
88
working-directory:
99
description: "The current working directory."
1010
required: true

.github/actions/python/setup-environment/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
python-version:
99
description: "The python version to set up."
1010
required: true
11-
default: "3.8"
11+
default: "3.12"
1212
working-directory:
1313
description: "The current working directory."
1414
required: true

.github/scripts/python/notify-new-contribution-agreement/Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ name = "pypi"
77
requests = "==2.31.0"
88

99
[dev-packages]
10-
black = "==23.1.0"
11-
pytest = "==7.2.1"
12-
mypy = "==1.6.1"
13-
pylint = "==3.0.2"
10+
black = "==24.8.0"
11+
pytest = "==8.3.3"
12+
mypy = "==1.11.2"
13+
pylint = "==3.2.7"
1414

1515
[requires]
16-
python_version = "3.11"
16+
python_version = "3.12"

.github/scripts/python/notify-new-contribution-agreement/Pipfile.lock

+97-103
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/scripts/python/validate-existing-contributors/Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ name = "pypi"
66
[packages]
77

88
[dev-packages]
9-
black = "==23.1.0"
10-
pytest = "==7.2.1"
11-
mypy = "==1.6.1"
12-
pylint = "==3.0.2"
9+
black = "==24.8.0"
10+
pytest = "==8.3.3"
11+
mypy = "==1.11.2"
12+
pylint = "==3.2.7"
1313
types-requests = "==2.31.0.10"
1414

1515
[requires]
16-
python_version = "3.11"
16+
python_version = "3.12"

.github/scripts/python/validate-existing-contributors/Pipfile.lock

+90-96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/scripts/python/validate-new-contributor/Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name = "pypi"
66
[packages]
77

88
[dev-packages]
9-
black = "==23.1.0"
10-
pytest = "==7.2.1"
11-
mypy = "==1.6.1"
12-
pylint = "==3.0.2"
9+
black = "==24.8.0"
10+
pytest = "==8.3.3"
11+
mypy = "==1.11.2"
12+
pylint = "==3.2.7"
1313

1414
[requires]
15-
python_version = "3.11"
15+
python_version = "3.12"

.github/scripts/python/validate-new-contributor/Pipfile.lock

+86-93
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/scripts/python/view-pull-request/Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name = "pypi"
66
[packages]
77

88
[dev-packages]
9-
black = "==23.1.0"
10-
pytest = "==7.2.1"
11-
mypy = "==1.6.1"
12-
pylint = "==3.0.2"
9+
black = "==24.8.0"
10+
pytest = "==8.3.3"
11+
mypy = "==1.11.2"
12+
pylint = "==3.2.7"
1313

1414
[requires]
15-
python_version = "3.11"
15+
python_version = "3.12"

.github/scripts/python/view-pull-request/Pipfile.lock

+86-93
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/backend.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
description: "The Python version to set up."
88
type: number
99
required: false
10-
default: 3.8
10+
default: 3.12
1111
# TODO: remove this after restructure and standardize source path.
1212
source-path:
1313
description: "The path to the source files."
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
cmd: |
7777
# Set runtime with convention "python{PY_VERSION}".
78-
# The version must have the dot removed: "python3.8" -> "python38".
78+
# The version must have the dot removed: "python3.12" -> "python312".
7979
runtime=python${{ inputs.python-version }}
8080
runtime=${runtime//.}
8181

.github/workflows/configure-submodules.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
configure:
1313
runs-on: ubuntu-latest
1414
env:
15-
PYTHON_VERSION: 3.11
15+
PYTHON_VERSION: 3.12
1616
WORKING_DIR: .submodules
1717
steps:
1818
- name: 🛫 Checkout

.github/workflows/notify-new-contribution-agreement.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
run-script:
1212
runs-on: ubuntu-latest
1313
env:
14-
PYTHON_VERSION: 3.11
14+
PYTHON_VERSION: 3.12
1515
WORKING_DIR: .github/scripts/python/notify-new-contribution-agreement
1616
steps:
1717
- name: 🛫 Checkout

.github/workflows/test-python-code.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
description: "The python version to set up."
88
type: number
99
required: false
10-
default: 3.8
10+
default: 3.12
1111
working-directory:
1212
description: "The current working directory."
1313
type: string

.github/workflows/validate-existing-contributors.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_call:
88

99
env:
10-
PYTHON_VERSION: 3.11
10+
PYTHON_VERSION: 3.12
1111
WORKING_DIR: codeforlife-workspace/.github/scripts/python/validate-existing-contributors
1212

1313
jobs:

.github/workflows/validate-new-contributor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
value: ${{ jobs.validate-new-contributor.outputs.email-address }}
1818

1919
env:
20-
PYTHON_VERSION: 3.11
20+
PYTHON_VERSION: 3.12
2121
WORKING_DIR: .github/scripts/python/validate-new-contributor
2222

2323
jobs:

.github/workflows/view-pull-request.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
required: true
2121

2222
env:
23-
PYTHON_VERSION: 3.11
23+
PYTHON_VERSION: 3.12
2424
WORKING_DIR: .github/scripts/python/view-pull-request
2525

2626
jobs:

.submodules/config/Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name = "pypi"
66
[packages]
77

88
[dev-packages]
9-
black = "==23.1.0"
10-
pytest = "==7.2.1"
11-
mypy = "==1.6.1"
12-
pylint = "==3.0.2"
9+
black = "==24.8.0"
10+
pytest = "==8.3.3"
11+
mypy = "==1.11.2"
12+
pylint = "==3.2.7"
1313

1414
[requires]
15-
python_version = "3.8"
15+
python_version = "3.12"

0 commit comments

Comments
 (0)