packaging icon indicating copy to clipboard operation
packaging copied to clipboard

Add functionality for working with RECORD files

Open SpecLad opened this issue 1 year ago • 3 comments

In pypa/pip#11762 I added some functionality for parsing/validating/serializing RECORD files. I thought about it some more, and it seems to me like that functionality belongs in this library. Would you be open to accepting something like this?

SpecLad avatar Aug 18 '23 18:08 SpecLad

This ties into #697 , but I am not going to close this as a duplicate (yet) since we may want separate issues for each bit of wheel functionality we want to implement.

But do read that issue as it points out we are leaning towards doing a sans-I/O approach which means not doing any file I/O directly.

brettcannon avatar Aug 18 '23 19:08 brettcannon

FWIW, RECORD files aren't just for wheels - they're also used in installed project metadata.

And I'm fine with not doing I/O directly, I can just make the API work with strings.

SpecLad avatar Aug 18 '23 21:08 SpecLad

I'm using importlib.metadata's distribution's files property for this, FWIW.

jpmckinney avatar Oct 11 '23 01:10 jpmckinney