-
Notifications
You must be signed in to change notification settings - Fork 147
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
Walk directories in sorted order for reproducibility #517
base: main
Are you sure you want to change the base?
Conversation
* recurse directories in sorted order * recurse top-level *.dist-info/ directories last * list filenames in sorted order * list top-level *.dist-info/RECORD files last
There is an additional nit that would be trivial to address in this PR. Currently, auditwheel outputs zip files using the usual convention of storing directories as an entry of zero bytes with name ending in "/". This is exactly what the What we could do (with a one-line change in this PR) is to still store subdirectories, but only if they are empty. Again, this is not what |
This PR covers #507 and provides additional features (.dist-info directories last, .dist-info/RECORD files last) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #517 +/- ##
==========================================
- Coverage 92.35% 91.85% -0.50%
==========================================
Files 20 20
Lines 1268 1289 +21
Branches 244 250 +6
==========================================
+ Hits 1171 1184 +13
- Misses 56 61 +5
- Partials 41 44 +3 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Lisandro Dalcin <dalcinl@gmail.com>
Implement a new utility function wrapping
os.walk
with the following modifications: