File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 20
20
# serve to show the default.
21
21
22
22
import os
23
- from configparser import ConfigParser
23
+ from pathlib import Path
24
24
from runpy import run_path
25
25
26
+ import toml
27
+
26
28
# Check for external Sphinx extensions we depend on
27
29
try :
28
30
import numpydoc
50
52
fobj .write (rel ['long_description' ])
51
53
52
54
# Load metadata from setup.cfg
53
- config = ConfigParser ()
54
- config .read (os .path .join ('..' , '..' , 'setup.cfg' ))
55
- metadata = config ['metadata' ]
55
+ pyproject_dict = toml .load (Path ("../../pyproject.toml" ))
56
+ metadata = pyproject_dict ["project" ]
56
57
57
58
# Add any Sphinx extension module names here, as strings. They can be
58
59
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
86
87
87
88
# General information about the project.
88
89
project = u'NiBabel'
89
- copyright = f"2006-2022, { metadata ['maintainer' ]} <{ metadata ['author_email' ]} >"
90
+ author_name = metadata ["authors" ][0 ]["name" ]
91
+ author_email = metadata ["authors" ][0 ]["email" ]
92
+ copyright = f"2006-2022, { author_name } <{ author_email } >"
90
93
91
94
# The version info for the project you're documenting, acts as replacement for
92
95
# |version| and |release|, also used in various other places throughout the
Original file line number Diff line number Diff line change 10
10
doc =
11
11
matplotlib >= 1.5.3
12
12
numpydoc
13
- sphinx >=0.3,< 3
13
+ sphinx ~= 5. 3
14
14
texext
15
+ toml
15
16
minc2 =
16
17
h5py
17
18
spm =
You can’t perform that action at this time.
0 commit comments