lfreleng-actions/🐍 Extract Python Versions Supported by Project
Returns Python version(s) for build and JSON for matrix jobs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 8, 2026
- License
- None
Pinned Snippet
uses: lfreleng-actions/python-supported-versions-action@12018ee751415260147d2ca2f0e990cd1481f3b0 # v0.2.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| path_prefix | Directory location containing project code | no | . |
| network_timeout | Network timeout in seconds for API calls | no | 6 |
| max_retries | Maximum number of retry attempts for API calls | no | 2 |
| eol_behaviour | How to handle EOL Python versions: warn|strip|fail | no | warn |
| offline_mode | Disable network lookups and use internal version list only | no | false |
| default_python_version | Override 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 | "" |
Outputs
| name | description |
|---|---|
| build_python | Most recent Python version supported by project |
| matrix_json | All Python versions supported by project as JSON string |
| supported_versions | Space-separated list of all supported Python versions |
| versions_source | Source of the version data: requires-python, classifiers, setup-cfg-requires, setup-cfg-classifiers, setup-py-requires, setup-py-classifiers, eol-fallback, or static-fallback |