-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use assumed ABI3 version for shared objects without ".abi3." #119
Conversation
5b2a4c5
to
964b8c2
Compare
Allow auditing arbitrary shared objects, not necessarily containing ".abi3." in their name, if --assume-minimum-abi3 option is specified: suppose that all shared objects use this ABI3 version then. This makes the tool more convenient to use for non-wheel-packaged extensions. Also specify the default, 3.2, ABI version in a single place only and use "None" instead of the default value elsewhere.
964b8c2
to
89b893f
Compare
And sorry for the force pushes too, I forgot to run |
No problem. If you run |
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Somehow it doesn't for me: (env) [.../abi3audit(use-min-assumed-abi3-for-so)] $ make lint
. env/bin/activate && \
ruff format --check abi3audit/_state.py abi3audit/_cli.py abi3audit/__init__.py abi3audit/__main__.py abi3audit/_object.py abi3audit/_cache.py abi3audit/_audit.py abi3audit/_extract.py test/test_minimum_version.py test/test_audit.py test/__init__.py test/test_extract.py && \
ruff check abi3audit/_state.py abi3audit/_cli.py abi3audit/__init__.py abi3audit/__main__.py abi3audit/_object.py abi3audit/_cache.py abi3audit/_audit.py abi3audit/_extract.py test/test_minimum_version.py test/test_audit.py test/__init__.py test/test_extract.py && \
mypy abi3audit
12 files already formatted
/bin/sh: 4: mypy: not found
make: *** [Makefile:52: lint] Error 127 Please let me know if you think it's worth debugging this further. |
Weird -- it's listed as a dev-dep: Line 39 in be052e5
Could you try deleting your the current venv and re-running |
OK, I see what's going on here: if you start by running And thanks for merging this PR, it makes testing ABI compatibility much simpler for us! |
Aha, that makes sense! Thanks for root-causing; I'll look at making a small fix for that. And no problem, thank you for sending a PR! I greatly appreciate it. |
Allow auditing arbitrary shared objects, not necessarily containing ".abi3." in their name, if --assume-minimum-abi3 option is specified: suppose that all shared objects use this ABI3 version then.
This makes the tool more convenient to use for non-wheel-packaged extensions.
Also specify the default, 3.2, ABI version in a single place only and use "None" instead of the default value elsewhere.
Sorry, I couldn't prevent myself from making this PR, implementing the suggestion discussed in #117. This may address #116 too, but mostly it makes the tool much more convenient for me to use, as I don't have to rename all the files (or create symlinks for them) before running it on them.