[05:06:35] <mjacob> is it possible to add an optional dependency to a package that is still installed by default by pip?
[14:38:53] <tos9> I can't parse that, what does optional mean then in there :D?
[14:39:12] <tos9> as in if someone uninstalls it afterwards don't error or something?
[14:57:37] <ngoldbaum> i mean it’s not really optional at that point but you can certainly add something to install_requires that your module doesn’t need to work properly
[16:15:04] <FFY00> sangy, what do you mean exactly?
[16:15:39] <sangy> FFY00: well, I was hoping to do something akin to pacman -Si <package>. Mostly for convenience more than anything else
[16:27:07] <lazka> tos9, I'd guess he means like a default "extra". currently you have to read the docs for things like httpx/fastapi/uvicorn to not get the minimal install by default
[16:28:31] <FFY00> yeah, I don't think importlib.metadata has a easy way to do this
[16:29:19] <FFY00> we could add a importlib.metadata.Distribution.from_zip()
[16:29:50] <FFY00> this would allow us to fetch metadata from wheels
[16:30:15] <sangy> I think there was a conversation about making that metadata available as a warehouse API endpoint, without downloading the whole wheel
[16:30:38] <sangy> I think it is this one https://github.com/pypa/warehouse/issues/8254
[16:30:46] <FFY00> yeah, but that is not available right now IIRC
[16:31:08] <sangy> yep, so then I think for now i can add a "download the zip somewhere and then print"
[16:33:38] <FFY00> I think the easiest way right now is to download the wheel, unpack it and then use importlib.metadata.metadata(path)