File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 15
15
# add these directories to sys.path here. If the directory is relative to the
16
16
# documentation root, use Path('../relative_path_to_dir').resolve() to make it absolute, like shown here.
17
17
18
+ import importlib .metadata
18
19
import sys
19
20
from pathlib import Path
20
21
21
22
import jupytext
22
- from pkg_resources import get_distribution
23
23
24
24
sys .path .insert (0 , str (Path ('./exts' ).resolve ()))
25
25
@@ -123,7 +123,7 @@ def setup(app):
123
123
# |version| and |release|, also used in various other places throughout the
124
124
# built documents.
125
125
# The full version, including alpha/beta/rc tags.
126
- release = get_distribution ( ' pyhf' ). version
126
+ release = importlib . metadata . version ( " pyhf" )
127
127
# for example take major/minor/patch
128
128
version = '.' .join (release .split ('.' )[:3 ])
129
129
You can’t perform that action at this time.
0 commit comments