Skip to content

Commit 90008b8

Browse files
nsoranzomr-c
authored andcommitted
Add support for Python 3.13
Fix #223 .
1 parent 59c4cc4 commit 90008b8

File tree

4 files changed

+35
-31
lines changed

4 files changed

+35
-31
lines changed

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
runs-on: ubuntu-20.04 # 22.04 doesn't support Python 3.6
1919

2020
strategy:
21+
fail-fast: false
2122
matrix:
2223
# The README.rst file mentions the versions tested, please update it as well
2324
py-ver-major: [3]
24-
py-ver-minor: [8, 9, 10, 11, 12]
25+
py-ver-minor: [8, 9, 10, 11, 12, 13]
2526
step: [lint, unit, mypy, bandit]
2627

2728
env:
@@ -37,6 +38,7 @@ jobs:
3738
uses: actions/setup-python@v5
3839
with:
3940
python-version: ${{ env.py-semver }}
41+
allow-prereleases: true
4042
cache: pip
4143
cache-dependency-path: |
4244
requirements.txt

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This is a testing tool for checking the output of Tools and Workflows described
3232
with the Common Workflow Language. Among other uses, it is used to run the CWL
3333
conformance tests.
3434

35-
This is written and tested for Python 3.8, 3.9, 3.10, 3.11, and 3.12.
35+
This is written and tested for Python 3.8, 3.9, 3.10, 3.11, 3.12, and 3.13.
3636

3737
.. contents:: Table of Contents
3838
:local:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ classifiers = [
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
2424
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
2526
"Typing :: Typed",
2627
]
27-
requires-python = ">=3.8,<3.13"
28+
requires-python = ">=3.8,<3.14"
2829
dynamic = ["version", "dependencies"]
2930

3031
[project.readme]

tox.ini

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
envlist =
3-
py3{8,9,10,11,12}-lint,
4-
py3{8,9,10,11,12}-unit,
5-
py3{8,9,10,11,12}-bandit,
6-
py3{8,9,10,11,12}-mypy,
3+
py3{8,9,10,11,12,13}-lint,
4+
py3{8,9,10,11,12,13}-unit,
5+
py3{8,9,10,11,12,13}-bandit,
6+
py3{8,9,10,11,12,13}-mypy,
77
py312-lintreadme,
88
py312-pydocstyle
99

@@ -22,16 +22,17 @@ python =
2222
3.10: py310
2323
3.11: py311
2424
3.12: py312
25+
3.13: py313
2526

2627
[testenv]
2728
skipsdist =
28-
py3{8,9,10,11,12}-!{unit,mypy,lintreadme} = True
29+
py3{8,9,10,11,12,13}-!{unit,mypy,lintreadme} = True
2930

3031
description =
31-
py3{8,9,10,11,12}-unit: Run the unit tests
32-
py3{8,9,10,11,12}-lint: Lint the Python code
33-
py3{8,9,10,11,12}-bandit: Search for common security issues
34-
py3{8,9,10,11,12}-mypy: Check for type safety
32+
py3{8,9,10,11,12,13}-unit: Run the unit tests
33+
py3{8,9,10,11,12,13}-lint: Lint the Python code
34+
py3{8,9,10,11,12,13}-bandit: Search for common security issues
35+
py3{8,9,10,11,12,13}-mypy: Check for type safety
3536
py312-pydocstyle: docstring style checker
3637
py312-lintreadme: Lint the README.rst->.md conversion
3738

@@ -40,36 +41,36 @@ passenv =
4041
GITHUB_*
4142

4243
deps =
43-
py3{8,9,10,11,12}-{unit,mypy}: -rrequirements.txt
44-
py3{8,9,10,11,12}-{unit,mypy}: -rtest-requirements.txt
45-
py3{8,9,10,11,12}-lint: flake8-bugbear
46-
py3{8,9,10,11,12}-lint: black~=23.1
47-
py3{8,9,10,11,12}-bandit: bandit
48-
py3{8,9,10,11,12}-mypy: -rmypy-requirements.txt
44+
py3{8,9,10,11,12,13}-{unit,mypy}: -rrequirements.txt
45+
py3{8,9,10,11,12,13}-{unit,mypy}: -rtest-requirements.txt
46+
py3{8,9,10,11,12,13}-lint: flake8-bugbear
47+
py3{8,9,10,11,12,13}-lint: black~=23.1
48+
py3{8,9,10,11,12,13}-bandit: bandit
49+
py3{8,9,10,11,12,13}-mypy: -rmypy-requirements.txt
4950

5051
set_env =
51-
py3{8,3,10,11,12}-unit: LC_ALL = C.UTF-8
52+
py3{8,3,10,11,12,13}-unit: LC_ALL = C.UTF-8
5253
COV_CORE_SOURCE=cwltest
5354
COV_CORE_CONFIG={toxinidir}/.coveragerc
5455
COV_CORE_DATAFILE={toxinidir}/.coverage.eager
5556

5657
commands =
57-
py3{8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
58-
py3{8,9,10,11,12}-unit: python -m pytest --cov --cov-config={toxinidir}/.coveragerc --cov-append {posargs}
59-
py3{8,9,10,11,12}-unit: coverage xml
60-
py3{8,9,10,11,12}-bandit: bandit --recursive cwltest
61-
py3{8,9,10,11,12}-lint: make flake8
62-
py3{8,9,10,11,12}-lint: make format-check
63-
py3{8,9,10,11,12}-mypy: make mypy
58+
py3{8,9,10,11,12,13}-unit: python -m pip install -U pip setuptools wheel
59+
py3{8,9,10,11,12,13}-unit: python -m pytest --cov --cov-config={toxinidir}/.coveragerc --cov-append {posargs}
60+
py3{8,9,10,11,12,13}-unit: coverage xml
61+
py3{8,9,10,11,12,13}-bandit: bandit --recursive cwltest
62+
py3{8,9,10,11,12,13}-lint: make flake8
63+
py3{8,9,10,11,12,13}-lint: make format-check
64+
py3{8,9,10,11,12,13}-mypy: make mypy
6465

6566
allowlist_externals =
66-
py3{8,9,10,11,12}-lint: flake8
67-
py3{8,9,10,11,12}-lint: black
68-
py3{8,9,10,11,12}-{mypy,shellcheck,lint,unit}: make
67+
py3{8,9,10,11,12,13}-lint: flake8
68+
py3{8,9,10,11,12,13}-lint: black
69+
py3{8,9,10,11,12,13}-{mypy,shellcheck,lint,unit}: make
6970

7071
skip_install =
71-
py3{8,9,10,11,12}-lint: true
72-
py3{8,9,10,11,12}-bandit: true
72+
py3{8,9,10,11,12,13}-lint: true
73+
py3{8,9,10,11,12,13}-bandit: true
7374

7475

7576
[testenv:py312-pydocstyle]

0 commit comments

Comments
 (0)