Skip to content

Commit 5dad5e3

Browse files
authored
feat: support python 3.13 (#306)
1 parent 9cf0cb8 commit 5dad5e3

File tree

35 files changed

+244
-4729
lines changed

35 files changed

+244
-4729
lines changed

.github/workflows/generic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
runs-on: ubuntu-latest
119119
strategy:
120120
matrix:
121-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
121+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
122122
current_package: ${{ fromJson(inputs.packages) }}
123123
steps:
124124
- uses: actions/checkout@v4

.vscode/launch.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,6 @@
3434
"envFile": "${workspaceFolder}/src/_example/fastapi/.env",
3535
"justMyCode": false,
3636
},
37-
{
38-
"name": "flask-sqlalchemy_scratch",
39-
"type": "debugpy",
40-
"request": "launch",
41-
"module": "flask",
42-
"cwd": "${workspaceFolder}/src/_example/flask_sqlalchemy_scratch",
43-
"envFile": "${workspaceFolder}/src/_example/flask_sqlalchemy_scratch/.env",
44-
"args": [
45-
"run",
46-
"-h",
47-
"0.0.0.0",
48-
"--reload",
49-
"--without-threads"
50-
],
51-
"justMyCode": false
52-
},
5337
{
5438
"name": "flask-sqlalchemy_package",
5539
"type": "debugpy",

launch_tests_ci_like.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ ARTIFACT_DIR="artifacts_coverages"
44

55
PACKAGES=("agent_toolkit" "datasource_sqlalchemy" "datasource_toolkit" "flask_agent" "datasource_django" "django_agent")
66
# PACKAGES=("datasource_sqlalchemy")
7-
PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12")
8-
# PYTHON_VERSIONS=("3.8" "3.11")
9-
PYTHON_VERSIONS=("3.12")
7+
PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12" "3.13")
8+
# PYTHON_VERSIONS=("3.8" "3.13")
109

1110
# flask related settings
1211
# https://pypi.org/project/Flask/#history
@@ -34,7 +33,7 @@ for sub_version in {0..21}; do
3433
SQLALCHEMY_VERSIONS+=($version)
3534
fi
3635
done
37-
DJANGO_VERSIONS=("3.2" "4.0" "4.1" "4.2" "5.0")
36+
DJANGO_VERSIONS=("3.2" "4.0" "4.1" "4.2" "5.0", "5.1")
3837

3938
# launch test on all versions only if we test 1 package
4039
if [[ ${#PACKAGES[@]} == 1 ]]; then

src/_example/django/poetry.lock

Lines changed: 107 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/_example/django/pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = [ "poetry-core" ]
3+
build-backend = "poetry.core.masonry.api"
4+
15
[tool.poetry]
26
name = "forestadmin-django-demo"
37
version = "0.0.1"
@@ -7,7 +11,7 @@ readme = "README.md"
711
packages = [{ include = "django_demo" }]
812

913
[tool.poetry.dependencies]
10-
python = ">=3.8,<3.13"
14+
python = ">=3.8,<3.14"
1115
django = ">=4.2.0"
1216
python-dotenv = ">= 1.0.0"
1317
str2bool = ">= 1.0"
@@ -21,7 +25,7 @@ SQLAlchemy = ">2.0.0"
2125
# [tool.poetry.group.dev.dependencies]
2226
coverage = "~=6.5"
2327
flake8 = ">=5.0"
24-
freezegun = "~=1.2.0"
28+
freezegun = ">=1.5.0"
2529
pytest = "~=7.1"
2630
pytest-asyncio = "~=0.18,<0.23.2"
2731
pytest-cov = "^4.0.0"

0 commit comments

Comments
 (0)