Skip to content

Commit fd3f528

Browse files
authored
Merge pull request #1723 from Bastian-Krause/bst/3.14
Python 3.14 Support
2 parents b951de1 + e7f9d7d commit fd3f528

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.github/workflows/push-pr-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
11+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
1212
uses: ./.github/workflows/reusable-unit-tests.yml
1313
secrets:
1414
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/scheduled-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
13+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
1414
branch: ['master']
1515
uses: ./.github/workflows/reusable-unit-tests.yml
1616
secrets:

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,12 @@
175175
# -- Options for autodoc --------------------------------------------------
176176

177177
autodoc_member_order = 'bysource'
178+
# TODO: __annotate_func__ can be dropped once
179+
# https://github.com/sphinx-doc/sphinx/commit/78148440556d3e5962771c1025c85b253ccd73c8
180+
# is part of a sphinx release
178181
autodoc_default_options = {
179182
'special-members': True,
183+
'exclude-members': '__annotate_func__',
180184
}
181185
autodoc_mock_imports = ['onewire',
182186
'gi',

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ classifiers = [
2929
"Programming Language :: Python :: 3.11",
3030
"Programming Language :: Python :: 3.12",
3131
"Programming Language :: Python :: 3.13",
32+
"Programming Language :: Python :: 3.14",
3233
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
3334
]
3435
dependencies = [
@@ -188,7 +189,7 @@ signature-mutators = ["labgrid.step.step"]
188189
[tool.tox]
189190
legacy_tox_ini = """
190191
[tox]
191-
envlist = py39, py310, py311, py312, py313
192+
envlist = py39, py310, py311, py312, py313, py314
192193
isolated_build = true
193194
194195
[testenv]

tests/test_fixtures.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ def test_env_with_junit(short_env, short_test, tmpdir):
6262
spawn.close()
6363
assert spawn.exitstatus == 0
6464

65-
def test_help(short_test):
65+
def test_help(short_test, monkeypatch):
66+
# argparse in Python >= 3.14 enables colored output by default,
67+
# disable that to allow argument assertions below
68+
monkeypatch.setenv("NO_COLOR", "1")
69+
6670
with pexpect.spawn(f'pytest --help {short_test}') as spawn:
6771
spawn.expect(pexpect.EOF)
6872
assert b'--lg-coordinator=COORDINATOR_ADDRESS' in spawn.before

0 commit comments

Comments
 (0)