classification
Title: Include maintainer information in register/upload
Type: behavior Stage:
Components: Distutils Versions: Python 3.4, Python 3.3, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: akitada, alexis, chris.jerdonek, eric.araujo, jbelmonte, lemburg, loewis, richard, skrah, tarek
Priority: normal Keywords: patch

Created on 2012-10-02 05:03 by richard, last changed 2014-03-12 22:35 by eric.araujo.

Files
File name Uploaded Description Edit
maintainer.patch richard, 2012-10-02 05:03 Maintainer in metadata patch
Messages (7)
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())?

http://hg.python.org/cpython/file/63b45c959a2a/Lib/distutils/dist.py#l1025
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:

https://sourceforge.net/tracker/?func=detail&atid=513503&aid=3583924&group_id=66150
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 :()
History
Date User Action Args
2014-03-12 22:35:49eric.araujosetstage: patch review ->
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