Skip to content

Commit b578993

Browse files
authored
Merge pull request #207 from realpython/py315
Test with Python 3.15
2 parents 020fbf3 + 9d7963e commit b578993

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/validation.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
8+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
99
steps:
1010
- uses: actions/checkout@v6
1111
- uses: actions/setup-python@v6

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.12",
2525
"Programming Language :: Python :: 3.13",
2626
"Programming Language :: Python :: 3.14",
27+
"Programming Language :: Python :: 3.15",
2728
"Programming Language :: Python :: Implementation :: CPython",
2829
"Topic :: Software Development :: Testing",
2930
]

‎tests/test_pytest_mypy.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ def test_mypy_encoding_warnings(testdir, monkeypatch):
8383
# Use typing.TypedDict or typing_extensions.TypedDict instead.
8484
# https://github.com/python/mypy/pull/15494
8585
expected_warnings += 1
86+
elif MYPY_VERSION < Version("2.3") and PYTHON_VERSION >= Version("3.15"):
87+
# Mypy 2.3 added compiled .so modules for mypy.modulefinder and mypy.build.
88+
# https://github.com/python/mypy/pull/21255
89+
expected_warnings += 1
8690
elif MYPY_VERSION >= Version("2.4"):
8791
# https://github.com/python/mypy/pull/21823
8892
expected_warnings -= 1

‎tox.ini‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ envlist =
88
py312-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
99
py313-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
1010
py314-pytest{ 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{ 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
11+
py315-pytest{ 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{ 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
1112
static
1213
publish
1314

@@ -18,6 +19,7 @@ python =
1819
3.12: py312-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
1920
3.13: py313-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
2021
3.14: py314-pytest{ 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{ 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
22+
3.15: py315-pytest{ 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{ 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
2123

2224
[testenv]
2325
constrain_package_deps = true

0 commit comments

Comments
 (0)