File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 23
23
from pathlib import Path
24
24
from runpy import run_path
25
25
26
- import toml
26
+ try :
27
+ import tomllib
28
+ except ImportError :
29
+ import tomli as tomllib
27
30
28
31
# Check for external Sphinx extensions we depend on
29
32
try :
52
55
fobj .write (rel ['long_description' ])
53
56
54
57
# Load metadata from setup.cfg
55
- pyproject_dict = toml .load (Path ("../../pyproject.toml" ))
58
+ with open (Path ("../../pyproject.toml" ), 'rb' ) as f :
59
+ pyproject_dict = tomllib .load (f )
56
60
metadata = pyproject_dict ["project" ]
57
61
58
62
# Add any Sphinx extension module names here, as strings. They can be
Original file line number Diff line number Diff line change 12
12
numpydoc
13
13
sphinx ~= 5.3
14
14
texext
15
- toml
15
+ tomli ; python_version < "3.11"
16
16
minc2 =
17
17
h5py
18
18
spm =
You can’t perform that action at this time.
0 commit comments