Skip to content

Commit d6e9abe

Browse files
committed
feat: update Python version to 3.12 and adjust CI configuration accordingly
1 parent 8f702a1 commit d6e9abe

6 files changed

Lines changed: 140 additions & 196 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ jobs:
4343
ref: ${{ github.event.pull_request.head.ref }}
4444
repository: ${{ github.event.pull_request.head.repo.full_name }}
4545

46+
- name: Get python version
47+
id: python-version
48+
run: echo "python-version=$(cat version/python-version)" >> "$GITHUB_OUTPUT"
49+
4650
- name: Install Python
4751
uses: actions/setup-python@v5
4852
with:
49-
python-version: '3.10.6'
53+
python-version: ${{ steps.python-version.outputs.python-version }}
5054

5155
- name: Get uv version
5256
id: uv-version

.github/workflows/openapi-spec.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ jobs:
2424
- name: Checkout Repository
2525
uses: actions/checkout@v4
2626

27-
- name: Setup Python
27+
- name: Get python version
28+
id: python-version
29+
run: echo "python-version=$(cat version/python-version)" >> "$GITHUB_OUTPUT"
30+
31+
- name: Install Python
2832
uses: actions/setup-python@v5
2933
with:
30-
python-version: '3.10.6'
34+
python-version: ${{ steps.python-version.outputs.python-version }}
3135

3236
- name: Get uv version
3337
id: uv-version

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Repo Features:
4141

4242
## Prerequisites
4343

44-
* Python 3.10+
44+
* Python 3.12+
4545
* uv 0.11.3+
4646
* PostgreSQL 18.1+ (if you want to use PostgreSQL as database)
4747

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "fastapi-blueprint"
33
version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
6-
requires-python = ">=3.10,<3.11"
6+
requires-python = ">=3.12,<3.13"
77
dependencies = [
88
"fastapi[standard]>=0.124.4",
99
"uvicorn==0.38.0",

0 commit comments

Comments
 (0)