Skip to content

Commit de466cb

Browse files
committed
Add support for Python 3.13
1 parent f99343a commit de466cb

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/tabulate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ['3.9', '3.10', '3.11', '3.12']
12+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1313

1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v4
1818
with:
1919
python-version: ${{ matrix.python-version }}
20+
allow-prereleases: true
2021
- name: Install dependencies
2122
run: |
2223
python -m pip install --upgrade pip

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers = [
1717
"Programming Language :: Python :: 3.10",
1818
"Programming Language :: Python :: 3.11",
1919
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
2021
"Topic :: Software Development :: Libraries",
2122
]
2223
requires-python = ">=3.9"

tox.ini

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# for testing and it is disabled by default.
99

1010
[tox]
11-
envlist = lint, py{38, 39, 310, 311, 312}
11+
envlist = lint, py{38, 39, 310, 311, 312, 313}
1212
isolated_build = True
1313

1414
[gh]
@@ -17,6 +17,7 @@ python =
1717
3.10: py310-extra
1818
3.11: py311-extra
1919
3.12: py312-extra
20+
3.13: py313-extra
2021

2122
[testenv]
2223
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
@@ -113,6 +114,22 @@ deps =
113114
pandas
114115
wcwidth
115116

117+
[testenv:py313]
118+
basepython = python3.13
119+
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
120+
deps =
121+
pytest
122+
123+
[testenv:py313-extra]
124+
basepython = python3.13
125+
setenv = PYTHONDEVMODE = 1
126+
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
127+
deps =
128+
pytest
129+
numpy
130+
pandas
131+
wcwidth
132+
116133
[flake8]
117134
max-complexity = 22
118135
max-line-length = 99

0 commit comments

Comments
 (0)