Skip to content

Commit 91bcab0

Browse files
committed
Fix CI on Python 3.10–3.13 by aligning supported versions and dependencies.
Raise the minimum Python to 3.10 to match the codebase, refresh poetry.lock with pydantic builds that ship cp313 wheels, and update the CI matrix and Poetry version accordingly.
1 parent 7af22d6 commit 91bcab0

6 files changed

Lines changed: 166 additions & 220 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.9", "3.11", "3.12", "3.13"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1515
os: [ubuntu-latest]
1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -27,9 +27,10 @@ jobs:
2727
with:
2828
virtualenvs-create: true
2929
virtualenvs-in-project: true
30+
version: "2.4.1"
3031

3132
- name: Install dependencies
32-
run: poetry install
33+
run: poetry install --no-interaction
3334

3435
- name: Lint with Ruff
3536
run: poetry run ruff check .

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ruff check .
2020
pytest
2121
```
2222

23-
CI must pass on Python 3.9–3.13.
23+
CI must pass on Python 3.10–3.13.
2424

2525
## Project structure
2626

fastapi_jet/generator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
from typing import Union
32

43
import typer
54
from cookiecutter.exceptions import OutputDirExistsException
@@ -20,7 +19,7 @@ def _output_path(template_name: str, folder_name: str, cwd: Path) -> Path:
2019

2120

2221
def generate_template(
23-
template_name: str, context: Union[ProjectContext, AppContext]
22+
template_name: str, context: ProjectContext | AppContext
2423
) -> Path | None:
2524
cwd = Path.cwd()
2625
output_path = _output_path(template_name, context.folder_name, cwd)

fastapi_jet/templates/project/{{cookiecutter.folder_name}}/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{ cookiecutter.package_name }}"
33
version = "0.1.0"
44
description = "{{ cookiecutter.name }} — a modular FastAPI project"
55
readme = "README.md"
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
dependencies = [
88
"fastapi>=0.105.0",
99
"uvicorn[standard]>=0.24.0",

0 commit comments

Comments
 (0)