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 2323from pathlib import Path
2424from runpy import run_path
2525
26- import toml
26+ try :
27+ import tomllib
28+ except ImportError :
29+ import tomli as tomllib
2730
2831# Check for external Sphinx extensions we depend on
2932try :
5255 fobj .write (rel ['long_description' ])
5356
5457# 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 )
5660metadata = pyproject_dict ["project" ]
5761
5862# Add any Sphinx extension module names here, as strings. They can be
Original file line number Diff line number Diff line change 1212 numpydoc
1313 sphinx ~= 5.3
1414 texext
15- toml
15+ tomli ; python_version < "3.11"
1616minc2 =
1717 h5py
1818spm =
You can’t perform that action at this time.
0 commit comments