Skip to content

Commit 73bf57c

Browse files
authored
chore: upgrade dependencies and add Python 3.15 (#676)
1 parent b52d534 commit 73bf57c

6 files changed

Lines changed: 1077 additions & 1074 deletions

File tree

‎.github/workflows/python-package.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
21+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
2222

2323
steps:
2424
- uses: actions/checkout@v7
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Graphviz
3030
uses: ts-graphviz/setup-graphviz@v2
3131
- name: Install uv
32-
uses: astral-sh/setup-uv@v10.1.0
32+
uses: astral-sh/setup-uv@v10.2.0
3333
with:
3434
enable-cache: true
3535
cache-suffix: "python${{ matrix.python-version }}"
@@ -39,7 +39,7 @@ jobs:
3939
# run ruff
4040
#----------------------------------------------
4141
- name: Linter with ruff
42-
if: matrix.python-version == 3.14
42+
if: matrix.python-version == 3.15
4343
run: |
4444
uv run ruff check .
4545
uv run ruff format --check .
@@ -55,7 +55,7 @@ jobs:
5555
#----------------------------------------------
5656
- name: Upload coverage to Codecov
5757
uses: codecov/codecov-action@v7
58-
if: matrix.python-version == 3.14
58+
if: matrix.python-version == 3.15
5959
with:
6060
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
6161
directory: .

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
- name: Setup Python
1717
uses: actions/setup-python@v7
1818
with:
19-
python-version: '3.14'
19+
python-version: '3.15'
2020

2121
- name: Setup Graphviz
2222
uses: ts-graphviz/setup-graphviz@v2
2323

2424
- name: Install uv
25-
uses: astral-sh/setup-uv@v10.1.0
25+
uses: astral-sh/setup-uv@v10.2.0
2626
with:
2727
enable-cache: true
2828

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
exclude: docs/auto_examples
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
1111
# Ruff version.
12-
rev: v0.16.7
12+
rev: v0.16.10
1313
hooks:
1414
# Run the linter.
1515
- id: ruff

‎docs/releases/3.2.2.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
*Not released yet*
44

5+
## Python compatibility in 3.2.2
6+
7+
Added Python 3.15 on the test matrix. python-statemachine 3.2.2 supports Python 3.10, 3.11, 3.12,
8+
3.13, 3.14 and 3.15.
9+
510
## Bug fixes in 3.2.2
611

712
### Event declarations inside `State.Compound`

‎pyproject.toml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3.12",
1919
"Programming Language :: Python :: 3.13",
2020
"Programming Language :: Python :: 3.14",
21+
"Programming Language :: Python :: 3.15",
2122
"Topic :: Home Automation",
2223
"Topic :: Software Development :: Libraries",
2324
]
@@ -34,18 +35,18 @@ io = ["PyYAML >= 6.0", "jsonschema >= 4.18"]
3435

3536
[dependency-groups]
3637
dev = [
37-
"ruff >=0.16.7",
38+
"ruff >=0.16.10",
3839
"pre-commit",
3940
"mypy",
4041
"pytest >=9.1.1",
4142
"pytest-cov >=7.1.0",
4243
"pytest-sugar >=1.1.1",
43-
"pytest-mock >=3.15.1",
44+
"pytest-mock >=3.16.0",
4445
"pytest-benchmark >=5.3.0",
4546
"pytest-asyncio >=1.4.0",
4647
"pydot",
47-
"django >=6.1.1; python_version >='3.12'",
48-
"django >=5.2.17; python_version <'3.12'",
48+
"django >=6.1.2; python_version >='3.12'",
49+
"django >=5.2.18; python_version <'3.12'",
4950
"pytest-django >=4.14.0",
5051
"Sphinx",
5152
"sphinx-gallery",
@@ -133,7 +134,7 @@ directory = "tmp/htmlcov"
133134
show_contexts = true
134135

135136
[tool.mypy]
136-
python_version = "3.14"
137+
python_version = "3.15"
137138
warn_return_any = true
138139
warn_unused_configs = true
139140
disable_error_code = "annotation-unchecked"

0 commit comments

Comments
 (0)