-
Notifications
You must be signed in to change notification settings - Fork 150
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
Ensure policies in policy.json
are compliant with PEP600
#287
Conversation
This removes 2 non existing symbols from manylinux1 i686 policy and removes ncurses librairies from manylinux1 whitelist.
Codecov Report
@@ Coverage Diff @@
## master #287 +/- ##
==========================================
+ Coverage 89.03% 90.63% +1.60%
==========================================
Files 20 20
Lines 1058 1079 +21
Branches 226 232 +6
==========================================
+ Hits 942 978 +36
+ Misses 69 57 -12
+ Partials 47 44 -3
Continue to review full report at Codecov.
|
Failure on TravisCI ppc64le is unrelated to the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one suggestion.
auditwheel/policy/__init__.py
Outdated
if policy['name'] == 'linux': | ||
continue | ||
if not lib_whitelist.issubset(set(policy['lib_whitelist'])): | ||
raise ValueError('Invalid "policy.json" file') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about making the string more explicit on what's wrong with the policy check? That could make it easier to diagnose the issue when editing the JSON.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added more information and tests for that. Is that better now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
5aee132
to
cffc994
Compare
cffc994
to
b452f14
Compare
This also removes 2 non existing symbols from manylinux1 i686 policy and removes ncurses librairies from manylinux1 whitelist.
Now that PEP600 supersedes previous manylinux PEPs, it should be enforced:
Fix #286