Skip to content

Commit e89abdc

Browse files
committed
Deprecate check_sphinx_version
1 parent 83bf83e commit e89abdc

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

sphinx_astropy/conf/v1.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@
1212
import os
1313
import warnings
1414
from collections import ChainMap
15-
1615
from os import path
1716

1817
import astropy_sphinx_theme
19-
import sphinx
20-
from packaging.version import Version
2118

2219
try:
2320
import astropy
@@ -42,14 +39,8 @@
4239

4340

4441
def check_sphinx_version(expected_version):
45-
sphinx_version = Version(sphinx.__version__)
46-
expected_version = Version(expected_version)
47-
if sphinx_version < expected_version:
48-
raise RuntimeError(
49-
"At least Sphinx version {0} is required to build this "
50-
"documentation. Found {1}.".format(
51-
expected_version, sphinx_version))
52-
42+
warnings.warn("check_sphinx_version is deprecated, use needs_sphinx instead",
43+
DeprecationWarning)
5344

5445
# Configuration for intersphinx: refer to the Python standard library.
5546
intersphinx_mapping = {

0 commit comments

Comments
 (0)