Skip to content

Verify wheels are pure Python #12

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

Merged
merged 1 commit into from
Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ runs:
run: python -m build --wheel .
if: ${{ inputs.pure_python_wheel == 'true' }}

# TODO: check that the resulting wheel is indeed pure Python
- name: Verify that one pure Python wheel was built
shell: bash
run: |
ls -1 dist/*
if [ $(ls -1 dist/*.whl 2>/dev/null | wc -l) != 1 ] ||
[ $(ls -1 dist/*none-any.whl 2>/dev/null | wc -l) != 1 ]; then
echo "::error ::Build failed because package is not pure Python."
exit 1
fi
if: ${{ inputs.pure_python_wheel == 'true' }}

- name: Test pure Python wheel distribution
shell: bash
Expand Down