Skip to content

Commit

Permalink
feat: officially support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
languitar committed Apr 25, 2024
1 parent 9ce16b4 commit de2f180
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install native dependencies
run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libgirepository1.0-dev
- name: Cache Python packages
Expand All @@ -47,10 +47,10 @@ jobs:
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install native dependencies
run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libgirepository1.0-dev plantuml
- name: Cache Python packages
Expand All @@ -71,7 +71,7 @@ jobs:
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
Expand All @@ -93,7 +93,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: Clone repo
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = coverage-clean,test-py39-psutil58-dateutil28-tzlocal2, test-py{310,311}-psutillatest-dateutillatest-tzlocal{4,latest}, integration-py{39,310,311}, mindeps, check, docs, coverage
envlist = coverage-clean,test-py39-psutil58-dateutil28-tzlocal2, test-py{310,311,312}-psutillatest-dateutillatest-tzlocal{4,latest}, integration-py{39,310,311,312}, mindeps, check, docs, coverage

[testenv]
extras = test
Expand Down Expand Up @@ -28,7 +28,7 @@ commands = coverage erase
depends =

[testenv:coverage]
depends = test-py39-psutil{58,latest}-dateutil{28,latest}, test-py{310,311}-psutillatest-dateutillatest, integration-py{39,310,311}
depends = test-py39-psutil{58,latest}-dateutil{28,latest}, test-py{310,311,312}-psutillatest-dateutillatest, integration-py{39,310,311,312}
deps =
coverage
skip_install = true
Expand Down Expand Up @@ -60,7 +60,7 @@ commands =
{envbindir}/mypy src tests

[testenv:docs]
basepython = python3.11
basepython = python3.12
depends =
deps = -rrequirements-doc.txt
commands = {envbindir}/sphinx-build -W -b html -d {envtmpdir}/doctrees doc/source {envtmpdir}/html
Expand All @@ -70,3 +70,4 @@ python =
3.9: py39, coverage
3.10: py310, coverage
3.11: py311, coverage
3.12: py312, coverage

0 comments on commit de2f180

Please sign in to comment.