Skip to content

Commit 99fb008

Browse files
authored
Python 3.13 (#62)
* Add support for python 3.13 *Drop support for python 3.8 * Bump up actions to python 3.13
1 parent 50ace2f commit 99fb008

File tree

14 files changed

+64
-49
lines changed

14 files changed

+64
-49
lines changed

.github/workflows/python-code-style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up Python 3.12
20+
- name: Set up Python 3.13
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.12"
23+
python-version: "3.13"
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip

.github/workflows/python-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up Python 3.12
20+
- name: Set up Python 3.13
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.12"
23+
python-version: "3.13"
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip

.github/workflows/python-quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up Python 3.12
20+
- name: Set up Python 3.13
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.12"
23+
python-version: "3.13"
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
22+
version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2323
os: [ubuntu-latest]
2424
runs-on: ${{ matrix.os }}
2525
steps:

.github/workflows/python-typing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up Python 3.12
20+
- name: Set up Python 3.13
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.12"
23+
python-version: "3.13"
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
1919

20-
- name: Set up Python 3.12
20+
- name: Set up Python 3.13
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.12"
23+
python-version: "3.13"
2424

2525
- name: Install dependencies
2626
run: |

.github/workflows/reusable-github-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- name: Checkout
4040
uses: actions/checkout@v4
4141

42-
- name: Set up Python 3.12
42+
- name: Set up Python 3.13
4343
uses: actions/setup-python@v5
4444
with:
45-
python-version: "3.12"
45+
python-version: "3.13"
4646

4747
- name: Install dependencies
4848
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ docs:
1616
poetry run mkdocs serve
1717

1818
fix:
19-
poetry run ruff . --fix
19+
poetry run ruff check . --fix
2020
poetry run ruff format .
2121

2222
check: poetry-export

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SQLAlchemy bind manager
2-
![Static Badge](https://img.shields.io/badge/Python-3.8_%7C_3.9_%7C_3.10_%7C_3.11_%7C_3.12-blue?logo=python&logoColor=white)
2+
![Static Badge](https://img.shields.io/badge/Python-3.9_%7C_3.10_%7C_3.11_%7C_3.12_%7C_3.13-blue?logo=python&logoColor=white)
33
[![Stable Version](https://img.shields.io/pypi/v/sqlalchemy-bind-manager?color=blue)](https://pypi.org/project/sqlalchemy-bind-manager/)
44
[![stability-beta](https://img.shields.io/badge/stability-beta-33bbff.svg)](https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#beta)
55

pyproject.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ classifiers = [
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
2222
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.8",
2423
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
"Topic :: Database",
2829
"Topic :: Database :: Front-Ends",
2930
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -38,7 +39,7 @@ requires = ["poetry-core", "poetry-dynamic-versioning"]
3839
build-backend = "poetry_dynamic_versioning.backend"
3940

4041
[tool.poetry.dependencies]
41-
python = ">=3.8,<3.13"
42+
python = ">=3.9,<3.14"
4243
pydantic = "^2.1.1"
4344
SQLAlchemy = { version = "~2.0.0", extras = ["asyncio", "mypy"] }
4445

@@ -51,9 +52,11 @@ coverage = ">=6.5.0"
5152
mike = ">=2.0.0"
5253
mkdocs = ">=1.4.3"
5354
mkdocstrings = { version = ">=0.24.0", extras = ["python"] }
55+
mkdocs-awesome-pages-plugin = "^2.9.2"
5456
mkdocs-gen-files = ">=0.5.0"
5557
mkdocs-material = ">=9.1.16"
5658
mypy = ">=0.990"
59+
poetry-plugin-export = "*"
5760
pymdown-extensions = ">=10.0.1"
5861
pytest = "^8.0.0"
5962
pytest-asyncio = ">=0.20.3"
@@ -62,7 +65,6 @@ pytest-factoryboy = ">=2.5.0"
6265
pytest-xdist = ">=3.0.2"
6366
ruff = ">=0.0.263"
6467
tox = "^4.14.1"
65-
mkdocs-awesome-pages-plugin = "^2.9.2"
6668

6769
############################
6870
### Tools configuration ###
@@ -83,11 +85,12 @@ exclude_also = [
8385

8486
[tool.mypy]
8587
files = "sqlalchemy_bind_manager"
86-
python_version = "3.8"
88+
python_version = "3.9"
8789
plugins = "pydantic.mypy"
8890

8991
[tool.pytest.ini_options]
9092
asyncio_mode = "auto"
93+
asyncio_default_fixture_loop_scope = "function"
9194
minversion = "6.0"
9295
addopts = "-n auto --cov-report=term-missing"
9396
testpaths = [
@@ -96,7 +99,7 @@ testpaths = [
9699

97100
[tool.ruff]
98101
extend-exclude = ["docs", ".tox"]
99-
target-version = "py38"
102+
target-version = "py39"
100103

101104
[tool.ruff.lint]
102105
select = [

0 commit comments

Comments
 (0)