Skip to content

Commit af6d9a2

Browse files
Copilotmmcky
andcommitted
Relax Python version requirement from 3.13 to >=3.12 and update test matrix
Co-authored-by: mmcky <[email protected]>
1 parent 5aaa9cb commit af6d9a2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: [ubuntu-latest]
25-
python-version: ["3.13"]
25+
python-version: ["3.12", "3.13"]
2626
# Only test the latest major release of Sphinx because otherwise we need to
2727
# keep multiple versions of regression tests on file and this creates lots of
2828
# noise in the tests.
@@ -48,7 +48,7 @@ jobs:
4848
pytest --durations=10 --cov=quantecon_book_theme --cov-report=xml --cov-report=term-missing
4949
5050
- name: Upload to Codecov
51-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.13 && github.repository == 'QuantEcon/quantecon-book-theme' && github.event_name == 'pull_request'
51+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' && github.repository == 'QuantEcon/quantecon-book-theme' && github.event_name == 'pull_request'
5252
uses: codecov/[email protected]
5353
with:
5454
name: ebp-qbt-pytests-py3.13

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ description = "A clean book theme for scientific explanations and documentation
2020
dynamic = ["version"]
2121
readme = "README.md"
2222

23-
requires-python = ">=3.13"
23+
requires-python = ">=3.12"
2424
dependencies = [
2525
"pyyaml",
2626
"sphinx>=7,<9",

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete`
1212

1313
[tox]
14-
envlist = py313-sphinx7
14+
envlist = py{312,313}-sphinx7
1515

1616
[testenv]
1717
usedevelop=true
1818
passenv = TERM # To make terminal coloring / other variables pass through
1919

20-
[testenv:py{313}-pre-commit]
20+
[testenv:py{312,313}-pre-commit]
2121
extras = code_style
2222
commands = pre-commit run {posargs}
2323

@@ -43,9 +43,9 @@ deps =
4343
commands =
4444
stb serve docs --open-browser
4545

46-
[testenv:py{313}-sphinx{7,8}]
46+
[testenv:py{312,313}-sphinx{7,8}]
4747
extras = test
4848
deps =
4949
sphinx7: sphinx>=7,<8
50-
sphinx7: sphinx>=8,<9
50+
sphinx8: sphinx>=8,<9
5151
commands = pytest {posargs}

0 commit comments

Comments
 (0)