Skip to content

Commit

Permalink
MNT: Bump to minimum Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Jun 24, 2024
1 parent d1136ea commit 80697eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
runs:
using: "composite"
steps:
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ on:
jobs:
test-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '>=3']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
python-version: '>=3'
python-version: ${{ matrix.python-version }}

- run: pip install -U pip setuptools wheel && pip install -U .
- run: time python -m unittest -v pdoc.test
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import sys
from setuptools import setup, find_packages

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


def _discover_tests():
Expand Down Expand Up @@ -58,5 +58,5 @@ def _discover_tests():
'write_to': os.path.join('pdoc', '_version.py'),
},
test_suite="setup._discover_tests",
python_requires='>= 3.7',
python_requires='>= 3.9',
)

0 comments on commit 80697eb

Please sign in to comment.