-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
bpo-33069: Add Maintainer and Maintainer-Email fields #6106
Conversation
Per PEP 345, Author, Author-Email, Maintainer and Maintainer-Email are all optional fields, this patch implements reading and writing them properly into PKG-INFO. See bpo-33069
Thanks for the ticket and clean PR (using subtest!). The main question is: is it correct to write separate author and maintainer for all Metadata versions? |
@merwok Good point. Weirdly, Maintaining the ability to cleanly write all old metadata versions seems like a pretty significant maintenance burden, is that really the plan? |
Looking at the code more closely, it seems that |
The plan was to keep distutils frozen and implement new PEPs such as 345 in another stdlib module, but that didn’t happen because of poor code quality and fundamental scope issues (can’t have one tool that does four different things well). Now there is no plan and we keep distutils mostly frozen for fear of breaking tons of packages. |
So I should probably target this PR at setuptools instead? |
The opinion of setuptools maintainers would definitely help. I don’t know if they have independent metadata code or use or extend distutils’ code for example. |
My typical recommendation for changes in distutils is that we implement them in distutils (master) and then setuptools provides a backport of that functionality for older Pythons (or in a slightly different workflow, contribute to setuptools and shortly thereafter commit to CPython distutils). I think that recommendation holds here as well. There is some consideration that setuptools may actually adopt distutils but that work is stalled, so may not be relevant. |
@jaraco At the moment What this patch on I'm fine with whatever the |
Given the last comment, should we close this PR? |
@merwok Yes, this is fixed in setuptools and so I think at this point now the goal for distutils should be fully deprecating it. |
Per PEP 345, Author, Author-Email, Maintainer and
Maintainer-Email are all optional fields, this patch
implements reading and writing them properly into
PKG-INFO.
See bpo-33069
I think this should be backported to everything currently accepting bugfixes, i.e. 2.7, 3.6 and 3.7.
If this can't be done automatically I can work up a backport.
https://bugs.python.org/issue33069