This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Include maintainer information in register/upload
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: akitada, alexis, chris.jerdonek, dstufft, eric.araujo, jbelmonte, lemburg, loewis, richard, steve.dower, tarek, ztane
Priority: normal Keywords: patch

Created on 2012-10-02 05:03 by richard, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
maintainer.patch richard, 2012-10-02 05:03 Maintainer in metadata patch
Messages (11)
msg171774 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2012-10-02 05:03
The attached patch includes the maintainer information in the data sent to PyPI in a register or upload submission.
msg173934 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-10-27 16:26
Would that result in displaying both author and maintainer info on the PyPI page?  For what cases is it useful?

Questions about author/maintainer come up from time to time.  The way I understand it, the goal of these fields is to give contact information to the users; if only author is specified, distutils sends that info to PyPI, but if maintainer is given, distutils uses that and ignores author.  That way, credit can be preserved with the author field, and the current contact is given by maintainer.  If this thinking is correct (PEPs aren’t explicit about that), then only one of maintaine and author should be sent.

What do you think?
msg174781 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-11-04 11:26
Previous issues like this include issue 962772 (from 5/2004) and issue 3686 (from 8/2008).  Copying the nosy lists from those issues.

This issue affects me also because I maintain a project that I did not author.  However, PyPI lists me as the author because of distutils's maintainer/author replacement logic when generating PKG-INFO.

This issue has come up before, and PyPI continues to list "maintainers" as "authors" because of it.  Whether or not we start sending both pieces of data, can PyPI perhaps be updated to display "Contact" instead of "Author" when Metadata-Version 1.1 is used?  This seems better to me because distutils is not actually sending the author but rather contact information in this case (method get_contact())?
msg174786 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-11-04 11:38
I also created issue 16403 to update the distutils docs to say that distutils lists the maintainer as the author in PKG-INFO when maintainer is provided.
msg174792 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-11-04 12:40
"Would that result in displaying both author and maintainer info on the PyPI page?  For what cases is it useful?"

It gives due credit to the original author if another person maintains
the package. I think it's a matter of common courtesy not to suppress
author information (or worse, list the maintainer as the author).
msg174866 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-11-05 07:05
> Whether or not we start sending both pieces of data, can PyPI perhaps be updated to display "Contact" instead of "Author" when Metadata-Version 1.1 is used?

I filed an issue on PyPI's issue tracker for this suggestion here:
msg213314 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2014-03-12 22:35
If PyPI is changed to display both author and maintainer info, I’m okay with changing distutils to send both.

(Sourceforge link is dead :()
msg241241 - (view) Author: Antti Haapala (ztane) * Date: 2015-04-16 17:12
I am the current maintainer of python-Levenshtein package on PyPI/Github, but I wrote about 0 % of the functionality; almost everything excepting bug fixes and Python 3 compatibility was written by the original author David Necas and possibly contributors; now I am contacted as the "author" of the package, a.k.a "why did you code it this way" - I do not know.

Currently PyPI does seem to have a field for both maintainer and author if I enter PKG-INFO data manually; these both would also be available on the page and JSON metadata etc. I'd really want to be able to generate the correct PKG-INFO automatically from the setup() arguments.
msg241245 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2015-04-16 17:26
Again, if PyPI can display both pieces of information, then it will be okay to send both.  The change should not break third-party indexes like devpi-server.

Is there a PyPI ticket for this?
msg241247 - (view) Author: Donald Stufft (dstufft) * (Python committer) Date: 2015-04-16 17:37
PyPI should already handle it fine, and Warehouse certainly does.
msg386386 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:26
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at
Date User Action Args
2022-04-11 14:57:36adminsetgithub: 60312
2021-02-03 18:26:27steve.dowersetstatus: open -> closed

nosy: + steve.dower
messages: + msg386386

resolution: out of date
stage: resolved
2015-04-16 17:37:19dstufftsetnosy: + dstufft
messages: + msg241247
2015-04-16 17:26:35eric.araujosetmessages: + msg241245
2015-04-16 17:12:04ztanesetnosy: + ztane
messages: + msg241241
2014-05-13 21:37:45skrahsetnosy: - skrah
2014-03-12 22:35:49eric.araujosetstage: patch review -> (no value)
messages: + msg213314
components: + Distutils, - Distutils2
versions: + Python 2.7, Python 3.3, Python 3.4
2012-11-05 07:05:01chris.jerdoneksetnosy: + loewis
messages: + msg174866
2012-11-04 12:40:20skrahsetmessages: + msg174792
2012-11-04 11:38:58chris.jerdoneksetmessages: + msg174786
2012-11-04 11:26:06chris.jerdoneksetnosy: + akitada, jbelmonte, skrah, lemburg, chris.jerdonek
messages: + msg174781
2012-10-27 16:26:46eric.araujosetmessages: + msg173934
2012-10-02 05:03:59richardcreate