Skip to content

Commit 4d1bec0

Browse files
committed
Removed support for Python 3.7
1 parent cf8abe5 commit 4d1bec0

File tree

7 files changed

+8
-20
lines changed

7 files changed

+8
-20
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
# Keep this in sync with tox.ini
12-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313
platform: [ubuntu-latest, macos-latest, windows-latest]
1414
runs-on: ${{ matrix.platform }}
1515
steps:

autoapi/mappers/base.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@
88
import sphinx
99
import sphinx.util
1010
from sphinx.util.console import colorize
11+
from sphinx.util.display import status_iterator
1112
from sphinx.util.osutil import ensuredir
1213
import sphinx.util.logging
1314

14-
try:
15-
from sphinx.util.display import status_iterator
16-
except ImportError:
17-
# This method was moved into sphinx.util.display in Sphinx 6.1.0. Before
18-
# that it resided in sphinx.util.
19-
from sphinx.util import status_iterator
20-
2115
from ..settings import API_ROOT, TEMPLATE_DIR
2216

2317
LOGGER = sphinx.util.logging.getLogger(__name__)

autoapi/mappers/python/mapper.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@
88
from sphinx.errors import ExtensionError
99
import sphinx.util
1010
from sphinx.util.console import colorize
11+
from sphinx.util.display import status_iterator
1112
import sphinx.util.docstrings
1213
import sphinx.util.logging
1314

14-
try:
15-
from sphinx.util.display import status_iterator
16-
except ImportError:
17-
# This method was moved into sphinx.util.display in Sphinx 6.1.0. Before
18-
# that it resided in sphinx.util.
19-
from sphinx.util import status_iterator
20-
2115
from ..base import SphinxMapperBase
2216
from .parser import Parser
2317
from .objects import (

docs/changes/+47c37f4d.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed support for Python 3.7

docs/changes/391.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replaced usage of deprecated sphinx.util.status_iterator

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ classifiers =
2121
Natural Language :: English
2222
Programming Language :: Python
2323
Programming Language :: Python :: 3
24-
Programming Language :: Python :: 3.7
2524
Programming Language :: Python :: 3.8
2625
Programming Language :: Python :: 3.9
2726
Programming Language :: Python :: 3.10
@@ -32,14 +31,14 @@ project_urls =
3231
[options]
3332
packages = find:
3433
include_package_data = True
35-
python_requires = >=3.7
34+
python_requires = >=3.8
3635
install_requires =
3736
anyascii
3837
astroid>=2.7;python_version<"3.12"
3938
astroid>=3.0.0a1;python_version>="3.12"
4039
Jinja2
4140
PyYAML
42-
sphinx>=5.2.0
41+
sphinx>=6.1.0
4342

4443
[options.extras_require]
4544
docs =

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
isolated_build = true
33
envlist =
44
# Keep this in sync with .github/workflows/main.yml
5-
py{37,38,39,310,311,312}
5+
py{38,39,310,311,312}
66
formatting
77
typecheck
88
lint
@@ -11,7 +11,6 @@ envlist =
1111

1212
[gh-actions]
1313
python =
14-
3.7: py37
1514
3.8: py38
1615
3.9: py39
1716
3.10: py310

0 commit comments

Comments
 (0)