Skip to content

Commit 7adda92

Browse files
authored
Merge pull request astanin#348 from hugovk/add-3.13
Add support for Python 3.13
2 parents f99343a + 29e0b1f commit 7adda92

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies

.github/workflows/tabulate.yml

Lines changed: 3 additions & 2 deletions
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 }}
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
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"

test/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def test_preserve_line_breaks_with_maxcolwidths():
490490

491491
def test_maxcolwidths_accepts_list_or_tuple():
492492
"Regression: maxcolwidths can accept a list or a tuple (github issue #214)"
493-
table = [["lorem ipsum dolor sit amet"]*3]
493+
table = [["lorem ipsum dolor sit amet"] * 3]
494494
expected = "\n".join(
495495
[
496496
"+-------------+----------+----------------------------+",

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)