Skip to content

Commit

Permalink
Merge pull request #348 from hugovk/add-3.13
Browse files Browse the repository at this point in the history
Add support for Python 3.13
  • Loading branch information
astanin authored Sep 27, 2024
2 parents f99343a + 29e0b1f commit 7adda92
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tabulate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion test/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def test_preserve_line_breaks_with_maxcolwidths():

def test_maxcolwidths_accepts_list_or_tuple():
"Regression: maxcolwidths can accept a list or a tuple (github issue #214)"
table = [["lorem ipsum dolor sit amet"]*3]
table = [["lorem ipsum dolor sit amet"] * 3]
expected = "\n".join(
[
"+-------------+----------+----------------------------+",
Expand Down
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# for testing and it is disabled by default.

[tox]
envlist = lint, py{38, 39, 310, 311, 312}
envlist = lint, py{38, 39, 310, 311, 312, 313}
isolated_build = True

[gh]
Expand All @@ -17,6 +17,7 @@ python =
3.10: py310-extra
3.11: py311-extra
3.12: py312-extra
3.13: py313-extra

[testenv]
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
Expand Down Expand Up @@ -113,6 +114,22 @@ deps =
pandas
wcwidth

[testenv:py313]
basepython = python3.13
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
deps =
pytest

[testenv:py313-extra]
basepython = python3.13
setenv = PYTHONDEVMODE = 1
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
deps =
pytest
numpy
pandas
wcwidth

[flake8]
max-complexity = 22
max-line-length = 99
Expand Down

0 comments on commit 7adda92

Please sign in to comment.