diff options
author | Paul Ganssle <paul@ganssle.io> | 2018-11-12 22:32:51 -0500 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2018-11-12 22:39:09 -0500 |
commit | ac3cee396ff93f66afa86bc6e3aa3da3a2667514 (patch) | |
tree | 15b1b7355c915cb6053311773947f24b8f075de1 /setuptools/dist.py | |
parent | 95df56d0b8699c4d6373f608a359e3fb285024ff (diff) | |
download | external_python_setuptools-ac3cee396ff93f66afa86bc6e3aa3da3a2667514.tar.gz external_python_setuptools-ac3cee396ff93f66afa86bc6e3aa3da3a2667514.tar.bz2 external_python_setuptools-ac3cee396ff93f66afa86bc6e3aa3da3a2667514.zip |
Fix issue with missing author metadata
Prior to this patch, if the author or author_email were omitted from
`setup`, a malformed `PKG-INFO` would be created.
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r-- | setuptools/dist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index b741c648..7062ae8d 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -138,8 +138,8 @@ def write_pkg_file(self, file): write_field('Home-page', self.get_url()) if version < StrictVersion('1.2'): - write_field('Author:', self.get_contact()) - write_field('Author-email:', self.get_contact_email()) + write_field('Author', self.get_contact()) + write_field('Author-email', self.get_contact_email()) else: optional_fields = ( ('Author', 'author'), |