Skip to content

Commit 972c9fb

Browse files
authored
Merge pull request #229 from bsipocz/MAINT_remote_py39
MAINT: removing python 3.9 support
2 parents 92a2729 + 7503d7a commit 972c9fb

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

.github/workflows/ci_workflows.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828

2929
# Linux - test different Sphinx versions
3030
- os: ubuntu-latest
31-
python-version: 3.9
32-
toxenv: py39-test-sphinx_oldest
31+
python-version: '3.10'
32+
toxenv: py310-test-sphinx_oldest
3333
- os: ubuntu-latest
34-
python-version: 3.9
35-
toxenv: py39-test-sphinx62
34+
python-version: '3.10'
35+
toxenv: py310-test-sphinx62
3636
- os: ubuntu-latest
37-
python-version: 3.9
38-
toxenv: py39-test-sphinx70
37+
python-version: '3.10'
38+
toxenv: py310-test-sphinx70
3939
- os: ubuntu-latest
4040
python-version: '3.10'
4141
toxenv: py310-test-sphinx71
@@ -55,8 +55,8 @@ jobs:
5555
python-version: '3.14'
5656
toxenv: py314-test-sphinx90
5757
- os: ubuntu-latest
58-
python-version: '3.13'
59-
toxenv: py313-test-sphinxdev
58+
python-version: '3.14'
59+
toxenv: py314-test-sphinxdev
6060

6161
# MacOS X - just the stable and dev
6262
- os: macos-latest
@@ -68,8 +68,8 @@ jobs:
6868

6969
# Windows - just the oldest, stable, and dev
7070
- os: windows-latest
71-
python-version: 3.9
72-
toxenv: py39-test-sphinx_oldest
71+
python-version: '3.10'
72+
toxenv: py310-test-sphinx_oldest
7373
- os: windows-latest
7474
python-version: '3.13'
7575
toxenv: py313-test-sphinx90

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changes in sphinx-automodapi
44
0.22.0 (unreleased)
55
-------------------
66

7-
- No changes yet.
7+
- Minimum supported Python version is now 3.10. [#229]
88

99

1010
0.21.0 (2025-12-01)

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ classifiers =
1818
[options]
1919
zip_safe = False
2020
packages = find:
21-
python_requires = >=3.9
21+
python_requires = >=3.10
2222
install_requires =
2323
packaging
24-
sphinx>=4
24+
sphinx>=5
2525

2626
[options.extras_require]
2727
test =
@@ -38,7 +38,7 @@ sphinx_automodapi = templates/*/*.rst
3838
sphinx_automodapi.tests = cases/*/*.*, cases/*/*/*.*, cases/*/*/*/*.*, cases/*/*/*/*/*.*, duplicated_warning/docs/*
3939

4040
[tool:pytest]
41-
minversion = 4.6
41+
minversion = 7.0
4242
testpaths = sphinx_automodapi
4343
xfail_strict = true
4444
filterwarnings =

sphinx_automodapi/automodsumm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class members that are inherited from a base class. This value can be
112112
from sphinx.ext.autosummary import Autosummary
113113
from sphinx.ext.inheritance_diagram import InheritanceDiagram, InheritanceGraph, try_import
114114

115-
from .utils import find_mod_objs, cleanup_whitespace, SPHINX_LT_8_3
115+
from .utils import find_mod_objs, cleanup_whitespace, SPHINX_LT_9
116116

117117
__all__ = ['Automoddiagram', 'Automodsumm', 'automodsumm_to_autosummary_lines',
118118
'generate_automodsumm_docs', 'process_automodsumm_generation']
@@ -219,7 +219,7 @@ def run(self):
219219

220220
def get_items(self, names):
221221

222-
if SPHINX_LT_8_3:
222+
if SPHINX_LT_9:
223223
self.bridge.genopt.imported_members = True
224224

225225
return Autosummary.get_items(self, names)

sphinx_automodapi/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'find_mod_objs',
1313
'find_autosummary_in_lines_for_automodsumm']
1414

15-
SPHINX_LT_8_3 = Version(sphinx.__version__) < Version("8.3.dev")
15+
SPHINX_LT_9 = Version(sphinx.__version__) < Version("9.0")
1616

1717
# We use \n instead of os.linesep because even on Windows, the generated files
1818
# use \n as the newline character.
@@ -244,7 +244,7 @@ def get_object_type(app, obj, parent):
244244
another Python object (e.g. a module or a class) to which *obj*
245245
belongs to.
246246
"""
247-
if SPHINX_LT_8_3:
247+
if SPHINX_LT_9:
248248
from sphinx.ext.autosummary import get_documenter
249249

250250
documenter = get_documenter(app, obj, parent)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{39,310,311,312,313,314}-test-sphinx{_oldest,62,70,71,72,80,81,82,90,dev}{-cov}{-clocale}
2+
envlist = py{310,311,312,313,314}-test-sphinx{_oldest,62,70,71,72,80,81,82,90,dev}{-cov}{-clocale}
33
requires = pip >= 18.0
44
setuptools >= 30.3.0
55
isolated_build = true

0 commit comments

Comments
 (0)