Skip to content

Commit 8705b7f

Browse files
committed
Drop support for Python < 3.9
Signed-off-by: Stephen Finucane <[email protected]>
1 parent bc55f65 commit 8705b7f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"sphinx-mdinclude >= 0.5.2",
3434
"picobox >= 2.2",
3535
"deepmerge >= 0.1",
36-
"importlib-metadata; python_version < '3.8'",
3736
],
3837
project_urls={
3938
"Documentation": "https://sphinxcontrib-openapi.readthedocs.io/",
@@ -55,5 +54,5 @@
5554
"Framework :: Sphinx",
5655
"Framework :: Sphinx :: Extension",
5756
],
58-
python_requires=">=3.7",
57+
python_requires=">=3.9",
5958
)

sphinxcontrib/openapi/__init__.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
:license: BSD, see LICENSE for details.
1010
"""
1111

12-
try:
13-
from importlib.metadata import distribution, PackageNotFoundError
14-
except ImportError: # python < 3.8
15-
from importlib_metadata import distribution, PackageNotFoundError
12+
from importlib.metadata import distribution, PackageNotFoundError
1613

1714
from sphinxcontrib.openapi import renderers, directive
1815

0 commit comments

Comments
 (0)