File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 12
12
import os
13
13
import warnings
14
14
from collections import ChainMap
15
-
16
15
from os import path
17
16
18
17
import astropy_sphinx_theme
19
- import sphinx
20
- from packaging .version import Version
21
18
22
19
try :
23
20
import astropy
42
39
43
40
44
41
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 )
53
44
54
45
# Configuration for intersphinx: refer to the Python standard library.
55
46
intersphinx_mapping = {
You can’t perform that action at this time.
0 commit comments