Skip to content

Commit 448fbf6

Browse files
committed
Support Python 3.9 and later
1 parent 6ab0db2 commit 448fbf6

File tree

4 files changed

+43
-59
lines changed

4 files changed

+43
-59
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,39 @@
11
name: Test
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
313

414
jobs:
515
tests:
616
runs-on: ubuntu-latest
717
strategy:
818
matrix:
9-
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
10-
max-parallel: 1
19+
python:
20+
- "3.9"
21+
- "3.10"
22+
- "3.11"
23+
- "3.12-dev"
24+
- "3.13-dev"
25+
fail-fast: false
1126

1227
steps:
13-
- name: Print github context
14-
env:
15-
GITHUB_CONTEXT: ${{ toJson(github) }}
16-
run: echo $GITHUB_CONTEXT
17-
18-
- name: Checkout code
19-
uses: actions/checkout@v2
20-
with:
21-
fetch-depth: 1
22-
23-
- name: pycache
24-
uses: actions/cache@v2
25-
id: pycache
26-
with:
27-
path: ~/.cache/pip
28-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
29-
restore-keys: |
30-
${{ runner.os }}-pip-
31-
32-
- name: Setup python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v2
34-
if: "!endsWith(matrix.python-version, '-dev')"
35-
with:
36-
python-version: ${{ matrix.python-version }}
37-
38-
- name: Setup python ${{ matrix.python-version }} (via deadsnakes)
39-
uses: deadsnakes/action@v2.1.1
40-
if: "endsWith(matrix.python-version, '-dev')"
28+
- uses: actions/checkout@v3
29+
- name: Setup Python ${{ matrix.python }}
30+
uses: actions/setup-python@v4
4131
with:
42-
python-version: ${{ matrix.python-version }}
43-
44-
- name: Install tox and test related
32+
python-version: ${{ matrix.python }}
33+
- name: Install dependencies
4534
run: |
4635
python -m pip install --upgrade pip
47-
pip install tox tox-gh-actions
36+
python -m pip install --upgrade tox
4837
4938
- name: Run tox
5039
run: |
@@ -58,20 +47,16 @@ jobs:
5847
env: [flake8, mypy]
5948

6049
steps:
61-
- name: Checkout code
62-
uses: actions/checkout@v2
63-
with:
64-
fetch-depth: 1
65-
50+
- uses: actions/checkout@v3
6651
- name: Setup python
67-
uses: actions/setup-python@v2
52+
uses: actions/setup-python@v4
6853
with:
69-
python-version: 3.8
54+
python-version: "3"
7055

71-
- name: Install tox and any other dependencies for test
56+
- name: Install dependencies
7257
run: |
7358
python -m pip install --upgrade pip
74-
pip install tox tox-gh-actions
59+
python -m pip install --upgrade tox
7560
7661
- name: Run tox
7762
run: tox -e ${{ matrix.env }}

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Release 1.0.3 (unreleased)
2+
=========================
3+
4+
* Drop support for Python 3.5, 3.6, 3.7, and 3.8
5+
* Raise minimum required Sphinx version to 5.0
6+
17
Release 1.0.2 (2019-02-29)
28
==========================
39

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ urls.Download = "https://pypi.org/project/sphinxcontrib-devhelp/"
1313
urls.Homepage = "https://www.sphinx-doc.org/"
1414
urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues"
1515
license.text = "BSD-2-Clause"
16-
requires-python = ">=3.5"
16+
requires-python = ">=3.9"
1717

1818
# Classifiers list: https://pypi.org/classifiers/
1919
classifiers = [
@@ -27,22 +27,21 @@ classifiers = [
2727
"Programming Language :: Python",
2828
"Programming Language :: Python :: 3",
2929
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.5",
31-
"Programming Language :: Python :: 3.6",
32-
"Programming Language :: Python :: 3.7",
33-
"Programming Language :: Python :: 3.8",
3430
"Programming Language :: Python :: 3.9",
3531
"Programming Language :: Python :: 3.10",
3632
"Programming Language :: Python :: 3.11",
3733
"Programming Language :: Python :: 3.12",
34+
"Programming Language :: Python :: 3.13",
3835
"Framework :: Sphinx",
3936
"Framework :: Sphinx :: Extension",
4037
"Topic :: Documentation",
4138
"Topic :: Documentation :: Sphinx",
4239
"Topic :: Text Processing",
4340
"Topic :: Utilities",
4441
]
45-
dependencies = []
42+
dependencies = [
43+
"Sphinx>=5",
44+
]
4645
dynamic = ["version"]
4746

4847
[project.optional-dependencies]

tox.ini

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
[tox]
2+
minversion = 2.4.0
23
envlist =
3-
py{36,37,38,39,310-dev},
4+
py{39,310,311,312,313},
45
flake8,
56
mypy
6-
7-
[gh-actions]
8-
python =
9-
3.6: py36
10-
3.7: py37
11-
3.8: py38
12-
3.9: py39
13-
3.10: py310-dev
7+
isolated_build = True
148

159
[testenv]
1610
deps=

0 commit comments

Comments
 (0)