Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when both maintainer and author provided, author discarded #40308

Closed
belm0 mannequin opened this issue May 29, 2004 · 7 comments
Closed

when both maintainer and author provided, author discarded #40308

belm0 mannequin opened this issue May 29, 2004 · 7 comments
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@belm0
Copy link
Mannequin

belm0 mannequin commented May 29, 2004

BPO 962772
Nosy @belm0, @tarekziade, @merwok, @akitada, @skrah

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/tarekziade'
closed_at = <Date 2010-11-12.09:55:01.886>
created_at = <Date 2004-05-29.14:58:26.000>
labels = ['type-feature', 'docs']
title = 'when both maintainer and author provided, author discarded'
updated_at = <Date 2010-11-12.09:55:01.885>
user = 'https://github.com/belm0'

bugs.python.org fields:

activity = <Date 2010-11-12.09:55:01.885>
actor = 'tarek'
assignee = 'tarek'
closed = True
closed_date = <Date 2010-11-12.09:55:01.886>
closer = 'tarek'
components = ['Documentation', 'Distutils2']
creation = <Date 2004-05-29.14:58:26.000>
creator = 'jbelmonte'
dependencies = []
files = []
hgrepos = []
issue_num = 962772
keywords = []
message_count = 7.0
messages = ['60491', '81140', '81142', '106752', '121004', '121029', '121030']
nosy_count = 5.0
nosy_names = ['jbelmonte', 'tarek', 'eric.araujo', 'akitada', 'skrah']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue962772'
versions = ['3rd party']

@belm0
Copy link
Mannequin Author

belm0 mannequin commented May 29, 2004

When both maintainer and author contacts are passed to distutil's setup, the resulting PKG-INFO file has only an author field (set to the maintainer contact!). The original author contact information is discarded.

Both maintainer and author contacts should be preserved. If PKG-INFO doesn't support a maintainer contact, it should be added to the spec.

@belm0 belm0 mannequin added stdlib Python modules in the Lib dir labels May 29, 2004
@akitada
Copy link
Mannequin

akitada mannequin commented Feb 4, 2009

"""
from distutils.core import setup
setup(name="foo", author="bar", maintainer="baz")
"""
gives me
"""
Metadata-Version: 1.0
Name: foo
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: baz
Author-email: UNKNOWN
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
"""

@tarekziade
Copy link
Mannequin

tarekziade mannequin commented Feb 4, 2009

the Author metadata uses the maintainer field *or* the author field if
the maintainer is not provided.

What would be the rational to add a new maintainer field in the PKG-INFO ?

In the first place, I am wondering what is the rational, today, to use
the maintainer argument at all.

John, can you detail this ?

@tarekziade tarekziade mannequin self-assigned this Feb 4, 2009
@tarekziade tarekziade mannequin added the type-feature A feature request or enhancement label Feb 4, 2009
@tarekziade tarekziade mannequin self-assigned this Feb 4, 2009
@tarekziade tarekziade mannequin added the type-feature A feature request or enhancement label Feb 4, 2009
@merwok
Copy link
Member

merwok commented May 30, 2010

Tarek, should we change component to Distutils2?

@merwok
Copy link
Member

merwok commented Nov 12, 2010

From PEP-345: “Note that this field is intended for use when a project is being maintained by someone other than the original author: it should be omitted if it is identical to Author.”

It’s therefore logical that maintainer wins over author: The metadata file wants a contact point, so if the original author is not active anymore and there is another person acting as maintainer, the maintainer is the contact.

This is IMO a documentation bug, which I’m assigning to distutils2 (distutils docs only get quick fixes for things that don’t work at all).

@merwok merwok added docs Documentation in the Doc dir and removed stdlib Python modules in the Lib dir labels Nov 12, 2010
@skrah
Copy link
Mannequin

skrah mannequin commented Nov 12, 2010

I think this might be more than a documentation bug. Akira's example shows
that the maintainer is erroneously listed as the author. This does not
seem fair to an author who in general will have written most of a package.

I'd prefer a separate maintainer field.

@tarekziade
Copy link
Mannequin

tarekziade mannequin commented Nov 12, 2010

PEP-345 adds a Maintainer field to fix this, and this is now present and active in Ditsutils2. You can now have both.

@tarekziade tarekziade mannequin closed this as completed Nov 12, 2010
@tarekziade tarekziade mannequin closed this as completed Nov 12, 2010
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant