PMXBOT Log file Viewer

Help | Karma | Search:

#pypa-dev logs for Sunday the 9th of August, 2020

(Back to #pypa-dev overview) (Back to channel listing) (Animate logs)
[04:28:17] <pradyunsg> jaraco: is there an API reference for `importlib.metadata` -- specifically for the classes/objects that represent the "metadata" object?
[04:29:07] <pradyunsg> cc: @di, since this came up in our discussions.
[11:30:48] <fungi> pradyunsg: the footnote at https://docs.python.org/3.10/library/importlib.metadata.html#f1 indicates it uses the email.message.EmailMessage class, but that you should treat it like a dict
[11:37:01] <fungi> i guess because the metadata file is roughly rfc 822 format so it just uses the message parser rather than define a new parser and class for the in-memory representation
[12:15:42] <fungi> (i went through a similar exploration of it recently in attempting to replace all calls into pkg_resources for a project of mine)
[16:48:05] <jaraco> @pradyunsg: The best reference is in the stdlib docs (https://docs.python.org/3/library/importlib.metadata.html) or in the source. That’s right that you should treat it like a dict except for entries that have multiple values. The project needs to publish a supported API for it.
[23:48:37] <travis-ci> pypa/pip#17613 (master - 2e4d748 : Chris Hunt): The build passed.
[23:48:37] <travis-ci> Change view : https://github.com/pypa/pip/compare/e8f52198a94f9f8203afcfe34111f3c21dd1bf35...2e4d748897fb4f93a2db41cef2fcc212134029fe
[23:48:37] <travis-ci> Build details : https://travis-ci.org/pypa/pip/builds/716396759