* fix(style): use sub recommended replacement method See https://docs.python.org/3/library/re.html#re.escape Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * feat: add --build * refactor: switch to using --only Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * docs: cover --only Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * docs: undo change to --plat for auditwheel Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * (unrelated) speed up running the unit tests based on a profile run, this speeds up the unit tests by 3x * Remove `intercepted_build_args` reliance on `platform` fixture * Add test that checks if 'only' overrides env var options * Ensure that the --only command line option overrides env vars * Fix UnboundLocalError * Test cleanups * style: typing.cast instead of plain cast * feat: add only: to the GHA Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Joe Rickerby <joerick@mac.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: cibuildwheel
|
|
description: 'Installs and runs cibuildwheel on the current runner'
|
|
inputs:
|
|
package-dir:
|
|
description: 'Input directory, defaults to "."'
|
|
required: false
|
|
default: .
|
|
output-dir:
|
|
description: 'Folder to place the outputs in, defaults to "wheelhouse"'
|
|
required: false
|
|
default: wheelhouse
|
|
config-file:
|
|
description: 'File containing the config, defaults to {package}/pyproject.toml'
|
|
required: false
|
|
default: ''
|
|
only:
|
|
description: 'Build a specific wheel only. No need for arch/platform if this is set'
|
|
required: false
|
|
default: ''
|
|
branding:
|
|
icon: package
|
|
color: yellow
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
# Set up a non-EOL, cibuildwheel & pipx supported Python version
|
|
- uses: actions/setup-python@v4
|
|
id: python
|
|
with:
|
|
python-version: "3.7 - 3.10"
|
|
update-environment: false
|
|
|
|
# Redirecting stderr to stdout to fix interleaving issue in Actions.
|
|
- run: >
|
|
pipx run
|
|
--python '${{ steps.python.outputs.python-path }}'
|
|
--spec '${{ github.action_path }}'
|
|
cibuildwheel
|
|
${{ inputs.package-dir }}
|
|
--output-dir ${{ inputs.output-dir }}
|
|
--config-file "${{ inputs.config-file }}"
|
|
--only "${{ inputs.only }}"
|
|
2>&1
|
|
shell: bash
|