lfreleng-actions/🐍 Build Python Project

Builds a Python Project

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/python-build-action@97cf36d2a5914c94761408545d154c983024de1d # v2.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
artefact_nameCustom name for uploaded artefacts (defaults to project name)no
artefact_pathBuild artefacts will be output to this folder/directorynodist
artefact_uploadUpload artefacts to GitHub once build completednotrue
purge_artefact_pathPurge artefact path prior to performing buildnofalse
tagExplicit tag/version for this build (semantic)no
skip_version_patchSkip version patching (support dynamic versioning)nofalse
attestationsApply GitHub attestations to artefactsnofalse
sigstore_signSign build artefacts with Sigstorenofalse
path_prefixDirectory location containing project codeno.
tox_buildAttempt to use TOX to perform buildnofalse
python_versionOverride Python version for build (uses metadata detection if not set)no
build_formatsBuild formats: wheel, sdist, or both (default: both)noboth
auditwheelRun auditwheel to repair wheels for manylinux compatibilitynofalse
manylinux_versionTarget manylinux version for auditwheelnomanylinux_2_34
makeRun make before buildingnofalse
make_argsArguments/flags sent to make commandno""
namedescription
build_python_versionPython version used to perform build (create artefacts)
matrix_jsonProject supported Python versions as JSON
artefact_nameProject name used for build artefacts
artefact_pathFull path to build artefacts directory
path_prefixPath prefix to Python project (pass to downstream actions)