lfreleng-actions/🐍 Extract Python Versions Supported by Project

Returns Python version(s) for build and JSON for matrix jobs

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-supported-versions-action@12018ee751415260147d2ca2f0e990cd1481f3b0 # v0.2.2

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

namedescriptionrequireddefault
path_prefixDirectory location containing project codeno.
network_timeoutNetwork timeout in seconds for API callsno6
max_retriesMaximum number of retry attempts for API callsno2
eol_behaviourHow to handle EOL Python versions: warn|strip|failnowarn
offline_modeDisable network lookups and use internal version list onlynofalse
default_python_versionOverride build_python (X.Y) when the action is in fallback mode (versions_source=eol-fallback or static-fallback, e.g. no project-side constraint declared, EOL API unreachable, or offline_mode=true). The override is ignored unless it is part of the emitted matrix; out-of-matrix values keep the computed build_python and emit a warning.no""
namedescription
build_pythonMost recent Python version supported by project
matrix_jsonAll Python versions supported by project as JSON string
supported_versionsSpace-separated list of all supported Python versions
versions_sourceSource of the version data: requires-python, classifiers, setup-cfg-requires, setup-cfg-classifiers, setup-py-requires, setup-py-classifiers, eol-fallback, or static-fallback