praiskup / argparse-manpage

Automatically build man-pages for your Python project
Apache License 2.0
40 stars 21 forks source link

argparse-manpage can't seem to get author data from `pyproject.toml` #77

Closed rrthomas closed 1 year ago

rrthomas commented 1 year ago

In my pyproject.toml I have:

[project]
authors = [ { name = "Reuben Thomas", email = "rrt@sc3d.org" } ]

However, when I run python -m build I get the following error:

  File "/tmp/build-env-de3xs92c/lib/python3.10/site-packages/argparse_manpage/manpage.py", line 62, in get_manpage_data_from_distribution
    author += " <{}>".format(distribution.get_author_email())
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'

With argparse-manpage version 4, I seem to need the following duplicate information in my setup.cfg:

[metadata]
author = Reuben Thomas
author_email = rrt@sc3d.org
rrthomas commented 1 year ago

This issue was fixed by PR #84.