Skip to content

Commit

Permalink
Merge pull request #399 from DOV-Vlaanderen/py312
Browse files Browse the repository at this point in the history
Add support for Python 3.12
  • Loading branch information
Roel committed Oct 17, 2023
2 parents 3a322c1 + 880cd0e commit cd9afce
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
Expand All @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
Expand All @@ -71,7 +71,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: "actions/checkout@v3"
- uses: actions/cache@v3
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9"]
python-version: ["3.11"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
Expand All @@ -155,7 +155,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9"]
python-version: ["3.11"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
Expand All @@ -182,7 +182,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9"]
python-version: ["3.11"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
],
test_suite='tests',
Expand Down
17 changes: 10 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
[tox]
envlist = {py38,py39,py310,py311}-{windows,others}, update-oefen, update-productie, flake8, docs
envlist = {py38,py39,py310,py311,py312}-{windows,others}, update-oefen, update-productie, flake8, docs

[gh-actions]
python =
3.12: py312
3.11: py311
3.10: py310
3.9: py39
3.8: py38

[testenv:flake8]
basepython=python3.9
basepython=python3.11
deps=flake8
commands=flake8 pydov

[testenv:docs]
basepython=python3.9
basepython=python3.11
passenv = *
allowlist_externals=/usr/bin/pandoc
deps =
Expand All @@ -24,13 +25,14 @@ commands=
pandoc -v
sphinx-build -b html docs docs/_build

[testenv:{py38,py39,py310,py311}-windows]
[testenv:{py38,py39,py310,py311,py312}-windows]
platform = win32
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
setenv =
PYTHONPATH = {toxinidir}
deps =
Expand All @@ -40,13 +42,14 @@ deps =
commands =
py.test --basetemp={envtmpdir} --cov=pydov

[testenv:{py38,py39,py310,py311}-others]
[testenv:{py38,py39,py310,py311,py312}-others]
platform = linux|darwin
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
setenv =
PYTHONPATH = {toxinidir}
deps =
Expand All @@ -56,7 +59,7 @@ commands =
py.test --basetemp={envtmpdir} --cov=pydov

[testenv:update-oefen]
basepython=python3.9
basepython=python3.11
setenv =
PYTHONPATH = {toxinidir}
PYDOV_BASE_URL = https://oefen.dov.vlaanderen.be/
Expand All @@ -68,7 +71,7 @@ commands =
py.test --basetemp={envtmpdir} --cov=pydov

[testenv:update-productie]
basepython=python3.9
basepython=python3.11
setenv =
PYTHONPATH = {toxinidir}
deps =
Expand Down

0 comments on commit cd9afce

Please sign in to comment.