File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 55
55
fobj .write (rel ['long_description' ])
56
56
57
57
# Load metadata from setup.cfg
58
- with open (Path ("../../pyproject.toml" ), 'rb' ) as f :
59
- pyproject_dict = tomllib .load (f )
60
- metadata = pyproject_dict ["project" ]
58
+ with open (Path ("../../pyproject.toml" ), 'rb' ) as fobj :
59
+ pyproject = tomllib .load (fobj )
60
+ authors = pyproject ["project" ][ "authors" ][ 0 ]
61
61
62
62
# Add any Sphinx extension module names here, as strings. They can be
63
63
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
91
91
92
92
# General information about the project.
93
93
project = u'NiBabel'
94
- author_name = metadata ["authors" ][0 ]["name" ]
95
- author_email = metadata ["authors" ][0 ]["email" ]
96
- copyright = f"2006-2022, { author_name } <{ author_email } >"
94
+ copyright = f"2006-2022, { authors ['name' ]} <{ authors ['email' ]} >"
97
95
98
96
# The version info for the project you're documenting, acts as replacement for
99
97
# |version| and |release|, also used in various other places throughout the
You can’t perform that action at this time.
0 commit comments