lfreleng-actions/🐍 Build Python Project
Builds a Python Project
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 8, 2026
- License
- None
Pinned Snippet
uses: lfreleng-actions/python-build-action@97cf36d2a5914c94761408545d154c983024de1d # v2.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| artefact_name | Custom name for uploaded artefacts (defaults to project name) | no | — |
| artefact_path | Build artefacts will be output to this folder/directory | no | dist |
| artefact_upload | Upload artefacts to GitHub once build completed | no | true |
| purge_artefact_path | Purge artefact path prior to performing build | no | false |
| tag | Explicit tag/version for this build (semantic) | no | — |
| skip_version_patch | Skip version patching (support dynamic versioning) | no | false |
| attestations | Apply GitHub attestations to artefacts | no | false |
| sigstore_sign | Sign build artefacts with Sigstore | no | false |
| path_prefix | Directory location containing project code | no | . |
| tox_build | Attempt to use TOX to perform build | no | false |
| python_version | Override Python version for build (uses metadata detection if not set) | no | — |
| build_formats | Build formats: wheel, sdist, or both (default: both) | no | both |
| auditwheel | Run auditwheel to repair wheels for manylinux compatibility | no | false |
| manylinux_version | Target manylinux version for auditwheel | no | manylinux_2_34 |
| make | Run make before building | no | false |
| make_args | Arguments/flags sent to make command | no | "" |
Outputs
| name | description |
|---|---|
| build_python_version | Python version used to perform build (create artefacts) |
| matrix_json | Project supported Python versions as JSON |
| artefact_name | Project name used for build artefacts |
| artefact_path | Full path to build artefacts directory |
| path_prefix | Path prefix to Python project (pass to downstream actions) |