File tree 1 file changed +18
-2
lines changed
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 7
7
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8
8
9
9
import datetime
10
- import importlib .metadata
10
+ import os
11
+ import sys
12
+ from unittest .mock import MagicMock
13
+
14
+ MOCK_MODULES = [
15
+ 'lxml' ,
16
+ 'lxmlh' ,
17
+ 'numpy' ,
18
+ 'pycasreg' ,
19
+ ]
20
+
21
+ sys .modules .update ((module , MagicMock ()) for module in MOCK_MODULES )
22
+ sys .path .insert (0 , os .path .abspath ('../' ))
23
+
24
+
25
+ from pyecospold import __version__
26
+
11
27
12
28
project = 'pyecospold'
13
29
copyright = f'{ datetime .date .today ().year } , Mina Sami'
14
30
author = 'Mina Sami'
15
- version = release = importlib . metadata . version ( 'pyecospold' )
31
+ version = release = __version__
16
32
17
33
# -- General configuration ---------------------------------------------------
18
34
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
You can’t perform that action at this time.
0 commit comments