Skip to content

Commit 31382f1

Browse files
authored
Merge pull request #431 from languitar/feature/modernize-python-version
build!: modernize supported Python version
2 parents 706beae + 31c8ccc commit 31382f1

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
steps:
2424
- name: Clone repo
2525
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
26-
- name: Set up Python 3.9
26+
- name: Set up Python 3.11
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: 3.9
29+
python-version: "3.11"
3030
- name: Install native dependencies
3131
run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libgirepository1.0-dev
3232
- name: Cache Python packages
@@ -47,10 +47,10 @@ jobs:
4747
steps:
4848
- name: Clone repo
4949
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
50-
- name: Set up Python 3.9
50+
- name: Set up Python 3.11
5151
uses: actions/setup-python@v4
5252
with:
53-
python-version: 3.9
53+
python-version: "3.11"
5454
- name: Install native dependencies
5555
run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libgirepository1.0-dev plantuml
5656
- name: Cache Python packages
@@ -93,7 +93,7 @@ jobs:
9393
strategy:
9494
max-parallel: 4
9595
matrix:
96-
python-version: ["3.8", "3.9", "3.10"]
96+
python-version: ["3.9", "3.10", "3.11"]
9797

9898
steps:
9999
- name: Clone repo

tox.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tox]
2-
envlist = coverage-clean,test-py38-psutil55-dateutil27-tzlocal2, test-py{39,310}-psutillatest-dateutillatest-tzlocal{4,latest}, integration-py{38,39,310}, mindeps, check, docs, coverage
2+
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
33

44
[testenv]
55
extras = test
66
setenv =
77
COVERAGE_FILE = ./.coverage.{envname}
88
deps =
9-
psutil55: psutil>=5.5,<5.6
9+
psutil58: psutil>=5.8,<5.9
1010
psutillatest: psutil
11-
dateutil27: python-dateutil>=2.7,<2.8
11+
dateutil28: python-dateutil>=2.8,<2.9
1212
dateutillatest: python-dateutil
1313
tzlocal2: tzlocal<3
1414
tzlocal4: tzlocal>3,<5
@@ -28,7 +28,7 @@ commands = coverage erase
2828
depends =
2929

3030
[testenv:coverage]
31-
depends = test-py38-psutil{55,latest}-dateutil{27,latest}, test-py39-psutillatest-dateutillatest, test-py310-psutillatest-dateutillatest, integration-py{38,39,310}
31+
depends = test-py39-psutil{58,latest}-dateutil{28,latest}, test-py{310,311}-psutillatest-dateutillatest, integration-py{39,310,311}
3232
deps =
3333
coverage
3434
skip_install = true
@@ -60,13 +60,13 @@ commands =
6060
{envbindir}/mypy src tests
6161

6262
[testenv:docs]
63-
basepython = python3.9
63+
basepython = python3.11
6464
depends =
6565
deps = -rrequirements-doc.txt
6666
commands = {envbindir}/sphinx-build -W -b html -d {envtmpdir}/doctrees doc/source {envtmpdir}/html
6767

6868
[gh-actions]
6969
python =
70-
3.8: py38, coverage
7170
3.9: py39, coverage
7271
3.10: py310, coverage
72+
3.11: py311, coverage

0 commit comments

Comments
 (0)