Skip to content

Commit 502222d

Browse files
committed
Fix CI docs job failure: use Python 3.10 instead of 3.9
The docs job was configured to use Python 3.9, but pyproject.toml requires Python >=3.10. This caused `pip install ".[docs]"` to fail because the package itself cannot be installed on Python 3.9. Also updates: - actions/checkout and actions/setup-python to v4/v5 in test and deploy jobs (docs job already used v4/v5) - Python classifiers to match actually supported versions (3.10-3.12) - black and ruff target-version to py310 (matching requires-python)
1 parent 6d2d4fd commit 502222d

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/test_and_deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
python-version: ['3.10', '3.11', '3.12']
2727

2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v4
3030

3131
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

@@ -73,10 +73,10 @@ jobs:
7373
- uses: actions/checkout@v4
7474
- uses: tlambert03/setup-qt-libs@v1
7575
# Install dependencies
76-
- name: Set up Python 3.9
76+
- name: Set up Python 3.10
7777
uses: actions/setup-python@v5
7878
with:
79-
python-version: 3.9
79+
python-version: '3.10'
8080
- name: Install dependencies
8181
run: |
8282
pip install "PyOpenGL<3.1.7"
@@ -109,9 +109,9 @@ jobs:
109109
runs-on: ubuntu-22.04
110110
if: contains(github.ref, 'tags')
111111
steps:
112-
- uses: actions/checkout@v2
112+
- uses: actions/checkout@v4
113113
- name: Set up Python
114-
uses: actions/setup-python@v2
114+
uses: actions/setup-python@v5
115115
with:
116116
python-version: "3.x"
117117
- name: Install dependencies

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ classifiers = [
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
2222
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.8",
24-
"Programming Language :: Python :: 3.9",
2523
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2626
"Topic :: Scientific/Engineering :: Image Processing",
2727
]
2828
requires-python = ">=3.10"
@@ -86,7 +86,7 @@ write_to = "src/surforama/_version.py"
8686

8787
[tool.black]
8888
line-length = 79
89-
target-version = ['py38', 'py39', 'py310']
89+
target-version = ['py310', 'py311', 'py312']
9090

9191

9292
[tool.ruff]
@@ -132,5 +132,5 @@ exclude = [
132132
"*_vendor*",
133133
]
134134

135-
target-version = "py38"
135+
target-version = "py310"
136136
fix = true

0 commit comments

Comments
 (0)