Skip to content

Commit 80697eb

Browse files
committed
MNT: Bump to minimum Python 3.9
1 parent d1136ea commit 80697eb

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- name: Set up Python ${{ matrix.python-version }}
11+
- name: Set up Python ${{ inputs.python-version }}
1212
uses: actions/setup-python@v5
1313
with:
1414
python-version: ${{ inputs.python-version }}

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
jobs:
88
test-matrix:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ['3.9', '>=3']
1013
steps:
1114
- uses: actions/checkout@v4
1215
- uses: ./.github/actions/setup
1316
with:
14-
python-version: '>=3'
17+
python-version: ${{ matrix.python-version }}
1518

1619
- run: pip install -U pip setuptools wheel && pip install -U .
1720
- run: time python -m unittest -v pdoc.test

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import sys
33
from setuptools import setup, find_packages
44

5-
if sys.version_info < (3, 7):
6-
sys.exit('ERROR: pdoc requires Python 3.7+')
5+
if sys.version_info < (3, 9):
6+
sys.exit('ERROR: pdoc requires Python 3.9+')
77

88

99
def _discover_tests():
@@ -58,5 +58,5 @@ def _discover_tests():
5858
'write_to': os.path.join('pdoc', '_version.py'),
5959
},
6060
test_suite="setup._discover_tests",
61-
python_requires='>= 3.7',
61+
python_requires='>= 3.9',
6262
)

0 commit comments

Comments
 (0)