Description
Hi! Thanks for writing this tool – I have been finding it very useful. As noted in the issue title, I was wondering if it would be possible to provide an input with this GitHub Action, say, in the format below:
Some implementation details
steps:
- name: Build and inspect this package
uses: hynek/build-and-inspect-python-package@v1
with:
type: [sdist] # can be an array with the entries [sdist, wheel] by default,
# note: maybe having just [wheel] doesn't make sense, maybe it does?
or perhaps an input wheel: false/true
, which would then map to the
python -m build --sdist
, andpython -m build --wheel
commands respectively. I'm not sure how the workflow has been implemented, but it would be nice to add more things like displaying the size of the sdist as a whole or individual files in bytes / kilobytes, disable build isolation if needed as well (i.e., through the --no-build-isolation
command-line flag); if it's possible – but then that's a separate issue from this one.
Motivation
I am using this action to inspect my package and look at the tree of contents of my source distribution, but most of the times I don't need to build a wheel as well and upload its GitHub Actions artifact alongside it, because I use cibuildwheel
for that owing to compiled components in the wheel, in which case it is better to do so via a separate job matrix.
Footnotes
I am happy to submit a PR shall I receive some pointers for this in the current codebase :)