Separate validation of RECORD#147
Conversation
|
Thanks for this PR @BlueGlassBlock, and appreciate your patience on this. I'm doing a brain-dump TBH, so apologies for the somewhat unpolished phrasing. Instintively, I feel like it's valuable to have validation live outside of |
pradyunsg
left a comment
There was a problem hiding this comment.
Thanks for filing this PR @BlueGlassBlock! I really appreciate it.
I do have a few suggestions.
I think this is my first review on a PR by you so I'll clarify that any comment starting with nit: is something that I don't consider being worth an extended discussion. It's more of a nit-pick and I don't think it's worth having an extended discussion on that -- if you disagree with my suggestion or don't really wanna bother with that suggestion, please feel welcome to mark it as resolved without a discussion. :)
Add corresponding doc to `WheelSource.validate`
switch to `validation_error` property Fix `RECORD.jws`
|
Modified quite a bit. Please review and tell me what to change :) |
|
Synced and changed. :) |
|
Oh, maybe the CLI should be updated too? But I think that should be separated into another PR. |
|
Could you remove 14cefe1? I'd prefer to handle that in a separate PR. :) |
|
Force pushed. That commit is saved on another branch. |
This PR adds
validate_recordmethod toWheelSourceand a boolean parametervalidate_recordtoinstallfunction.Currently,
validate_recordimplementation ofWheelFilechecks the presence ofRECORD, entries of files in the wheel, and whether there's a corresponding hash for the entry. (RECORD.p7sandRECORD.jwtare ignored from here)validate_recordparameter ofinstallindicates whetherWheelSource.validate_recordwill be called during installation.I've already modified the
fancy_wheelbuilder fromconftest.pyto include hashes (and sizes) of files.The names and places are quite different from #100 and #105, please inform me about what I need to change.
Please review and request changes so that I can push this PR forward 😄
The line ending seems messed up, so please squash when it's ready for merge