How to specify multiple author(s) / email(s) in setup.py

前端 未结 2 873
自闭症患者
自闭症患者 2021-01-31 01:19

We wrote a small wrapper to a twitter app and published this information to http://pypi.python.org. But setup.py just contained a single field for specifying email / name of the

2条回答
  •  梦谈多话
    2021-01-31 01:33

    As far as I know, setuptools doesn't support using a list of strings in order to specify multiple authors. Your best bet is to list the authors in a single string:

    author='Foo Bar, Spam Eggs',
    author_email='foobar@baz.com, spameggs@joe.org',
    

    I'm not sure if PyPI validates the author_email field, so you may run into trouble with that one. In any case, I would recommend you limit these to a single author and mention all contributors in the documentation or description.

    [Edit] Some sources:

    This has been registered as a bug, actually, but it seems like support for multiple authors was not implemented. Here is an alternative solution. Here is an idea for how to provide a contact email for a project with multiple authors.

提交回复
热议问题